瀏覽代碼

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 年之前
父節點
當前提交
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