Hi Everyone,
Just starting out in the home automation world and have come across a real difficult one to solve. The basics of my problem is that I am trying to setup device_tracker with unifi, not direct access and have no devices being found.
All that is in the log is the following (Debug mode turned on)
2018-02-08 10:20:21 INFO (MainThread) [homeassistant.loader] Loaded device_tracker.unifi from homeassistant.components.device_tracker.unifi
2018-02-08 10:20:21 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.unifi
2018-02-08 10:20:21 DEBUG (SyncWorker_1) [pyunifi.controller] Controller for https://x.x.x.x:8443/
2018-02-08 10:20:21 DEBUG (SyncWorker_1) [pyunifi.controller] login() as homeassistant
Running on Centos as a VM.
(homeassistant) [homeassistant@hassio .homeassistant]$ hass --version
0.62.1
My config is like so. With username, password and host sanitised to protect the innocent.
device_tracker:
- platform: unifi
username: username
password: password
host: x.x.x.x
verify_ssl: false
site_id: default
track_new_devices: yes
So you may be thinking what have I tried?
Well just about everything. I have confirmed that the login is working by entering account incorrectly then correctly getting an error message. I have run the python script manually to test connectivity and that works.
deps/lib/python3.6/site-packages/pyunifi
Entered incorrect site ID to confirm that was not the problem and this shows in the logs.
Entered one client manually and it is not being detected.
So basically there are no error messages I can run the script as homeassistant user with no problems and get a list of clients. I have a known_devices.yaml file but it is not being updated.
I don’t know what else to try. Any help would be appreciated.