Explorar el Código

M027 curtain. Assume that dp 12 is fault, as per Loonas curtain.

Since this seems to be an expanded version of the zemismart curtain that
Loonas almost matches, assume that 12 is fault here also, which seems likely.
Jason Rumney hace 3 años
padre
commit
b08dc56deb
Se han modificado 1 ficheros con 11 adiciones y 2 borrados
  1. 11 2
      custom_components/tuya_local/devices/m027_curtain.yaml

+ 11 - 2
custom_components/tuya_local/devices/m027_curtain.yaml

@@ -46,8 +46,8 @@ primary_entity:
               value: closed
             - value: closing
     - id: 12
-      name: unknown_12
-      type: integer
+      name: fault_code
+      type: bitfield
     - id: 101
       name: unknown_101
       type: boolean
@@ -84,3 +84,12 @@ secondary_entities:
         name: sensor
         type: integer
         unit: ms
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: boolean
+        name: sensor
+