Z2M Device Tracker

Configuration

Most settings live in the app's Settings, behind the gear at the top of the sidebar. The firmware update options are under Upkeep → Updates. Changes there take effect straight away and are saved back to the app's configuration, so the two always match.

On a wide screen, Settings lists its sections down the left. Settings that depend on a switch stay hidden until it is on.

Some options can only be set on the app's Configuration tab (Settings → Apps → Z2M Device Tracker → Configuration): the sources, base_topics, z2m_panels, alert_actions, alert_on_join, networkmap_timeout_minutes, expected_outages, the MQTT broker options and metrics_token. Restart the app after changing any of them.

With the Docker image, the options live in /data/options.json instead. Edit the file and restart the container. See Installation.

Sources

OptionDefaultWhat it does
zigbee2mqtttrueRead your Zigbee2MQTT networks (the base_topics) over MQTT.
zhafalseRead Home Assistant's ZHA integration (beta). Can be on together with zigbee2mqtt.
matterfalseRead Home Assistant's Matter integration (beta).

Any mix can be on. See ZHA and Matter.

zigbee_stack is the older single choice, replaced by these switches. An install still set to zigbee_stack: zha keeps reading ZHA only until you change one of the switches.

Networks

OptionDefaultWhat it does
base_topicszigbee2mqttThe MQTT base topic of each Zigbee2MQTT instance to track. Add one line per instance. Spaces are kept, so a base topic that ends in a space works; in the YAML editor, quote it: - "Z2MQTT ".
z2m_panelsemptyLinks to each Zigbee2MQTT app's web interface, one per network, as base_topic=app_slug.

A network's name in the tracker comes from its base topic. zigbee2mqtt shows as Main. Others drop the zigbee2mqtt_ prefix, so zigbee2mqtt_garage shows as Garage. ZHA and Matter show as ZHA and Matter.

The app slug for z2m_panels is in the Zigbee2MQTT app's address bar, after /app/. For example:

base_topics:
  - zigbee2mqtt
  - zigbee2mqtt_garage
z2m_panels:
  - zigbee2mqtt=45df7312_zigbee2mqtt
  - zigbee2mqtt_garage=45df7312_zigbee2mqtt_garage

With panels set, the Networks row in Settings → Appearance & data shows a button that opens each Zigbee2MQTT interface.

If you remove a base topic, or turn a source off, its devices are kept but frozen. See Networks the app no longer listens to.

Notifications

OptionDefaultSettingsWhat it does
alerts_enabledtrueSend alertsMaster switch. Off sends nothing, including the summaries, but keeps your other choices. With the integration, Settings → Repairs stays empty while it's off.
persistent_notificationstrueHome Assistant notificationsShows alerts in Home Assistant's notification panel. They clear themselves when the problem is fixed.
fire_eventstrueAutomation eventFires a z2m_tracker_alert event for each alert.
ha_repairstrueShow problems in HA RepairsWith the integration installed, lists problems in Home Assistant's Settings → Repairs. Turning it off here or in the integration's options keeps Repairs empty.
notify_serviceemptyMobile notificationsAlso sends alerts to a notify action, for example notify.mobile_app_your_phone. Only notify. actions are accepted; a bare name like mobile_app_your_phone gets notify. added.
alert_actionstrue(Configuration tab only)Adds Mute 24 h, Ping and Battery replaced buttons to alerts sent to the notify action, and opens the device when the alert is tapped. Turn it off if your notify action isn't the Companion app and rejects the extra data.
alert_on_jointrue(Device joined check)Alerts when a new device joins. Same as setting Device joined to Notify.
quiet_hoursfalseQuiet hoursHolds alerts during quiet hours and sends one summary when they end. Critical devices still alert straight away.
quiet_start / quiet_end23:00 / 07:00From … toQuiet hours as HH:MM, in the app's time zone. The window can cross midnight.
escalate_enabledfalseEscalate unanswered alertsSends an alert again to a second notify action when nobody mutes, pings or fixes the problem in time. Each problem escalates once.
escalate_hours2Escalate afterHow long an alert can go unanswered before it escalates, 1–168 hours.
escalate_serviceemptySend toThe second notify action, for example notify.mobile_app_partner_phone. Escalation needs one.
escalate_critical_onlytrueOnly for critical devicesOnly escalate alerts for devices marked Critical device.

All of these are in Settings → Notifications, apart from the two marked otherwise. See Alerts and notifications for what each alert contains, quiet hours and escalation.

To pause alerts for a while, for example during Zigbee2MQTT work, use ⋮ → Pause alerts. It isn't an option; see Alerts and notifications.

Summaries

OptionDefaultSettingsWhat it does
weekly_summarytrueSend a weekly summarySends one message a week: what needs attention, batteries to buy, new and removed devices.
summary_day0Summary dayDay to send it, 0 = Monday to 6 = Sunday.
summary_hour9Summary hourHour to send it, 0–23, local time. The daily summary uses the same hour.
daily_summaryfalseSend a daily summaryOne short message a day: what needs attention, what's new and what cleared since yesterday. Skipped on days with nothing to report, and on the day the weekly summary goes out.

These are in Settings → Weekly summary. Send one now and Send today's now send a summary straight away. See Alerts and notifications.

Checks

Settings → Checks: Off, Show in Health, or Show and notify for each check

OptionDefaultWhat it does
disabled_checksemptyChecks to turn off completely.
notify_checkssee belowChecks that send an alert. Checks not listed here (and not disabled) still show on Health.
learn_rhythmtrueLearn each device's rhythm: works out how often each device reports and how long it normally sleeps, and flags Stopped reporting only when a silence is unusual for it.
expected_outagestrue(Configuration tab only.) Don't alert when a network goes offline at the time it does most days, such as a nightly Zigbee2MQTT restart. false alerts every time.

In Settings → Checks each check has one dropdown: Off, Show in Health or Show and notify. Event checks (joined, left, interview failed) only have Off and Notify. When the app reads only ZHA, the list shows only the checks that can fire with ZHA.

The default notify_checks are battery_low, frozen, interview_failed, joined, late, left, network_offline, offline, pairing_open, silent, unidentified and weak_signal. Every other check shows on Health only, and sends alerts once you set it to Show and notify. The check keys are listed on Health checks.

The same section holds the Default reporting profile by device type, for devices without a profile of their own.

With learn_rhythm off, learned limits stop flagging anything. Gaps keep being recorded, so turning it back on needs no new learning period. See Health checks for how a device's rhythm is learned and how expected outages are spotted.

Thresholds

OptionDefaultRangeSettingsWhat it does
offline_alert_minutes600–10080Offline alert delayExtra wait after Zigbee2MQTT (or ZHA) marks a device offline, before it's flagged. Zigbee2MQTT only marks it offline after its own timeout (10 min for mains devices, 25 h for battery devices by default), so with 60 a mains device alerts about 70 min after its last message.
critical_offline_minutes50–1440Critical device offline forThe same, for devices marked Critical device.
alert_repeat_hours240–168Hold repeated alerts forAfter a low battery, weak signal or signal drop alert has cleared, how long before the same alert may be sent again for that device. 0 sends it every time. Offline alerts are never held back.
frozen_alert_hours240–720Reading unchanged forHow long a reading can stay identical, while the device keeps reporting, before it counts as frozen. 0 turns the check off.
battery_alert_percent150–100Low battery atBattery level at or below which a device is flagged.
chatty_per_hour120060–36000Chatty aboveMessages an hour, averaged over 6 hours, above which a device is flagged as chatty.

A device can have its own low battery level and frozen reading time, under Limits for this device on its page. See Devices and history.

Expected reporting for many devices

Expected reporting is set per device, on its page. To set it for many devices at once, go to Settings → Thresholds → Expected reporting and select Set for many devices….

  1. Pick Mains devices, Battery devices or both. Only devices with no setting lists only devices that don't have one yet.
  2. Pick a multiplier: 2×, 3×, 5× or 10×. Each device gets its Usual gap between messages times the multiplier, rounded up to a tidy value such as 3 min, 30 min or 6 h. The usual gap comes from the last week's message counts, or the last 6 hours for a device with less history.
  3. Untick any device you want to leave alone, then select Apply. Turn off clears the setting on the ticked devices instead.

Some devices start unticked:

Limits

These set what the Impossible readings check accepts. They are in Settings → Limits.

OptionDefaultRangeWhat it does
impossible_temp_min / impossible_temp_max-30 / 60-100–100Believable temperature, in °C.
humidity_stuck_hours61–168Humidity stuck at 0 or 100% for: how long humidity must stay at exactly 0 or 100% before it's flagged.

Batteries

OptionDefaultSettingsWhat it does
battery_auto_detecttrueBatteries → Detect battery changesRecords a battery change when a device's battery level jumps up by 25 points or more in a day. Off records changes only when you mark them with Battery replaced.
battery_confirm_detectedfalseBatteries → Ask before recordingA detected change waits in the Battery card on the device's page until you Confirm or Dismiss it.
battery_shop_urlemptyBattery brands → Shop linkStore search address for the cart buttons in Batteries to buy, with {type} where the battery type goes, for example https://www.amazon.co.uk/s?k={type}. Any shop works. Empty hides the buttons. No affiliate tags are added.

See Batteries.

Stored devices

OptionDefaultSettingsWhat it does
storage_auto_resumetrueStored devices → Come back by themselvesA stored device is checked again once it's back online after being away. Off keeps it stored until you bring it back.

Stored devices are for things you put away for part of the year, such as Christmas lights. See Devices and history.

Routing scan and radio

OptionDefaultWhat it does
networkmap_hour3Hour (0–23, local time) of the nightly routing scan. -1 turns the nightly scan off; you can still run one by hand.
networkmap_timeout_minutes60(Configuration tab only.) How long to wait for Zigbee2MQTT to finish a routing scan, 5–240 minutes. A network with 100 devices can take over 20 minutes. An answer that comes later is still saved.
wifi_channelsemptyYour 2.4 GHz Wi-Fi channels, for example 1, 6. Up to six channels from 1 to 14. Used to check your Zigbee channels for overlap.

These are in Settings → Routing scan. The routing scan is for Zigbee2MQTT; ZHA scans its neighbours by itself. See Network map.

Firmware updates

Set these under Schedule in Upkeep → Updates. They are for Zigbee2MQTT devices only.

OptionDefaultUpdatesWhat it does
ota_windowemptyOvernight updatesTime window for installing firmware updates automatically, as HH:MM-HH:MM in local time, for example 02:00-05:00. It can cross midnight. Empty turns automatic updates off. A failed update is tried once more the next night.
ota_min_battery30Minimum batteryBattery level (0–100) below which battery devices are skipped by Update now, Update all and the overnight run. Update anyway overrides it for one device.

A start and end time that are the same aren't a valid window. See Firmware updates.

Broker

OptionDefaultSettingsWhat it does
broker_statstrueBroker → Read broker statisticsReads Mosquitto's $SYS/broker/# statistics for Network → Broker. Mosquitto only.
retained_autoclearfalseBroker → Clear a device's old retained topics after a renameClears the retained messages the broker still keeps under a device's old name. Off lists them on Network → Broker for you to clear.

MQTT broker

By default the app uses the broker Home Assistant offers to apps, the Mosquitto broker app. To use another broker, set mqtt_host and restart the app. These options are at the bottom of the app's Configuration tab. With the Docker image, use the MQTT_* variables instead; see Installation.

OptionDefaultWhat it does
mqtt_hostemptyAddress of your broker. Empty uses the one Home Assistant offers.
mqtt_port1883Its port. Usually 1883, or 8883 with TLS.
mqtt_user / mqtt_passwordemptyLogin for that broker. Leave empty if it allows anonymous connections.
mqtt_sslfalseConnect over TLS.
mqtt_ssl_verifytrueCheck the broker's TLS certificate. Turn off only for a self-signed certificate on a network you trust.
mqtt_host: 192.0.2.10
mqtt_port: 8883
mqtt_user: z2m_tracker
mqtt_password: your-password
mqtt_ssl: true

Use the same broker as Zigbee2MQTT. The app's Home Assistant entities use MQTT discovery, so they appear only if Home Assistant's MQTT integration is connected to that broker too. Without mqtt_ssl, the login and all Zigbee messages cross your network unencrypted.

If the connection fails, the app's log says why and which option to check. The app doesn't use the broker for ZHA or Matter.

Device names

OptionDefaultSettingsWhat it does
naming_patternemptyDevice names → Naming patternPattern for device names, for example {area} {type} {n}. Fills in the name of each device that joins while you pair, and drives the Naming check. Empty turns it off.

The tokens are {area}, {type}, {model} and {n}. See Pairing and moving devices.

Prometheus metrics

OptionDefaultWhat it does
metrics_tokenemptyToken for the Prometheus endpoint, 16 characters or more. Empty keeps the endpoint off.

The endpoint also needs port 9099/tcp mapped under Network on the app's Configuration tab. See Prometheus metrics.

Home Assistant entities

OptionDefaultSettingsWhat it does
ha_entitiestrueHome Assistant entities → Add entities to Zigbee devicesAdds tracker entities to each Zigbee2MQTT device through MQTT discovery. Turning it off removes them. Not used for ZHA or Matter devices.

See Home Assistant entities.

Community ratings

OptionDefaultSettingsWhat it does
community_ratings_fetchtrueCommunity ratings → Fetch new ratingsDownloads the newest ratings from GitHub once a day. Off uses the copy that comes with the app, updated with each release.

See Community ratings.

Settings that stay in your browser

These are in Settings → Appearance & data but are stored per browser, not in the app:

The Map also remembers, per browser, whether you last used the graph or the floor plan, and your view options.

Language

Settings → Appearance & data → Language, set to Automatic

The sidebar uses the language in your Home Assistant profile. To use a different one, pick it in Settings → Appearance & data → Language. Automatic goes back to following your profile. The choice is saved in your browser, so each browser can have its own.

Dates, times and "2 days ago" follow the same language.

The sidebar comes in English, Čeština (Czech), Deutsch (German), Español (Spanish), Français (French), Italiano (Italian), Magyar (Hungarian), Nederlands (Dutch), Polski (Polish), Português (Brasil) (Brazilian Portuguese), Русский (Russian), Svenska (Swedish) and 简体中文 (Simplified Chinese). The picker shows each language by its own name. A regional language picks the closest one: Portuguese (Portugal), for example, uses Brazilian Portuguese. If your language isn't there, the sidebar stays in English.

The translations are machine-made, so corrections from native speakers are welcome. New text shows in English until a translation adds it.

The same languages cover the app's options on its Configuration tab, and the integration's setup, options, actions, sensor names and dashboard cards. Those follow your Home Assistant profile language.

Some text always stays in English: Home Assistant notifications, the summaries, alert events, the names of the sensors the app adds to each device, and names and data that come from Zigbee2MQTT, such as models.

Adding a language

A language is three files, each copied from the English one next to it:

WhatEnglish source
The sidebar and the dashboard cardsz2m_tracker/app/www/i18n/en.json
The app's options in Home Assistantz2m_tracker/translations/en.yaml
The integration: setup, options, actions, entitiescustom_components/z2m_tracker/translations/en.json

Name each copy after Home Assistant's language code (for example de or pt-BR), translate the values, and open a pull request. To fix a translation, edit the existing file. CONTRIBUTING.md has the details, including plurals and placeholders.