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

ZC34T window: merge open status into cover

The cover supports an open sensor, which should work for this, as long as
null is returned when the state is unknown.

Issue #1162
Jason Rumney 1 год назад
Родитель
Сommit
0a73ab26a3

+ 12 - 0
custom_components/tuya_local/devices/ZC34T-03-3A_swing_arm_opener.yaml

@@ -17,6 +17,16 @@ entities:
             value: close
           - dps_val: stop
             value: stop
+      - id: 1
+        type: string
+        optional: true
+        name: open
+        mapping:
+          - dps_val: open
+            value: true
+          - dps_val: closed
+            value: false
+          - value: null
   - entity: lock
     dps:
       - id: 102
@@ -30,6 +40,8 @@ entities:
             value: false
   - entity: binary_sensor
     class: window
+    # 2025-02-24
+    deprecated: cover
     dps:
       - id: 1
         type: string