mutmut
Décembre 1, 2026, 1:32
1
Hello,
la version 5.3.6 apporte encore son lot de nouveauté côté zigbee2mqt depuis que la
Je trouve cette refonte sur mobile époustouflante, un grand bravo
Dans l’intégration Zigbee2MQTT, la nouvelle liste des appareils sur mobile est vraiment top. Il lui manque juste un moyen de repérer d’un coup d’œil les appareils qui posent problème :
Les appareils qui ne sont plus dans Zigbee2MQTT mais toujours dans Gladys. Chez moi, « Machine à laver old » : rien ne le distingue des autres.
Les appareils qui n’envoient plus rien depuis plus longtemps que le « Délai avant expiration d’un état » (Paramètres > Système, 48 h chez moi) : pile vide, appareil hors de portée…
Ma proposition :
une icône rouge et une pastille qui dit pourquoi : « Plus dans Zigbee2MQTT » ou « Dernier signal il y a 3 jours » ;
pour une télécommande ou un bouton, qui n’envoie rien tant qu’on ne s’en sert pas, la même chose en orange plutôt qu’en rouge : ce silence peut être normal ;
dans la fiche de l’appareil, un message qui dit quoi faire : le supprimer, vérifier sa pile, ou appuyer sur un bouton pour voir s’il répond ;
sur ordinateur, la même chose dans l’en-tête de la carte de l’appareil.
J’ai proposé une PR qui fait tout ça :
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.
Qu’en pensez-vous ?