mutmut
1 Diciembre, 2026 13:32
1
Hola,
la versión 5.3.6 trae de nuevo su lote de novedades en zigbee2mqt desde que la
Me parece increíble esta revisión en móvil, ¡enhorabuena
En la integración de Zigbee2MQTT, la nueva lista de dispositivos en móvil es realmente genial. Solo le falta un medio para identificar de un vistazo los dispositivos que tienen problemas:
Los dispositivos que ya no están en Zigbee2MQTT pero siguen en Gladys. En mi caso, « Lavadora old »: no hay nada que lo diferencie de los demás.
Los dispositivos que ya no envían nada desde hace más tiempo que el « Tiempo antes de que un estado expire » (Configuración > Sistema, 48 h en mi caso): batería agotada, dispositivo fuera de alcance…
Mi propuesta:
un icono rojo y una etiqueta que diga por qué: « Ya no está en Zigbee2MQTT » o « Última señal hace 3 días »;
para un mando a distancia o un botón, que no envía nada hasta que no se usa, lo mismo en naranja en lugar de rojo: este silencio puede ser normal;
en la ficha del dispositivo, un mensaje que diga qué hacer: eliminarlo, verificar su batería, o pulsar un botón para ver si responde;
en el ordenador, lo mismo en el encabezado de la tarjeta del dispositivo.
He propuesto una PR que hace todo esto:
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é os parece?