Repository navigation
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.
- 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. - 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.
Add its base topic to base_topics and restart the app. Each instance needs its own base topic.
- Send test notification on the Settings tab. 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 When alerts are sent.
- 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.
- Check alerts aren't paused. A banner on every tab says when the pause ends; Resume now ends it. See Pause alerts.
- 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. See Router outages.
- 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 Health tab shows its own timing under When this device alerts.
- 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.
Its Expected reporting limit is shorter than the gaps between its messages. Some devices only report when a value changes. Open its Health tab, check how often it usually reports, and set the limit a little above that, or Turn off.
- 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.
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.
- 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. - Some entities are disabled by default. See Home Assistant entities.
- Check the app is running.
- Check the address in Settings → Devices & services → Z2M Device Tracker → Configure. It should be
http://<app hostname>:8099. The app's hostname is on its Info tab. - The app only accepts connections from Home Assistant on the same machine, so it can't be reached from another host.
- After updating to 1.4.0, update the integration too. The app now needs an API token, which an older integration doesn't send. If both are 1.4.0 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.
If Zigbee2MQTT sends a device list without more than half of a network's devices, Activity 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.
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.
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.
The Updates tab says why next to the device:
- Battery below 30% (or your minimum) or Battery is low: change the battery, or choose Update anyway. See Low batteries.
- 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 the Updates tab. It says when the next run is, or that the window isn't valid. See Overnight updates.
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.
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.
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 Language.
- 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.
Open an issue with the app version, what you expected, what happened, and the relevant lines from the app's log. If you use the integration, attach its diagnostics file.
Start
Using it
- Devices and history
- Health checks
- Alerts and notifications
- Network map
- Firmware updates
- Pairing and moving devices
- Replacing a device
- Batteries
- Community ratings
Home Assistant
Help