Explorar el Código

Ledvance Planon lights: wait for dp51 before enabling main light

- make main light unavailable until dp 51 is received, as changing anything
  will give errors until then

Issue #2683
Jason Rumney hace 1 año
padre
commit
6bb6c5d1da

+ 7 - 0
custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

@@ -17,6 +17,13 @@ entities:
       - id: 20
         type: boolean
         name: available
+        mapping:
+          - dps_val: true
+            value: true
+            constraint: switch
+            conditions:
+              - dps_val: null
+                value: false
       - id: 51
         type: base64
         mask: "000100000000000000000000"