Installation
Install the app first. The integration is optional and only talks to the app.
The app
- Go to Settings → Apps → App store → ⋮ → Repositories and add
https://github.com/tempus2016/z2m-device-tracker. The button above does this for you. - Find Z2M Device Tracker in the store, choose Install, then Start.
- Open Zigbee Tracker from the sidebar.
The app isn't in the Marketplace; only the integration is. With Home Assistant Container there is no App store: see Home Assistant Container (Docker).
For Zigbee2MQTT the app needs an MQTT broker, the same one Zigbee2MQTT uses. Normally that's the Mosquitto broker app with the MQTT integration: the app picks up its address and login from Home Assistant, so there is nothing to enter. For a broker elsewhere, such as Mosquitto on another server or in Docker, set it in the app's options instead. See Configuration.
Choosing what it reads
The app reads Zigbee2MQTT by default. To read Home Assistant's ZHA or Matter integration as well, or instead, turn on zha or matter on the app's Configuration tab and restart the app. Turn off zigbee2mqtt if you don't run it; ZHA and Matter need no MQTT broker. See ZHA and Matter.
First start
On first start the app:
- subscribes to
zigbee2mqtt/#and reads the device list Zigbee2MQTT publishes; - waits up to two minutes for every network's device list, then imports older history from Zigbee2MQTT's files and Home Assistant's registries;
- takes note of any problems that already exist without alerting on them, so you aren't flooded on day one. From then on, only new problems send alerts.
More than one Zigbee2MQTT, or a different base topic
If your Zigbee2MQTT doesn't use the zigbee2mqtt base topic, or you run several instances, open the app's Configuration tab and list every base topic under base_topics, then restart the app. See Configuration.
Supported hardware
amd64 and aarch64.
Home Assistant Container (Docker)
Without a Supervisor, the app runs as its own container: ghcr.io/tempus2016/z2m-device-tracker (amd64 and arm64). Start from docker/compose.yaml in the repository, fill in the values, then run docker compose up -d.
The container needs a few settings the App store would fill in for you:
| Variable | What it is |
|---|---|
MQTT_HOST, MQTT_PORT, MQTT_USER, MQTT_PASS | The broker Zigbee2MQTT uses. MQTT_SSL=true for TLS, and MQTT_SSL_VERIFY=false only for a self-signed certificate. Not needed if you only read ZHA or Matter. |
HA_URL | Home Assistant's address, for example http://192.168.1.10:8123. |
HA_TOKEN | A long-lived access token: your Home Assistant profile → Security → Long-lived access tokens. |
UI_PASSWORD | Password for the web UI, 8 characters or more. The UI stays locked until it's set. |
TZ | Your time zone, for example Europe/London. |
TRUSTED_PROXIES | Optional. Your reverse proxy's address or network, for example 192.168.1.5 or 172.18.0.0/16, comma separated for more. Wrong-password limits are then counted for each visitor behind that proxy. |
The compose file mounts two folders:
./data:/dataholds the history, the settings (options.json) and the integration's API token.- Home Assistant's config folder at
/homeassistant, read-only. It is optional, and lets the first start import device history from Zigbee2MQTT's files and Home Assistant's registries.
The compose file also has an optional user: line to run the container as your own user instead of root. The ./data folder must then belong to that user.
Then:
- The web UI is at
http://<docker host>:8099. Sign in withUI_PASSWORD. To show it inside Home Assistant, add a Webpage dashboard pointing at that address. - Keep it on your home network. The container speaks plain HTTP, so the password and the API token cross the network unencrypted. To reach it from outside, put a reverse proxy with HTTPS in front, publish the port to that proxy only (
"127.0.0.1:8099:8099"when the proxy is on the same host) and setTRUSTED_PROXIES. - Settings you change in the UI are saved to
/data/options.json. You can also edit that file and restart the container. It takes the same options as the app; see Configuration.
The README has the full steps, and how to build the image yourself.
The integration (optional)
The integration adds five summary sensors, battery and maintenance to-do lists and calendars, actions for automations, four dashboard cards, and Repairs issues you can fix from Home Assistant. See Integration and card for what each one does.
- Go to Settings → Marketplace, search for Z2M Device Tracker, install it and restart Home Assistant. On Home Assistant older than 2026.11 the Marketplace is still HACS: open HACS, search for Z2M Device Tracker and choose Download.
- With the app running, Settings → Devices & services shows Z2M Device Tracker under Discovered. Choose Add. (Or go to Add integration and pick Z2M Device Tracker.)
- The app's address is filled in for you. Choose Submit.
If it doesn't show up in the search, add it by hand: ⋮ → Custom repositories in the Marketplace (or HACS), add https://github.com/tempus2016/z2m-device-tracker as Integration, then carry on from step 1.
With the Docker image, the integration can't find the app by itself. Enter the app's address, for example http://192.168.1.10:8099, and its API token. Get the token with docker exec z2m-tracker cat /data/api_token. The dashboard cards open the app at /app/..., which only exists with the App store, so set each card's panel option to your Webpage dashboard's path, for example /z2m-tracker.
The integration checks the address and token before it saves them, and shows an error on the form if either is wrong. To change them later, use Reconfigure in the integration's menu.
The integration needs Home Assistant 2025.1 or newer. Only one copy can be set up.
You don't need the integration for alerts or for the per-device entities: the app sends alerts itself and adds entities through MQTT discovery. See Home Assistant entities.
Updating
- App: Home Assistant shows an update on the app's page when a new version is out. The history is kept across updates. With Docker, pull the new image and recreate the container:
docker compose pull && docker compose up -d. - Integration: update from the Marketplace (or HACS), restart Home Assistant, then hard-refresh the browser (Ctrl/Cmd + Shift + R) so the new card loads.
Keep the app and integration on the same version. The app only answers the integration when it sends the app's API token, which Home Assistant receives from the app automatically. An integration older than 1.4.0 has no token and shows the app as unreachable, so update both.
Removing it
- Delete the integration under Settings → Devices & services, then remove it in the Marketplace (or HACS).
- In the app's Settings, under Home Assistant entities, turn off Add entities to Zigbee devices and wait a minute. This removes the tracker's entities from your Zigbee devices.
- Uninstall the app. Uninstalling deletes the stored history, so download a backup first if you might want it back.