Repository navigation
Backup and Data
Everything is in the app's own data folder, which Home Assistant includes in its backups:
| File | What's in it |
|---|---|
history.json |
Devices, names, events, notes, battery records, coordinator health. Saved every 30 seconds when something changes. |
metrics.json |
Hourly signal (14 days) and daily battery readings (400 days). Saved every 5 minutes. |
scans.json |
The last 40 routing scans of each network. |
Uninstalling the app deletes this folder.
Settings → Appearance & data → Backup:
-
Download saves the full history and the signal and battery readings as one JSON file, named
zigbee-tracker-backup-<date>.json. Routing scan history isn't included. - Restore replaces the tracker's history with a backup file. Anything recorded since the backup is lost.
This is separate from Home Assistant's own backups, so you can move the history to a new install or keep a copy before trying something risky.
Settings → Export CSV downloads every device (except the coordinator) as a spreadsheet, one row per device:
IEEE address, name, former names, status, network, vendor, model, model ID, manufacturer, radio maker, description, type, power source, firmware, first seen, last seen, removed date, 24-hour signal, battery level, battery type and count, battery installed and last replaced dates, battery brand, number of replacements, 30-day uptime, area, Home Assistant name, purchase date, shop, price, warranty end, location, serial number and note.
The tracker starts recording when the app is installed, but Zigbee2MQTT and Home Assistant already know a lot about devices you've had before. On first start, and whenever you choose Settings → Import history, the app reads:
| Source | What it gives |
|---|---|
Zigbee2MQTT configuration*.yaml (including backups) |
Friendly names and descriptions |
Zigbee2MQTT database.db (including backups) |
Model, manufacturer, last seen |
Zigbee2MQTT state.json
|
Last seen |
| Zigbee2MQTT logs | Joins, leaves, interviews and renames, with their times |
| Home Assistant device registry | Names you gave devices in Home Assistant, areas, and deleted devices |
| Home Assistant entity registry | Former names from deleted entities |
It looks in <config>/<base topic>/ for each network, which is where the Zigbee2MQTT app keeps its files.
Importing only adds: it fills in fields that are empty and adds names and events that aren't there yet. Devices found only in the files are added as removed. It's safe to run again.
The integration's z2m_tracker.import_history action does the same thing.
Forget on a device deletes it, its events and its readings for good. If it's still on a network, it's added back as a new device on the next device list.
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