Bladeren bron

fix(lsc_smart_ceiling_light): expose dp 20 master switch

Apparently required to have both lights stay off.

Used as an availability flag on the light entities, to avoid mistakenly
adjusting them while the master is off.

Comment on PR #2359
Jason Rumney 1 uur geleden
bovenliggende
commit
8a0d8a247d
1 gewijzigde bestanden met toevoegingen van 12 en 0 verwijderingen
  1. 12 0
      custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

+ 12 - 0
custom_components/tuya_local/devices/lsc_smart_ceiling_light.yaml

@@ -3,12 +3,21 @@ products:
   - id: bwyutsrcsnwf3p5o
   - id: bwyutsrcsnwf3p5o
     manufacturer: LSC Smart Connect
     manufacturer: LSC Smart Connect
 entities:
 entities:
+  - entity: switch
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+
   - entity: light
   - entity: light
     icon: mdi:circle
     icon: mdi:circle
     dps:
     dps:
       - id: 63
       - id: 63
         type: boolean
         type: boolean
         name: switch
         name: switch
+      - id: 20
+        type: boolean
+        name: available
       - id: 22
       - id: 22
         name: brightness
         name: brightness
         type: integer
         type: integer
@@ -33,6 +42,9 @@ entities:
       - id: 54
       - id: 54
         type: boolean
         type: boolean
         name: switch
         name: switch
+      - id: 20
+        type: boolean
+        name: available
       - id: 24
       - id: 24
         name: rgbhsv
         name: rgbhsv
         type: hex
         type: hex