Bläddra i källkod

Zemismart: roller shade: add opened and closed to action

Based on other configs, the action only indicated opening or closing and
continues to indicate those even when the cover has fully opened or closed.
Use position to detect when it is fully opened or closed and report that.

#672
Jason Rumney 3 år sedan
förälder
incheckning
546c0b0130
1 ändrade filer med 13 tillägg och 0 borttagningar
  1. 13 0
      custom_components/tuya_local/devices/zemismart_roller_shade.yaml

+ 13 - 0
custom_components/tuya_local/devices/zemismart_roller_shade.yaml

@@ -35,6 +35,19 @@ primary_entity:
     - id: 7
       name: unreliable_action
       type: string
+      mapping:
+        - dps_val: opening
+          constraint: current_position
+          conditions:
+            - dps_val: 0
+              value: opened
+            - value: opening
+        - dps_val: closing
+          constraint: current_position
+          conditions:
+            - dps_val: 100
+              value: closed
+            - value: closing
     - id: 12
       name: fault_code
       type: bitfield