Skip to content

v2.3.0

Choose a tag to compare

@tempus2016 tempus2016 released this 20 Nov 10:32
44b63e3

Z2M Device Tracker 2.3.0 learns how each of your devices normally behaves and only speaks up when something is unusual for that device. It also brings a new, simpler layout for the whole sidebar, a full-width page for every device, three new checks and summaries, and a Docker image for Home Assistant Container. Everything from 2.2.0-beta.1 is included too. ZHA support keeps its beta label for now, until more ZHA users have tried it.

Coming later: a new name. Now that the app works with ZHA as well as Zigbee2MQTT, it will be renamed Zigbee Device Tracker in a future release. Nothing changes in this release, and you won't need to set anything up again when it happens.

Fixed

  • Replacing a device keeps its entity IDs (#64). Renaming the new device made Home Assistant give its entities fresh IDs with the area in front (light.living_room_living_room_lamp_plug), so automations and dashboards lost them. After the name and area steps, the replace wizard now gives each new entity the ID that the old device's matching entity had. If the old device still holds that ID (a disabled entity, or an old device you kept), its entity moves to <id>_old first.

Added

  • Learned rhythm: alerts that know each device (#64). The app records the gap between each device's messages, by time of week, and works out how often it reports and how long it normally sleeps. Stopped reporting then fires only when a silence is longer than usual for that device at that time. A sensor that reports every few minutes by day and sleeps through the night is no longer flagged at 03:00.

    It goes live for a device after 7 days and 30 reports; until then your reporting profiles work as before. Only devices that report on a steady timer get a learned limit. Buttons, remotes and other devices that report only when something happens are left alone. A profile you set by hand, and a type default you changed by hand, always win. Learning never makes a type default that already applied stricter. A burst of messages a few seconds apart counts as one report.

    The device page shows what was learned: Reports ("every 3–5 min"), Sleeps ("up to 11 h, usually starting between 21:00 and 00:00") and Alert ("after 17 h silent (auto)"). Set my own picks a profile, including the new Auto (learned), and Forget starts learning again.

    Normal for this device on a Stopped reporting alert accepts the current silence until the device reports again, for up to 7 days, and then learns it for that time of week. After a Zigbee2MQTT or broker outage, the clock starts again from when the network came back, so one outage doesn't make every device late at once. It works with Zigbee2MQTT and ZHA; with ZHA the timing is to the nearest minute, because the app polls.

    learn_rhythm: true   # default; false keeps the old behaviour, and gaps keep being recorded
  • Daily summary (#64). One short message a day at the summary hour: what needs attention, what's new since yesterday and what cleared. Batteries due are added when a message goes out anyway. Nothing is sent on a day with nothing to report, and the daily summary is skipped on the day the weekly one goes out. Turn it on with Settings → Weekly summary → Send a daily summary, or try it with Send today's now. It also fires z2m_tracker_summary with daily: true.

    daily_summary: true   # default false
    summary_hour: 9       # shared with the weekly summary
  • Expected outages (#64). A network that goes offline at about the same time on at least 4 of the last 7 days, for under two hours, no longer alerts when it does it again. A nightly Zigbee2MQTT restart or a scheduled backup are typical causes. The outage still shows in Health as Expected outage, with its usual time and length, and it stays out of Home Assistant's Repairs. It alerts as before if it runs more than 30 minutes past its usual window, or happens at another time of day. Nothing is set by hand, and it stops applying within a week of the schedule stopping.

    expected_outages: true   # default; false alerts every time
  • Link quality stuck check (#64). Flags a device whose link quality has read the same value on 50 reports over two days when it used to vary. The device has probably stopped measuring it, so its signal checks can't be trusted until the value changes. Devices that always report one fixed value aren't flagged. It shows in Health without notifying; set it to Show and notify in Settings → Checks to be alerted. Works with Zigbee2MQTT and ZHA.

  • A Docker image for Home Assistant Container (#64, #62). Home Assistant Container has no App store, so the app can now run as its own container: ghcr.io/tempus2016/z2m-device-tracker (amd64 and arm64). Give it your Home Assistant address and a long-lived token, set a password for the web UI, and start it from docker/compose.yaml. The integration connects with the app's address and its API token. The README has the steps.

    services:
      z2m-tracker:
        image: ghcr.io/tempus2016/z2m-device-tracker:2.3.0
        ports: ["8099:8099"]
        environment:
          HA_URL: http://192.168.1.10:8123
          HA_TOKEN: your-long-lived-token
          UI_PASSWORD: pick-a-password
          MQTT_HOST: 192.168.1.10
        volumes: ["./data:/data"]

Changed

  • A new layout for the whole sidebar (#64). Four tabs instead of seven: Health, Devices, Network and Upkeep. Updates is now a section of Upkeep, Activity opens from Health, and Settings sits behind the gear at the top. On a phone the bottom bar has the same four tabs.

  • Health is one inbox (#64). There is one count, and it matches the badge. Each device gets one row with its main problem and one main action, so a low battery shows Battery replaced right there. A ⋮ menu on each row has Snooze 7 days and Ignore, and a device's other problems fold under "+1 more". Rows are grouped into New (since you last looked), Ongoing and Network. Beside them, This week sums up outages, joins, renames and batteries due, and Recent shows the latest events, with a flapping network folded into one line.

  • Every device gets its own full-width page (#64). It replaces the narrow side panel and pop-up. At the top: one status line, the facts with their units ("110 of 255 · good"), and a What to do block with the main action. Under Overview are the cards: When it alerts, Link quality (with the route through the mesh), Battery, Readings and reporting, About and Trends. Timeline starts with the logbook and folds repeats, so eleven scans through the same router are one line. The browser address links straight to the device, and Back or Esc returns to where you were in the list. The side panel and pop-up are still in Settings → Device details, and a choice you made before is kept.

  • Settings lists its sections down the left on a wide screen and hides settings that depend on a switch until it's on (#64).

  • The map's view options sit behind one Options button; zoom and Reset layout stay beside it (#64).

  • The Devices table never cuts off Last seen: it drops the Model column on narrower screens. The "devices need attention" banner is gone, since the Needs attention filter does the same job (#64).

  • A low battery shows in red everywhere, like other faults (#64).

  • Texts that pointed to a device's old Health tab now say where the setting is on the new device page (#64).

Upgrading

Update the app and the integration (HACS) as usual. Nothing needs setting up again, and no options are renamed.

  • Learned rhythm is on by default. For the first 7 days nothing changes. After that, devices without a reporting profile of their own get a learned limit, but only if they report on a steady timer. Devices that were never flagged before can then be flagged if they go quiet for much longer than they ever normally do. Set learn_rhythm: false to keep the old behaviour.

  • Expected outages is on by default. If you want an alert every time a network drops, set expected_outages: false.

  • The device page is the new default. If you prefer the side panel or the pop-up, pick it in Settings → Device details.

  • Docker users: after the first image is published, it may take a few minutes to appear on ghcr.io. See the README for the full setup.

  • ZHA users: ZHA support is still marked beta. Please report anything that looks wrong.

Full changelog: v2.2.0-beta.1...v2.3.0