Remove Aqara motion detection_interval sync and read detection_interval after pairing
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
- 48/100
Línea de trabajo
Read zha/application/platforms/virtual.py and inspect AqaraMotionDetectionIntervalSync, AqaraMotionAc02Init, and AqaraMotionAgl04Init. Check the minimum supported zha-quirks version and the related issue #782 before changing startup behavior. Add or update tests to verify detection_interval is cached after pairing and no write to ias_zone.reset_s occurs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
zigpy/zha-device-handlers#5067 (merged) lets the Aqara motion quirks (lumi.motion.ac02 and lumi.motion.agl04) read detection_interval from the Opple cluster cache themselves via an overridable reset_after property, and removes the quirk-side write_attributes overrides that pushed the value into ias_zone.reset_s. ZHA still carries the old startup workaround: AqaraMotionDetectionIntervalSync in zha/application/platforms/virtual.py copies detection_interval into ias_zone.reset_s on startup, which the quirks no longer need.
Proposed fix
- Remove
AqaraMotionDetectionIntervalSynconce the minimum zha-quirks version contains #5067 (otherwise older quirks lose the behaviour). - Make sure
detection_intervalis read from the device once after pairing. BothAqaraMotionAc02InitandAqaraMotionAgl04Initcurrently declare it withread_on_startup=False, so the cache can stay empty until the number entity is used and the quirk falls back to its staticreset_s(30 s for ac02, 60 s for agl04). Either read it once on join, or let this happen through quirks v2 attribute config. - Tests for the above (no
ias_zone.reset_swrite,detection_intervalpresent in the cache after joining).
Context
Related: zigpy/zha#782, which touches the same virtual entities, so this is best done after it lands. Quirk-side follow-ups are tracked in the linked zha-device-handlers issue.
- 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