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

Add support for Mirabella Genio Pixel oval light

Issue #1538
Jason Rumney 2 лет назад
Родитель
Сommit
7ec76dcd68

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -492,3 +492,4 @@ Further device support has been made with the assistance of users. Please consid
 - [KoKolaj](https://github.com/KoKolaj) for assisting with support for Tesla Smart XL dehumidifiers.
 - [BenJamesAndo](https://github.com/BenJamesAndo) for contributing support for Lexi Lighting string light WiFi adapters.
 - [LordPsycho202](https://github.com/LordPsycho202) for contributing support for Leo's Loo Too pet toilets.
+- [RoelDU](https://github.com/RoelDU) for assisting with support for Mirabella Genio Pixel oval lights.

+ 1 - 0
DEVICES.md

@@ -457,6 +457,7 @@ of device.
 - Loginovo TV sync backlight
 - Lytmi Fantasy/Neo 3 HDMI sync backlight
 - Marpou RGBCW ceiling light
+- Mirabella Genio Pixel LED oval light
 - Moes dimmer switch
 - Moes motion sensor lights (XZ-CGV3)
 - Moes star projector

+ 121 - 0
custom_components/tuya_local/devices/mirabella_geniopixel_light.yaml

@@ -0,0 +1,121 @@
+name: Ceiling light
+products:
+  - id: kllgg1iuwrtcvlnp
+    name: Mirabella Genio Pixel LED Oval light
+primary_entity:
+  entity: light
+  dps:
+    - id: 20
+      type: boolean
+      name: switch
+    - id: 21
+      type: string
+      name: color_mode
+      mapping:
+        - dps_val: white
+          value: color_temp
+        - dps_val: colour
+          value: hs
+        - dps_val: static
+          value: Static
+        - dps_val: pre_set
+          value: Preset
+        - dps_val: custom
+          value: Custom
+        - dps_val: local_music
+          value: Music
+    - id: 22
+      type: integer
+      name: brightness
+      range:
+        min: 10
+        max: 1000
+    - id: 23
+      type: integer
+      name: color_temp
+      range:
+        min: 0
+        max: 1000
+      mapping:
+        - target_range:
+            min: 2700
+            max: 6500
+    - id: 24
+      type: hex
+      name: rgbhsv
+      format:
+        - name: h
+          bytes: 2
+          range:
+            min: 0
+            max: 360
+        - name: s
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+        - name: v
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+    - id: 25
+      type: hex
+      name: scene_data
+      optional: true
+    - id: 101
+      type: string
+      name: scene_num
+    - id: 105
+      type: base64
+      name: debug_info
+secondary_entities:
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: number
+    name: Scene data reset
+    category: config
+    icon: "mdi:palette"
+    dps:
+      - id: 102
+        type: integer
+        optional: true
+        name: value
+        range:
+          min: 0
+          max: 255
+  - entity: number
+    name: LED number
+    category: config
+    icon: "mdi:counter"
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 150
+  - entity: number
+    name: Scene index
+    category: config
+    icon: "mdi:palette"
+    dps:
+      - id: 104
+        type: integer
+        name: value
+        range:
+          min: 0
+          max: 11