I simply run a docker container with latest HASS version at an Ubuntu Server. No HassIo.
Although still no joy, I have found out some things:
After having added a file here /etc/network/if-up.d/ with
arp -i eth0 -s ip mac
and executed it, I could see the entry in /proc/net/arp. Now, I definitely have an IP → MAC mapping for the VPN connected device. So far, so good.
Then, I put network: host option inside my docker-compose file to make my container see and use my host’s network configurations and inside HASS config added this:
device_tracker:
platform: fritz
host: 192.168.44.1
username: myHassUser
password: !secret http_password
track_new_devices: True
Then, the HASS log said “Successfully connected to FRITZ!Box 6890 LTE” - yeaaaahhhh, device is found now! But later on, in the HASS UI, I can not see any of my connected Comet DECT climate devices!
So I put a second entry to my fritzbox-section (1st Fritzbox was already there before - now I want to add a second one which is permanently connected via VPN to the 1st one):
fritzbox:
devices:
- host: IP 1st Fritzbox
username: myHassUser
password: !secret http_password
- host: 2nd Fritzbox
username: myHassUser
password: !secret http_password
But then log says:
2018-08-17 14:11:41 INFO (MainThread) [homeassistant.setup] Setting up fritzbox
home-assistant | 2018-08-17 14:11:42 WARNING (SyncWorker_12) [pyfritzhome.fritzhome] login failed 0000000000000000
home-assistant | 2018-08-17 14:11:42 WARNING (SyncWorker_12) [homeassistant.components.fritzbox] Login to Fritz!Box myIP as myHassUser failed
When I log in via the Fritzbox UI with exactly same credentials, I can log in. But why HASS can’t?
Quite strange: It tries to log in to the device BEFORE device_tracker above has come, althought device_tracker section is defined above fritzbox section in config.
Sorry for not getting along with the forum’s editor - formatting is correct inside my config, but here I can not manage it appearing like it is inside my config. Sorry again. And still hoping for help.