Skip to content

v2.0.2

Choose a tag to compare

@tempus2016 tempus2016 released this 18 Nov 14:57
655979d

2.0.2 fixes two things in the app that made it forget, or fail to forget, what you told it. Ignored alerts now stay ignored after the app restarts, and deleting a stale retained availability message now clears a device's false Offline state. Thanks to @darki79 for reporting the first and @Jilas for the detailed write-up of the second.

Both fixes landed in #49. Only the app changed; the integration's version moves to 2.0.2 so the two parts keep matching numbers.

Fixed

  • Ignored alerts are kept when the app restarts or updates. Since 1.4.0, every start of the app cleared all ignored alerts. An update restarts the app, so the usual sign was Settings → Ignored alerts coming back empty after each update and the alerts returning, but a plain app restart or a Home Assistant reboot did the same. Ignoring an alert stored it in a newer format that the app's start-up check didn't recognise, so it threw the whole list away. The check now keeps both the current and the old format, and drops only entries that are damaged. Alerts you ignored before 2.0.2 are already gone, so ignore them once more after updating; from then on they stay ignored, whether forever or for a set number of days. (#49, #48)

  • Deleting a device's retained availability message clears its stale Offline state. The tracker takes Online/Offline from Zigbee2MQTT's zigbee2mqtt/<device>/availability topic. If availability checks were turned off after being on, the last retained offline can stay on the broker for good, and the tracker kept showing a working device as offline. Deleting that retained message (in MQTT Explorer, for example) did nothing: only publishing online cleared it. Now the tracker treats the deletion as "Zigbee2MQTT no longer reports this": the device's availability becomes unknown, any open outage is closed, and the offline alert clears on the next health check, within a minute. If Zigbee2MQTT later reports the device again, the tracker follows it as before. (#49, discussion #21)

Upgrading

  • Update the Z2M Device Tracker app from Settings → Apps. The integration has no changes, so updating it in HACS is optional, though it keeps the two version numbers matching.

  • After updating the app, re-ignore any alerts you had ignored before: open the alert on Health and choose Ignore. They are listed under Settings → Ignored alerts and now stay there.

  • To clear a device that shows Offline only because of an old retained message, delete zigbee2mqtt/<device>/availability on your broker. Discussion #21 has the background.

Full changelog: v2.0.1...v2.0.2