Skip to content

v2.2.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@tempus2016 tempus2016 released this 19 Nov 13:14
c252d33

This is a beta of 2.2.0. The app can now read Home Assistant's ZHA integration instead of Zigbee2MQTT, and I need people who run ZHA to try it. It was tested on a small ZHA network only (a coordinator, a router and a battery button), so expect rough edges and please report what you find.

If you use Zigbee2MQTT, nothing changes unless you switch. You get the fix and the changes listed below.

Fixed

  • Devices of a base topic you removed no longer alert forever (#61). After taking a base topic out of base_topics, its devices went offline or silent and stayed in Health, and the only way to clear them was to remove each one. They are now frozen, as described under Changed.

Added

  • ZHA support (beta) (#61). Set the new zigbee_stack option to zha and restart the app. It then reads ZHA through Home Assistant and needs no MQTT broker. It only reads: it never sends anything to ZHA or your devices. The default stays z2m.

    zigbee_stack: zha
  • What works with ZHA: the device list and its history (added, removed, renamed), last seen, online and offline with offline alerts, link quality with weak and dropping signal, battery level with low-battery alerts and predictions, the mesh map, the radio channel view, and matching to Home Assistant areas and names. ZHA's own timeouts decide when a device is offline (2 hours for mains devices and 6 hours for battery devices by default), and the offline alert delay applies on top.

  • Joined and left alerts with ZHA. ZHA sends no join and leave events, so a device appearing in its device list alerts as Device joined, and one going from it as Device left.

  • A mesh map from ZHA's own scans. ZHA scans its neighbours every few hours by itself. The app takes a new map when the mesh has changed and settled, or once a day, so the map can be empty for the first hours on a new network.

  • Only what applies is shown. With ZHA the parts that need Zigbee2MQTT are hidden: firmware updates, reporting settings, pairing, bindings, replacing a device, ping, renaming from the app, the Coordinator, Broker and Groups sections, the Messages tab and the MQTT sensors (ha_entities). Settings → Checks lists only the checks that can fire with ZHA.

  • Old MQTT sensors are removed for you. The first time the app starts with ZHA, it removes the sensors it made over MQTT while it read Zigbee2MQTT, so they don't stay in Home Assistant as unavailable. That is the only time it talks to the broker.

  • The integration knows ZHA devices. It finds them in Home Assistant's device list, so its cards, sensors and the services that don't need Zigbee2MQTT work with them.

Changed

  • Devices from a network the app no longer listens to are frozen (#61). That covers the other Zigbee stack after a switch, and a base topic you removed. They keep their history and show on Devices under Removed or not listened to, marked Not listened to. They get no checks, alerts, MQTT sensors or requests, and they're left out of Upkeep, the weekly summary, the Prometheus metrics and the integration's counts and cards. If the app listens to that network again, they pick up where they left off. A device you re-pair onto the other stack moves across and keeps its history.

  • The Removed chip on Devices is now "Removed or not listened to".

  • Restoring a backup keeps other networks' devices frozen. Before, they came back without a network.

Upgrading

  • Zigbee2MQTT users: update the app as usual. There is nothing to change.

  • To try ZHA: update the app to 2.2.0-beta.1, open its Configuration tab, set Zigbee stack to zha, save and restart the app. Open Zigbee Tracker in the sidebar. Your ZHA devices should show within a minute.

  • Switching back is the same option set to z2m. Your Zigbee2MQTT devices and their history are kept while you're on ZHA, and pick up again when you switch back.

  • The integration's beta only shows in HACS when you turn on beta versions for it (HACS → Z2M Device Tracker → ⋮ → Redownload → show beta versions). The ZHA work is in the app, so the stable integration works with this beta too.

  • Found a problem? Please open an issue and say which coordinator you use and roughly how many devices. The app's Documentation tab has a section on ZHA.

Full changelog: v2.1.0...v2.2.0-beta.1