소스 검색

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 1 년 전
부모
커밋
6bb6c5d1da
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

+ 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"