Troubleshooting
The app's Log tab (Settings → Apps → Z2M Device Tracker → Log) is the first place to look. It logs MQTT connection, alerts, settings changes, imports and routing scans. With the app in Docker, run docker logs z2m-tracker.
For problems with ZHA or Matter devices, see ZHA and Matter first.
No devices appear
- Check the log for
Connected to MQTT, subscribing to zigbee2mqtt/#. If it says the connection failed, it also says what to check: the Mosquitto broker app and the MQTT integration, or themqtt_options if you set a broker there. In Docker, checkMQTT_HOSTand the otherMQTT_settings. - Check the base topic. If Zigbee2MQTT's
mqtt.base_topicisn'tzigbee2mqtt, set it inbase_topicson the app's Configuration tab and restart the app. See Configuration. - Restart Zigbee2MQTT. It publishes its device list on start, and the tracker builds its list from that.
- Check the
zigbee2mqttoption is on. It's on by default, but an install switched to ZHA may have it off.
A second Zigbee2MQTT network is missing
Add its base topic to base_topics and restart the app. Each instance needs its own base topic.
Devices show as Not listened to
They're from a network the app no longer reads: a base topic you removed from base_topics, or the other Zigbee stack after you switched. They keep their history under Devices → Removed or not listened to, but get no checks, alerts or entities. Turn that network back on and they pick up where they left off.
A device stays Offline, but it works
- If it was just re-paired or renamed, update the app. Before 2.4.1 a re-paired device could stay Offline while its messages kept arriving.
- If Zigbee2MQTT no longer checks the device's availability, its last retained
offlinecan stay on the broker. Delete the retainedzigbee2mqtt/<device>/availabilitymessage, for example in MQTT Explorer. From 2.0.2 the tracker then clears the offline state and shows no availability until Zigbee2MQTT reports one. Network → Broker also lists stale retained messages.
Alerts don't arrive
- Send test notification in Settings. Its message says which channels it used.
- Check Send alerts is on, and the check is set to Show and notify.
- Alerts are for new problems only. A problem that was already there when you turned alerts on doesn't alert. See Alerts and notifications.
- For a notify action, check the name works in Developer tools → Actions, for example
notify.mobile_app_your_phone. - Check the problem isn't ignored in Settings → Ignored alerts, or the device isn't stored.
- Check alerts aren't paused. A banner on every tab says when the pause ends; Resume now ends it.
- During quiet hours, alerts are held for the morning summary.
- A device behind an offline router doesn't alert on its own. The router's alert covers it.
- A low battery, weak signal or signal drop alert that has cleared stays quiet for
alert_repeat_hours(default 24) before the same one is sent again. Set it in Settings → Thresholds; 0 sends it every time. Offline alerts are not held back. - A network that goes offline at about the same time most days is an Expected outage and doesn't alert. Set
expected_outagestofalseto be alerted every time. - An Offline alert comes Zigbee2MQTT's availability timeout plus
offline_alert_minutesafter the device's last message: about 26 hours for a battery device with the defaults. The device's page shows its own timing under When it alerts.
See Alerts and notifications for pauses, quiet hours and router outages.
The map is empty, or a device is missing from it
- The map needs a routing scan. Choose ⋮ → Run routing scan and wait; it can take several minutes.
- If the scan times out, Zigbee2MQTT may be busy. Try again later; the nightly scan runs at a quiet hour.
- Sleepy battery devices often miss scans. If one is always missing, check its signal.
A device says Stopped reporting, but it works
Its expected reporting limit is shorter than the gaps between its messages. Some devices only report when a value changes.
- If the alert is about a silence that's normal for this device, choose Normal for this device. The tracker accepts it until the device reports again, then learns it for that time of week.
- With
learn_rhythmon (the default), the tracker learns each device's rhythm after 7 days and 30 reports. Until then the reporting profiles apply. - Or open the device's page, check how often it usually reports, and set the limit a little above that with Set my own, or turn it off.
There's no Ping button, or Ping never replies
- Only mains devices have Ping. Battery devices sleep, so they have none.
- Ping, and the nightly reply times for routers, need Zigbee2MQTT 2.7 or newer.
- If an online mains device shows "No reply in 10 s", try again, and check its signal on the network map.
- Ping is a Zigbee2MQTT tool. ZHA and Matter devices have none.
The Coordinators card shows no memory or MQTT traffic
That comes from the health messages Zigbee2MQTT 2.5 and newer sends, every 10 minutes by default. Update Zigbee2MQTT, and check its health interval in Zigbee2MQTT under Settings → Settings → Health → Interval. Until the first message arrives, the card says there's no health data yet, and the Zigbee2MQTT memory check can't run.
The tracker's entities aren't on my Zigbee devices
- Check Settings → Home Assistant entities is on. It shows how many entities are published.
- The MQTT integration must have discovery on (the default), with the
homeassistantprefix. - Only Zigbee2MQTT devices get them. ZHA and Matter devices, and devices marked Not listened to, don't.
- Some entities are disabled by default. See Home Assistant entities.
The integration can't connect to the app
When you set up the integration or use Reconfigure, it asks the app first and shows an error on the form if that fails:
- The app did not answer at that address. Check the app is started, and the address. With the App store it's
http://<app hostname>:8099; the hostname is on the app's Info tab. In Docker, use the Docker host's address, likehttp://192.168.1.10:8099. - The app refused the API token. With the App store, leave the token empty. In Docker, paste the output of
docker exec z2m-tracker cat /data/api_token.
If the integration is already set up and its sensors go unavailable:
- Check the app is running.
- Check the address with Settings → Devices & services → Z2M Device Tracker → ⋮ → Reconfigure.
- With the App store, the app only accepts connections from Home Assistant on the same machine, so it can't be reached from another host.
- Keep the app and the integration on the same version. If both are up to date and it still says unreachable, restart Home Assistant once the app is running: the integration fetches the token from Home Assistant when it starts and whenever the app refuses it.
See Integration and card.
The sidebar page says it can't sign in (Docker)
The web UI stays locked until UI_PASSWORD is set (8 characters or more). After 5 wrong passwords it says Too many wrong passwords. Wait 15 minutes, then try again. Behind a reverse proxy, set TRUSTED_PROXIES to the proxy's address or network, so wrong passwords are counted for each visitor. Without it, every visitor shares the proxy's address and one person's mistakes lock everybody out.
The history came back from a spare copy
Each save keeps the previous file as history.json.bak. If history.json can't be read when the app starts, for example after a disk fault, the app loads that copy and tells you with a notification in Home Assistant. At most the last few minutes of readings are missing. The unreadable file is kept as history.json.corrupt-<time>. If neither file can be read, the app starts with an empty history; restore a backup from Backup and data.
A device list was held
If Zigbee2MQTT sends a device list without more than half of a network's devices, Activity (from Health) shows device list held and nothing is removed. The list is applied if it arrives again at least 5 minutes later; Zigbee2MQTT sends it again whenever a device changes or Zigbee2MQTT restarts. This stops one stray message from marking every device removed. If you really removed most devices at once, restart Zigbee2MQTT after 5 minutes.
"Custom element doesn't exist: z2m-tracker-card"
The integration loads the card. Check the integration is set up and loaded, then hard-refresh the browser (Ctrl/Cmd + Shift + R). In the companion app, clear the frontend cache.
A dashboard card opens the wrong page, or a page that doesn't exist
The cards link to the app's sidebar page at /app/..., which only exists with the App store. With the app in Docker, set the card's panel option to the path of your Webpage dashboard, for example /z2m-tracker. See Integration and card.
A dashboard card stops updating
Update the integration. Before 2.6.0 the cards stopped updating after the integration's options were changed, until the page was reloaded.
A reconfigure or update fails
Battery devices sleep and miss requests. Press a button on the device just before you try, and keep it close to a router. The error from Zigbee2MQTT is shown in the message and in the device's logbook.
Reconfigure and firmware updates are Zigbee2MQTT tools. The z2m_tracker.reconfigure and z2m_tracker.ota_update actions refuse ZHA and Matter devices.
A firmware update was skipped
Upkeep → Updates says why next to the device:
- Battery below 30% (or your minimum) or Battery is low: change the battery, or choose Update anyway.
- Device is offline: bring it back online, then Try again.
If the overnight run doesn't seem to start, check the line at the top of Updates. It says when the next run is, or that the window isn't valid. See Firmware updates.
An update that takes over an hour isn't a failure. The app keeps waiting, up to 8 hours, while Zigbee2MQTT reports progress.
An area or name doesn't match Home Assistant
The tracker follows Home Assistant's device and area registries and catches up within about 5 seconds of a change. If it doesn't:
- Check the app's log for
Watching Home Assistant's device registry for changes. If it says the watch was lost, it retries every 30 seconds, and re-reads everything every 6 hours anyway. - The device must be in Home Assistant. A Zigbee device Home Assistant doesn't know about has no area to follow.
A binding won't restore
Battery devices need to be awake. Press a button on the device, then choose Restore straight away. A binding to a group fails if the group no longer exists in Zigbee2MQTT. The reason is shown at the bottom of the screen.
The sidebar is in the wrong language
It follows the language in your Home Assistant profile. To choose another, go to Settings → Appearance & data → Language. That choice is saved per browser, so set it on each one. If your language isn't available yet, the sidebar uses English. See Configuration.
A dashboard card is still in English
- The cards need app 1.2.0 or newer as well as the integration. With an older app they stay in English.
- A card added before 1.2.0 saved an English title. Open its editor and clear the Title field.
- The cards follow your Home Assistant profile language, not the sidebar's Language setting.
- Text a language file doesn't have yet shows in English.
A detected battery change was wrong
Some devices report battery levels that jump around, and the app counts a jump of 25 points or more in a day as a new battery. Turn on Settings → Batteries → Ask before recording to confirm each one, turn off Detect battery changes, or turn on Battery level unreliable in the Battery card on that device's page. See Batteries.
A forgotten device came back
Update the app. Before 2.7.0 a history import could bring a forgotten device back. Now an import skips forgotten devices. A forgotten device that joins the network again is tracked as normal.
Still stuck
Use Settings → Help & feedback in the app. Choose Report a bug or Request a feature and fill in the form. The app adds your versions, setup and recent warnings, with device names, IEEE addresses, e-mail addresses, tokens and phone notify services taken out. Turn off Include my setup or Include recent app warnings to leave them out. Search issues checks whether someone has reported it already. Open on GitHub opens the filled-in issue in a new tab; nothing is sent until you post it there, and you need a GitHub account. If the text is too long for a link, use Copy as Markdown and paste it into a new issue.
If you use the integration, attach its diagnostics file to the issue.