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

feat (ledvance_smart?plabl100x25b): add compatible Annaror light

These devices both have separate white and rgb lights, controlled through
dp 51 alongside standard light dp layout which is not used except as a master
switch. The Annaror does not have enough documentation to confirm, but
I suspect the format for dp 51 is the same, and the same config can be used.

Issue #3883
Jason Rumney 3 месяцев назад
Родитель
Сommit
aedf7edb0e

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

@@ -4,6 +4,10 @@ products:
     manufacturer: Ledvance
     model: Smart+ Planon plus backlight
     model_id: BL100x25B
+  - id: 2zjsc9dxfxlr7yf3
+    manufacturer: Annaror
+    model: Dual ceiling light
+    model_id: "5LRGB"
 entities:
   - entity: switch
     icon: "mdi:lightbulb-multiple"
@@ -45,6 +49,7 @@ entities:
       - id: 22
         name: std_brightness
         type: integer
+        optional: true
         range:
           min: 0
           max: 1000
@@ -63,6 +68,7 @@ entities:
       - id: 23
         name: std_color_temp
         type: integer
+        optional: true
         range:
           min: 0
           max: 500