Hi I’m trying to get Unifi tracker working.
At first there was no ‘known_devices.yaml’ however I got that to appear by running the device_tracker.see service with data:
{
"mac": "04:d6:aa:8f:fe:c4"
}
So then I get the following in my known devices yaml:
04d6aa8ffec4:
hide_if_away: false
icon:
mac: 04:D6:AA:8F:FE:C4
name: 04d6aa8ffec4
picture:
track: true
vendor: SAMSUNG ELECTRO-MECHANICS(THAILAND)
The device shows as online for the duration of the checking period, and then permanently switches to ‘away’
This is my configuration:
- platform: unifi
username: homeassistant
password: !secret unifi_password
host: blob.life
port: 8443
site_id: default
verify_ssl: false
consider_home: 60
interval_seconds: 12
detection_time: 180
new_device_defaults:
track_new_devices: True
hide_if_away: False
I can see on the unifi controller successful logins, the account has super admin rights.
In the logs I’m seeing the following:
(when I fire the device_tracker.see service)
2018-01-05 21:36:45 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=device_tracker.04d6aa8ffec4, old_state=<state device_tracker.04d6aa8ffec4=not_home; source_type=gps, friendly_name=04d6aa8ffec4 @ 2018-01-05T21:20:18.037044+13:00>, new_state=<state device_tracker.04d6aa8ffec4=home; source_type=gps, friendly_name=04d6aa8ffec4 @ 2018-01-05T21:36:45.554756+13:00>>
and then about a minute later:
2018-01-05 21:37:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=device_tracker.04d6aa8ffec4, old_state=<state device_tracker.04d6aa8ffec4=home; source_type=gps, friendly_name=04d6aa8ffec4 @ 2018-01-05T21:36:45.554756+13:00>, new_state=<state device_tracker.04d6aa8ffec4=not_home; source_type=gps, friendly_name=04d6aa8ffec4 @ 2018-01-05T21:37:50.101479+13:00>>
Pulling my hair out, no doubt it’s something simple that I’ve missed?