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

feat(mirabella_geniopixel_light): add compatible Saiming lamp

PR #5032

Did not include the mess of scenes submitted for the lamp, these should be
implemented on top of the existing scene index number entity.
Jason Rumney 20 часов назад
Родитель
Сommit
7bba481767
1 измененных файлов с 20 добавлено и 2 удалено
  1. 20 2
      custom_components/tuya_local/devices/mirabella_geniopixel_light.yaml

+ 20 - 2
custom_components/tuya_local/devices/mirabella_geniopixel_light.yaml

@@ -1,8 +1,11 @@
-name: Ceiling light
+name: RGBIC light
 products:
   - id: kllgg1iuwrtcvlnp
     manufacturer: Mirabella Genio
-    model: Pixel LED Oval light
+    model: Pixel LED Oval ceiling light
+  - id: k1opzwpazlauaaih
+    manufacturer: Saiming
+    model: 5050RGB-02 floor lamp
 entities:
   - entity: light
     dps:
@@ -69,6 +72,7 @@ entities:
         name: scene_num
       - id: 105
         type: base64
+        optional: true
         name: debug_info
   - entity: time
     translation_key: timer
@@ -114,3 +118,17 @@ entities:
         range:
           min: 0
           max: 11
+  - entity: number
+    name: Scene speed
+    category: config
+    icon: "mdi:speedometer"
+    dps:
+      - id: 25
+        type: hex
+        optional: true
+        name: value
+        mask: "0000FF000"
+        unit: "%"
+        range:
+          min: 0
+          max: 100