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

Lefant M213: Adjust to work with M213S.

- Direction control returns forward in normal operation, which is not listed in the iot.tuya.com docs.  I think this applies to M213 as well.
- DPS 108 is not returned by M213S (or may be mode dependant).  Since it is not linked to any known function, remove it from the config to allow detection of the M213S as M213 compatible.
Jason Rumney 3 лет назад
Родитель
Сommit
8efa10cab3
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

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

@@ -28,6 +28,8 @@ primary_entity:
       type: string
       name: direction_control
       mapping:
+        - dps_val: forward
+          value: forward
         - dps_val: backward
           value: reverse
         - dps_val: turn_left
@@ -83,9 +85,9 @@ primary_entity:
     - id: 106
       type: string
       name: unknown_106
-    - id: 108
-      type: string
-      name: unknown_108
+#    - id: 108
+#      type: string
+#      name: unknown_108
 secondary_entities:
   - entity: sensor
     name: Clean Area