Z2M Device Tracker

Installation

Install the app first. The integration is optional and only talks to the app.

The app

Add repository

  1. Go to Settings → Apps → App store → ⋮ → Repositories and add https://github.com/tempus2016/z2m-device-tracker. The button above does this for you.
  2. Find Z2M Device Tracker in the store, choose Install, then Start.
  3. 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:

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:

VariableWhat it is
MQTT_HOST, MQTT_PORT, MQTT_USER, MQTT_PASSThe 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_URLHome Assistant's address, for example http://192.168.1.10:8123.
HA_TOKENA long-lived access token: your Home Assistant profile → Security → Long-lived access tokens.
UI_PASSWORDPassword for the web UI, 8 characters or more. The UI stays locked until it's set.
TZYour time zone, for example Europe/London.
TRUSTED_PROXIESOptional. 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:

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 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.

Open in the Marketplace

  1. 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.
  2. 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.)
  3. 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

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

  1. Delete the integration under Settings → Devices & services, then remove it in the Marketplace (or HACS).
  2. 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.
  3. Uninstall the app. Uninstalling deletes the stored history, so download a backup first if you might want it back.