Quellcode durchsuchen

fix: add 'near' movement state value to ZG-205W mmWave presence sensor (#5465)

DPS 116 (Movement state) on the ZG-205Z sensor emits 'near' as a real
device value alongside the 'far' value added in #5411. Without this
mapping the sensor entity raises a ValueError and logs an error:

  provides state value 'near', which is not in the list of options

Confirmed observed in production: 320 occurrences in a 2-hour window,
cycling between Far → Near → Large → Breathe as subjects move.

Fixes the companion gap to #5411.

Co-authored-by: robelmes <robelmes@users.noreply.github.com>
robelmes vor 2 Tagen
Ursprung
Commit
d7f1b8629f

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

@@ -299,6 +299,8 @@ entities:
             value: None
             value: None
           - dps_val: far
           - dps_val: far
             value: Far
             value: Far
+          - dps_val: near
+            value: Near
   - entity: switch
   - entity: switch
     name: Small motion self-test
     name: Small motion self-test
     category: config
     category: config