Просмотр исходного кода

Lefant M213: rearrange error codes to match reality

- land_check was signalled when the garbage box was removed.
  assume an off by one error, but don't touch any earlier codes or those
  after the gap (prev 64 - 512, now 128 - 512).
Jason Rumney 2 лет назад
Родитель
Сommit
7571c6fd0e
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

+ 3 - 3
custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

@@ -79,11 +79,11 @@ primary_entity:
           value: left_wheel
         - dps_val: 8
           value: right_wheel
-        - dps_val: 16
-          value: garbage_box
         - dps_val: 32
-          value: land_check
+          value: garbage_box
         - dps_val: 64
+          value: land_check
+        - dps_val: 128
           value: collision
         - dps_val: 512
           value: low_battery