Z2M Device Tracker

Firmware updates

Upkeep → Updates lists every device that Zigbee2MQTT says has a firmware (OTA) update. From there you can check for updates, install them one device at a time, and let the tracker install them overnight.

Firmware updates need Zigbee2MQTT. ZHA and Matter devices don't show here, and with ZHA only the section is hidden. See ZHA and Matter.

The Updates section: three devices with updates, a queued one, one skipped for a low battery, recent updates and the overnight schedule

The list

The top of the section says how many updates are available, when the tracker last checked, and when the next overnight run is. Each device shows:

ColumnWhat it shows
DeviceIts name and model. Click it to open the device.
InstalledThe firmware version on the device now, and its build if Zigbee2MQTT knows it.
AvailableThe version Zigbee2MQTT can install.
PowerThe battery level, or a plug for mains-powered devices.
StatusWhere the update is up to, with a button for the next step.

The status is one of these:

StatusWhat it means
ReadyNothing is scheduled. Update now installs it.
Queued for tonightThe overnight run will install it. Update now installs it straight away instead.
Next in tonight's runThe overnight run is going and will reach it soon.
QueuedWaiting for the update in front of it to finish. Cancel takes it out of the queue.
UpdatingInstalling, with the progress and time left when Zigbee2MQTT reports them.
SkippedIt wasn't started, with the reason, for example Battery below 30% or Device is offline. See Low batteries.
FailedThe update failed, and overnight updates are off. Retry tries again.
Failed: tries again tonightThe update failed. The overnight run tries it once more.
Failed twice: retry by handIt failed again, so the overnight run leaves it alone. Retry tries again.

Updates you start from Zigbee2MQTT's own interface show here too, and are recorded the same way.

Checking for updates

Zigbee2MQTT checks for updates on its own when a device asks. Check now asks every device that supports updates, one at a time. Offline devices are skipped. Sleeping battery devices often don't answer, so a few of them may still show no update until they next wake.

To check one device, choose Check for firmware update on its Info tab. That tab is there when you open devices in the side panel or pop-up (Settings → Device details); the full-width device page has no single-device check.

Installing updates

All of them go through one queue. The tracker installs one device at a time, and waits 20 seconds between updates. If any device is already updating, including one you started in Zigbee2MQTT, the queue waits for it.

An update usually takes 10 to 60 minutes. The device may not respond while it updates. Keep it powered and in range of its router. Battery devices need to stay awake, so press a button on one if its update doesn't start.

A slow update, such as a battery device on a weak link, can take longer. After an hour the tracker keeps waiting as long as Zigbee2MQTT still reports progress, up to 8 hours in all. Only then is it recorded as failed.

Overnight updates

Under Schedule in the Updates section, turn on Overnight updates and choose a start and end time. Inside that window each night, the tracker installs the updates on the list, one device at a time. The window can cross midnight, for example 23:00 to 05:00.

This is the ota_window option, set from the sidebar. It's off by default. See Configuration.

The overnight run:

When an update fails

A failed update is tried once more by the next night's run. If that fails too, the device shows Failed twice: retry by hand and the overnight run stops trying. Press Retry to try again. Retry starts the count again, so a later failure gets one more overnight try.

When Zigbee2MQTT offers a newer version, the count starts again too.

Low batteries

An update that stops halfway, because the battery ran out, can leave the device needing to be paired again. So battery devices are skipped when:

The skip applies to Update now, Update all and the overnight run. Skipped devices show Skipped: Battery below 30% (or the level you set) with an Update anyway button. Update anyway installs it for that one device, after a warning.

Firmware notes

Firmware notes in the Updates section are your own notes against a device model and firmware version, for example "Drops off the mesh every few days. Stay on 2.1.3." Use Add note, Edit and Delete there. The app keeps up to 200.

Recent updates

Recent updates lists finished updates, newest first: the device, the old and new versions, when it started and how long it took. A failed update shows the error from Zigbee2MQTT, and Retry while the update is still available. The tracker keeps the last 200.

Each result is also written to Home Assistant's logbook for the device, so it shows on the device's page in Home Assistant. For example: "firmware updated from 100 to 120 in 25 min", or "firmware update failed: …". This needs the device to be linked to a Home Assistant device. The device's Timeline in the tracker logs when each update started and any failure.

From automations

With the integration, the z2m_tracker.ota_update action installs one device's update, or every available update when you leave the device out. It goes through the same queue. Like the Update button on a device, it doesn't skip low batteries. It lists only Zigbee2MQTT devices.