Z2M Device Tracker

ZHA and Matter

The app reads Zigbee2MQTT by default. It can also read Home Assistant's ZHA integration and its Matter integration. Both are in beta, so please report anything that looks wrong.

Choosing what the app reads

Three switches on the app's Configuration tab choose the sources. Any mix can be on. Restart the app after changing one.

OptionDefaultWhat it reads
zigbee2mqtttrueYour Zigbee2MQTT networks, one per entry in base_topics, over MQTT.
zhafalseHome Assistant's ZHA integration.
matterfalseHome Assistant's Matter integration, over Thread or Wi-Fi.

Each source shows as its own network: ZHA as ZHA, Matter as Matter, next to your Zigbee2MQTT networks. The tools that need Zigbee2MQTT stay available for the Zigbee2MQTT devices.

ZHA and Matter are read through Home Assistant, not MQTT. If you turn off zigbee2mqtt and only read ZHA or Matter, no MQTT broker is needed.

Both are read-only. The app never sends anything to ZHA, Matter or your devices.

Older installs had a single zigbee_stack option. It is replaced by these switches. An install set to zigbee_stack: zha keeps reading ZHA only until you change one of the switches.

ZHA (beta)

Turn on zha and restart the app. Turn off zigbee2mqtt as well if you don't run Zigbee2MQTT.

What works with ZHA

ZHA doesn't report RSSI on every coordinator.

Zigbee2MQTT only

These parts need Zigbee2MQTT. They don't work for ZHA devices, and are hidden when the app reads no Zigbee2MQTT network:

When the app reads ZHA only, base_topics and z2m_panels are ignored, and Settings → Checks lists only the checks that can fire with ZHA.

The first time the app starts with ZHA only, 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. If there is no broker any more, it skips this.

Matter (beta)

Turn on matter and restart the app. The app reads Home Assistant's Matter integration once a minute.

For each Matter device you get:

A device's last report is the newest time any of its sensors or switches reported to Home Assistant. It counts as offline when every one of its entities is unavailable. A light or plug that only reports when it is used will look quiet. If it shouldn't be checked for silence, set its reporting profile to Off on its page.

With a recent Matter server (Home Assistant's Matter Server app 9 or newer), the app also reads each device's role and, for Thread, the links between devices for the map. A new map is stored when the links change, or once a day. If the Matter server returns an error, the app asks again ten minutes later.

Matter devices have no IEEE address, so the app gives each one a tracker ID made from its Matter ID. It starts 0xff4d and shows on the device's page.

Zigbee2MQTT's tools (firmware updates, reporting settings, pairing, bindings, replacing and reconfiguring) aren't available for Matter devices.

Networks the app no longer listens to

Turn a source off, or remove a base topic from base_topics, and its devices are frozen. They keep their history and stay in Devices under Removed or not listened to, marked Not listened to.

A frozen device gets no checks, alerts, MQTT sensors or requests. It is 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, its devices pick up where they left off. A device you re-pair onto another stack, from Zigbee2MQTT to ZHA for example, moves across and keeps its history.

The Forget all N removed devices bar on the Removed or not listened to chip doesn't touch frozen devices. Forget one by hand if you don't want it any more.

Integration actions

The integration finds ZHA and Matter devices in Home Assistant's device list, so its cards and sensors include them.

ActionZHA and Matter devices
z2m_tracker.battery_replacedYes
z2m_tracker.mute_deviceYes
z2m_tracker.add_noteYes
z2m_tracker.reconfigureNo: Zigbee2MQTT devices only
z2m_tracker.ota_updateNo: Zigbee2MQTT devices only

Given a ZHA or Matter device, the last two say they only work with Zigbee2MQTT devices. See Integration and card.