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

feat (devices): add Hombli CCT 2024 Christmas lights

Prioritised for the season

Issue #4087
Jason Rumney 2 месяцев назад
Родитель
Сommit
f1e1e3059c
3 измененных файлов с 96 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 94 0
      custom_components/tuya_local/devices/hombli_cctxmas_lights.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1148,3 +1148,4 @@ Further device support has been made with the assistance of users. Please consid
 - [o-mega](https://github.com/o-mega) for contributing support for EARU EAMPDW-TY-63 3-phase energy monitoring breaker, Funai Fuji ERW-150 Ultimate ventilation fan.
 - [o-mega](https://github.com/o-mega) for contributing support for EARU EAMPDW-TY-63 3-phase energy monitoring breaker, Funai Fuji ERW-150 Ultimate ventilation fan.
 - [soonbolee](https://github.com/soonbolee) for assisting with support for Miro Q-Tower humidifier.
 - [soonbolee](https://github.com/soonbolee) for assisting with support for Miro Q-Tower humidifier.
 - [leoogermenia](https://github.com/leoogermenia) for assisting with support for Zephir ZMW4000V wall heater.
 - [leoogermenia](https://github.com/leoogermenia) for assisting with support for Zephir ZMW4000V wall heater.
+- [momeedees](https://github.com/momeedees) for assisting with support for Hombli CCT 2024 Christmas lights.

+ 1 - 0
DEVICES.md

@@ -759,6 +759,7 @@ of device.
 - Gosund SW2 dimmer switch
 - Gosund SW2 dimmer switch
 - HDMI sync light
 - HDMI sync light
 - HDMI TV ambient lighting 65
 - HDMI TV ambient lighting 65
+- Hombli CCT 2024 Christmas lights
 - iHD001 LED controller
 - iHD001 LED controller
 - Ion LED WiFi dimmer
 - Ion LED WiFi dimmer
 - iSparkle Curtain Micro Lights
 - iSparkle Curtain Micro Lights

+ 94 - 0
custom_components/tuya_local/devices/hombli_cctxmas_lights.yaml

@@ -0,0 +1,94 @@
+name: Christmas lights
+products:
+  - id: bcaam4fg2vjxvwup
+    manufacturer: Hombli
+    model: CCT 2024
+entities:
+  - entity: light
+    icon: "mdi:string-lights"
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: effect
+        type: string
+        mapping:
+          - dps_val: white
+            value: "off"
+          - dps_val: colour
+            value: "off"
+            hidden: true  # color not supported, but listed in dps info
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Control
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Microphone
+    category: config
+    icon: "mdi:microphone"
+    hidden: true
+    dps:
+      - id: 42
+        type: string
+        name: value
+  - entity: text
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 52
+        type: string
+        optional: true
+        name: value
+      - id: 51
+        type: string
+        optional: true
+        name: list
+  - entity: text
+    name: Scene combination
+    category: config
+    icon: "mdi:filmstrip-box-multiple"
+    hidden: true
+    dps:
+      - id: 53
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Scene reset
+    category: config
+    icon: "mdi:image-sync"
+    hidden: true
+    dps:
+      - id: 54
+        type: string
+        optional: true
+        name: value