mutmut
December 1, 2026, 1:32pm
1
Hello,
the version 5.3.6 brings yet another round of new features on the Zigbee2MQTT side since the
I find this mobile redesign stunning, a big bravo
In the Zigbee2MQTT integration, the new device list on mobile is really great. It just lacks a way to spot at a glance the devices that are causing issues:
Devices that are no longer in Zigbee2MQTT but still in Gladys. In my case, « Machine à laver old »: nothing distinguishes it from the others.
Devices that have not sent anything for longer than the “State Expiration Delay” (Settings > System, 48 hours for me): dead battery, out of range…
My proposal:
a red icon and a badge that says why: “No longer in Zigbee2MQTT” or “Last signal 3 days ago”;
for a remote control or a button, which sends nothing until you use it, the same thing in orange rather than red: this silence can be normal;
in the device card, a message that says what to do: delete it, check its battery, or press a button to see if it responds;
on computer, the same thing in the device card header.
I proposed a PR that does all this:
master ← smuteau:feat/z2m-device-health
ouvert 01:17PM - 01 Dec 26 UTC
### Description
On the "Devices" tab of Zigbee2MQTT, nothing told a device that… is no longer in Zigbee2MQTT (removed from the Zigbee network, still listed in Gladys) from a working one, nor a device that stopped reporting. Such a device now says so. On a phone: on its row (the tile of its icon and a pill before the battery) and, in its sheet, a notice of the same tone saying what to do. On a wider screen: a tag of the same tone in the header of its card, before the battery, and the same notice as an alert at the top of the card.
| Case | How it is known | Row / card header | Sheet / card alert |
|---|---|---|---|
| **No longer in Zigbee2MQTT** | its `external_id` is not in `GET /discovered` (the list the page already reads for the IEEE addresses) | red, "No longer in Zigbee2MQTT" | delete it if unused, otherwise pair it again |
| **Silent** | every feature that ever received a value has `last_value_is_too_old` (the device list already computes it from the "Time to expiry of a state" system setting, 48 h by default) | red, "Last heard 3 days ago" | check its power and the Zigbee range |
| **Silent remote** | the same, on a device with a `button` / `click` feature (the Zigbee2MQTT `action`): it sends nothing until it is used | warning tone (orange on a phone, yellow tag on a wider screen), "Last heard 3 days ago" | this silence may be normal, press one of its buttons |
- **No server change.** Everything comes from the two requests the page already makes. `last_value_changed` is written on every state received, even an unchanged one, so a stable sensor that keeps reporting is not taken for a silent one.
- **No false "gone" while Zigbee2MQTT has not answered.** Gladys fills the discovered list from the retained `bridge/devices` message: an empty list (not received yet, or a failed request) tells nothing, so no device is flagged as gone then.
- **A device that never received anything stays neutral**, and being gone wins over being silent.
- **Kept beside the devices** (`zigbee2mqttDeviceHealth`, by `external_id`), not in them: a save replaces a device with what the server answers, and the state must not be posted with it.
- **Same state on every screen size**: the desktop card reuses the label and the notice of the phone; nothing else of the card moves.
New helper `front/src/routes/integration/all/zigbee2mqtt/utils/deviceHealth.js`; texts in en / fr / de / es.
Spec updated: `docs/specs/mobile-pages/integration-devices.md`, section E (Zigbee2MQTT, new bullet "Gone or silent devices").
### Tests
- Front: Prettier, ESLint (no new warning), `compare-translations` and `npm run build` pass.
- Cypress, run locally: `Zigbee2MqttTabsMobile.cy.js`, 23 passing, of which 5 new (the three cases on the rows with their tones, the notices in the sheets, the state kept after a save, the tags and alerts of the desktop cards, nothing told gone when the discovered list is empty). The existing Devices stub now lists the sensor among the discovered devices, so that it is not taken for a gone one.
- Rendering checked in French on an iPhone X viewport (the list and the three sheets) and on a 1280 px wide screen (the cards).
### Related request
Forum: https://community.gladysassistant.com/t/zigbee2mqtt-amelioration-pour-les-modules-non-joignables/11707
### Checklist
- [x] If a forum topic or GitHub issue exists, the description links it (`Forum: https://community.gladysassistant.com/t/...` or `Closes #...`)
- [x] Tests pass: `cd server && npm run coverage` (Codecov requires 100% coverage on changed lines) and Cypress (`npm run cypress:run`) if the UI changed (no server change; the Zigbee2MQTT phone spec runs locally)
- [x] Linter and prettier pass on both front and server (`npm run eslint`, `npm run prettier`)
- [x] No undocumented breaking change
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary by CodeRabbit
* **New Features**
* Zigbee2MQTT device rows, details, and desktop cards now show health indicators for devices no longer found in Zigbee2MQTT or silent beyond the configured state-expiry period.
* Silent button and remote devices have a separate notice explaining that they may be quiet until used.
* Devices with no reported values remain neutral. An empty discovered-device list does not mark devices as missing, and missing status takes precedence over silence.
* Health notices are available in English, German, Spanish, and French.
What do you think?