hi all, i tried to add the ubiquiti unifi component for device tracking, but strange things happend.
it doesn’t creat the known_devices.yaml and in the home assistant log it says:
2017-08-17 20:07:57 ERROR (MainThread) [homeassistant.components.device_tracker] Unable to load /home/homeassistant/.homeassistant/known_devices.yaml: Config file not found: /home/homeassistant/.homeassistant/known_devices.yaml
2017-08-17 20:08:04 ERROR (Thread-5) [homeassistant.components.device_tracker.unifi] Failed to connect to Unifi: Login failed - status code: 400
2017-08-17 20:08:04 ERROR (MainThread) [homeassistant.components.device_tracker] Error setting up platform unifi
i tried to creat the yaml file by myself, but it doesn’t works. The username and the password are correct and also the ip address of the controller that is installed on a windows pc and not in the rasp.
here’s my config
another issue. i can track my device, but the sensor always stay on “home” state.
when i disconnect my phone from the wifi the state pass for a secondo to “away” but it return immediately to “home” state.
any ideas?
yes, i set the “interval level” to 60 and now it work’s fine. but i’m experimenting a significant delay between the home to away when i disconnect my device, more then 60 seconds. is there a way to get the unifi controller refresh faster?
i set the “consider_home” to 60 sec and it works fine, but when i disconnect my device it takes a longer time to change the state to “away”.
i think the problem is the refreshing time of the controller that is too hight, so when i disconnect my device it takes some minutes to go away from the unifi controller.
That’s normal, going away always takes a little longer. In part because you don’t want a single missed response to mark a device as away, when it simply didn’t respond for some reason. If you need a faster response then it’ll need to be done with something you trigger manually.
I’m also having issues with my Unifi setup but the situation is a bit different. I’ve posted about this in another thread, since you seem to know a thing or two about Unifi would you mind taking a look? It would be very helpful, I’ve tried many things and I’m not sure what’s going wrong. Thanks in advance!
Hi, similar/related issue, I can login to the unify controller directly, but when I use this userid & password through Home Assistant it’s not working. Can not login using hass.io > Configurator > Unify Controller > Open WebUI either.
I’m going to use my Ubiquiti WLAN AP as a device tracker. But I was wondering how this module works. Main consern is that my Ubiquiti WAP and HA are in different VLANs. WAP is in 192.168.20.0/24 and HA is in 192.168.10.0/24 so the Ubiquiti login page is not available from the subnet/VLAN HA is in.
HA is in the network that is coming from WAP so it is connecting to WAP SSID.
But I am guessing that this is going to be a problem? Ubiquiti device tracker is needing direct access to WAP login? So I should open the VLANs so that HA host would be able to access the login page?
Just wanting to confirm this with you guys before making any changes since it is going to be a bit a hassle.