Răsfoiți Sursa

3x Arlec lights supported (CHR370HA, CHR352HA, ALP018HA) (#5777)

Added support for 3 Arlec branded lights:

Smart 5m Neon Flex - CHR370HA
Smart Desk Light - CHR352HA
Smart Sound Sync Mood Lamp - ALP018HA

Unified colour mode and added sound sync mode configurations across 2
devices; dreamlight_led_strip.yaml and dreamlight_rgb_strip.yaml.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
doctordarko 13 ore în urmă
părinte
comite
26fe8c2b1f

+ 23 - 8
custom_components/tuya_local/devices/dreamlight_led_strip.yaml

@@ -6,6 +6,9 @@ products:
   - id: rqrkvuxebofiaifp
   - id: rqrkvuxebofiaifp
     manufacturer: Fancy LED
     manufacturer: Fancy LED
     model: Fancy Lightstrip  3
     model: Fancy Lightstrip  3
+  - id: m6abhkeubvtdfjgw
+    manufacturer: Arlec
+    model: Smart Sound Sync Mood Lamp - ALP018HA
 entities:
 entities:
   - entity: light
   - entity: light
     dps:
     dps:
@@ -75,14 +78,6 @@ entities:
       - id: 47
       - id: 47
         name: pixels
         name: pixels
         type: integer
         type: integer
-      - id: 51
-        name: dreamlight_scene
-        type: string
-        optional: true
-      - id: 52
-        name: dreamlight_music_data
-        type: string
-        optional: true
       - id: 61
       - id: 61
         name: paint_colour_data
         name: paint_colour_data
         type: string
         type: string
@@ -111,6 +106,7 @@ entities:
           max: 1000
           max: 1000
   - entity: select
   - entity: select
     name: Color mode
     name: Color mode
+    deprecated: light.color_mode  # 2026-08-10
     icon: "mdi:palette"
     icon: "mdi:palette"
     category: config
     category: config
     dps:
     dps:
@@ -125,6 +121,15 @@ entities:
             value: "Scene"
             value: "Scene"
           - dps_val: "music"
           - dps_val: "music"
             value: "Music"
             value: "Music"
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 51
+        type: base64
+        optional: true
+        name: value
   - entity: select
   - entity: select
     translation_key: scene
     translation_key: scene
     category: config
     category: config
@@ -222,3 +227,13 @@ entities:
             value: "Summer wind"
             value: "Summer wind"
           - dps_val: "AToCXV3gAABNALReARxkAOhJAMZf"
           - dps_val: "AToCXV3gAABNALReARxkAOhJAMZf"
             value: "Planet journey"
             value: "Planet journey"
+  - entity: text
+    name: Sound sync
+    icon: "mdi:music"
+    category: config
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        name: value
+        optional: true

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

@@ -5,6 +5,12 @@ products:
     model: RGBIC LED
     model: RGBIC LED
   - id: kmgfxv1zmklfpxxn
   - id: kmgfxv1zmklfpxxn
     model: JSK-P22
     model: JSK-P22
+  - id: wuy0oikiieoirzs7
+    manufacturer: Arlec
+    model: Smart 5m Neon Flex - CHR370HA
+  - id: ceu9kibxiqqcpigb
+    manufacturer: Arlec
+    model: Smart Desk Light - CHR352HA
 entities:
 entities:
   - entity: light
   - entity: light
     dps:
     dps: