Feature request: Event when a ZHA device communicates
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- embedded-iot, python
- Área
- embedded-iot
Línea de trabajo
No files or tests are named, so start by finding out whether zigpy already emits a signal for incoming device messages that ZHA could forward, and check the thread for a decision on the event's shape. The payload asks whether such a signal exists rather than specifying a change. Done means an agreed event name and payload, plus a way to emit it from received Zigbee packets.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Would it be possible for ZHA to expose an event whenever communication is received from a Zigbee device?
The use case is maintaining a reliable per-device last_seen timestamp and detecting devices that have stopped checking in.
Home Assistant entity timestamps are not ideal for this because a device may report the same value repeatedly without producing a meaningful entity state change. What would be useful is an event tied to actual Zigbee communication from the physical device.
For example, something conceptually like:
event_type: zha_device_activity
data:
device_ieee: "00:11:22:33:44:55:66:77"
device_id: "..."
The exact event name/data is not important. The main requirement would be that it fires whenever ZHA receives a valid packet/report/command from that device.
That would make it possible to build automations such as:
- Maintain a true
last_seentimestamp per ZHA device - Detect sleepy end devices that have stopped reporting
- Mark devices as degraded/offline using user-defined timeouts
- Build diagnostic dashboards without periodically polling all ZHA devices
Ideally this would represent device communication rather than only entity state changes or button-style zha_event actions.
Is there already an internal ZHA/zigpy signal that represents this which could reasonably be exposed to Home Assistant automations?
- Lenguaje dominante
- Python
- Estrellas
- 96
- Forks
- 84
- Merge medio
- 3 d 1 h
- PR fusionados (30 d)
- 13
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de zigpy/zha
-
Analog output numbers and analog input sensors show eleven BACnet engineering units as a different unitPosiblemente ocupada @zigpy-review-bot la tomó hace 2 días. Abiertobot: code audit
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
device specific quirks
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
zigpy/zha#907 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
entities
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
zigpy/zha#855 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
quirks
Dificultad 3/5 Medio día Aptitud para principiantes 58/100
zigpy/zha#1072 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Issues similares
-
pydanty:is-working
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pydantic/pydantic-ai#14472 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
patrickballard/wheelgap#728 ·
-
bug good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
choras-org/simulation-backend#58 ·
Los mantenedores suelen responder en 1 día
-
backend part-1-modeling testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100