Browse Source

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 3 years ago
parent
commit
b08dc56deb
1 changed files with 11 additions and 2 deletions
  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
+