Explorar o código

fix: add 'far' movement state to ZG-205W presence sensor (DPS 116) (#5411)

The ZG-205W/ZG-205Z mmWave presence sensor can emit 'far' as a DPS 116
value in addition to the existing large_move, small_move, breathe, none.

This value appears to represent stationary presence detected at far range
(beyond the active motion zone). Without this mapping, tuya-local passes
the raw 'far' string to HA, which raises a ValueError because 'far' is not
in the declared enum options, producing repeated errors in the HA log.

Observed on firmware version in use with ZG-205Z sensors (same hardware,
same DPS mapping).

Co-authored-by: robelmes <robelmes@users.noreply.github.com>
robelmes hai 1 semana
pai
achega
ad393eeecb

+ 2 - 0
custom_components/tuya_local/devices/zg205w_mmWave_presence_sensor.yaml

@@ -297,6 +297,8 @@ entities:
             value: Breathe
           - dps_val: none
             value: None
+          - dps_val: far
+            value: Far
   - entity: switch
     name: Small motion self-test
     category: config