Unifi device_tracking broken after hassio 0.88 update

After the upgrade to hassio 0.88, device_tracking based on Unifi seems to be broken. It does not show away anymore, when my devices do not have a WiFi connection anymore. It remains having the state “Home”. This has worked before until this upgrade.

device_tracker:
  - platform: unifi
    host: <ip adress>
    username: <username> 
    password: <password>
    site_id: <id>
    ssid_filter:
       - 'SSID'
    verify_ssl: false
new_device_defaults:
  track_new_devices: true
  hide_if_away: true

Hi,

i have the same, but hassio is running on version 0.85.1
Nothing changed, but since 3 days this error message
15

Maybe it comes from the latest Unifi Controller Update. Mine is running on 5.10.17.1

Is your known_devices.yaml populated with devices?

i see all previous detected devices in my known_devices.yaml, but in the overview all are shown as absent.
strange thing.

What happend if you remove all the devices in het yaml file and reboot hassio? Is it repopulated?

Same here. My unifi tracking is broken after 0.88 worked with .87. No errors are thrown. just doesn’t update status.
If I delete the entries from known_devices.yaml, they don’t re populate

Same, running Hassbian, so it’s not a hass.io issue.

Make sure to update your wifi AP’s firmware. The last update to the unifi controller is enforcing a minimum firmware version on the wifi ap if I’m not mistaken. Check in the unifi controller to see if you can see all client devices and all the various stats.

Nothing in the 0.88 release notes or code indicates a problem. I am running 5.10.12 on 0.87.1 and AP firmware 4.0.21.9965 in case that helps.

Don’t forget about the downgrade options too:
hassio ha update -o version=0.87.1

I keep mine on rolling updates/auto update so that’s not it.

@jward101 are you saying that it’s working for you on 87.1?

This from the change log:

" Important Notice:

We’ve updated the UniFi Network controller to improve security. Starting with UniFi Network version 5.10, the required minimum firmware for UAP/USW will be 4.0.9 and for USG will be 4.4.34. Devices on earlier firmware will show in the controller and work as you’ve configured them, this update doesn’t change any of the settings. However, please note you will not be able to modify the device configuration until you update the firmware."

https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-Network-Controller-5-10-12-Stable-has-been-released/ba-p/2665341

Yep. Working on that version

When I updated a week ago I suffered a similar issue. I noticed I had neglected to update the ap and when I finished that everything worked as it should again. Might be a different issues but worth noting.

What firmware version is the controller reporting your AP is on?

I used to have an issue with the controller where it would say it was updating but would get hung up some where and never complete but would never report an error.

AP Firmware: 4.0.21.9965
Controller: 5.10.17.1

Anybody open an issue on github? May be a better place to be having this.

ok youre on the correct version, never mind carry on.

SIDE NOTE

FYI All, be careful with auto update, there was a bad firmware release a couple weeks ago that bricked a lot of AP’s, which was not recoverable.

https://community.ubnt.com/t5/UniFi-Wireless/UniFi-AP-Outdoor-5G-Stuck-In-Boot-Loop/m-p/2677219#M367738

Also same issue here on Hassbian.

Yeah, i know just…lazy. Thanks.

Huh…it’s actually picking up my device not being present but not my spouses. I’ll have to take a look and see if it’s a configuration issue as that seems weird.

Same issue here on 88.2 Hassbian and UniFi 5.10.19 :frowning: , tried to downgrade to 87.1 but didnt work so get back to 88.2 …

Annyone have have any succes get device tracking back?