From e52081b94a844c5b8d1e0c559fba845d71d8f702 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 2 Jan 2024 21:43:28 +0900 Subject: [PATCH] Add support for "Dreamlight" RGBCW LED strips. Issue #1341 --- ACKNOWLEDGEMENTS.md | 1 + DEVICES.md | 1 + .../devices/dreamlight_led_strip.yaml | 115 ++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 custom_components/tuya_local/devices/dreamlight_led_strip.yaml diff --git a/ACKNOWLEDGEMENTS.md b/ACKNOWLEDGEMENTS.md index c25daf0add..7137f788e4 100644 --- a/ACKNOWLEDGEMENTS.md +++ b/ACKNOWLEDGEMENTS.md @@ -440,3 +440,4 @@ Further device support has been made with the assistance of users. Please consid - [fireheadman](https://github.com/fireheadman) for assisting with support for WF39M dimmer smartplugs. - [yousaf465](https://github.com/yousaf465) for contributing Urdu translations. - [wisemanny](https://github.com/wisemanny) for contributing support for Zigbee Door/Window sensors and Loratap QCSC400ZB Zigbee curtain switches. +- [erwin-faceit](https://github.com/erwin-faceit) for assisting with support for Dreamlight LED strips. diff --git a/DEVICES.md b/DEVICES.md index 282433a731..94add66531 100644 --- a/DEVICES.md +++ b/DEVICES.md @@ -399,6 +399,7 @@ of device. - Generic RGBCW/RGBWW lightbulb (confirmed with Lijun branded bulb, expected to match others also). Three versions - standard dps layout starting from 20, with and without scene/music modes and timer, and a non-standard layout starting from 1 but following the same pattern (tested with "A60" bulbs). - Generic RGBW lightbulb in the standard and non-standard patterns above but without color temperature control. - Generic dimmable/color temperature adjustable desktop lamp (confirmed with Setti+ SL601) +- Generic "Dreamlight" RGBCW LED strips (tested with LSC RGBIC+CCT 2x5m LED strip) - Generic RGB only light bar - like the lights above, but no white light controls supported. - A60 1800-2700K RGBWW light - Atomi smart color string light diff --git a/custom_components/tuya_local/devices/dreamlight_led_strip.yaml b/custom_components/tuya_local/devices/dreamlight_led_strip.yaml new file mode 100644 index 0000000000..ef7399d28c --- /dev/null +++ b/custom_components/tuya_local/devices/dreamlight_led_strip.yaml @@ -0,0 +1,115 @@ +name: RGBCW light strip +products: + - id: aok3caeleulg1neh + name: LSC LED Strip RGBIC+CCT 2x5M +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: scene + value: Scene + - dps_val: music + value: Music + - id: 22 + name: brightness + type: integer + optional: true + range: + min: 10 + max: 1000 + mapping: + - dps_val: null + value: 0 + - scale: 3.92 + - id: 23 + name: color_temp + type: integer + optional: true + range: + min: 0 + max: 1000 + mapping: + - target_range: + min: 2700 + max: 6500 + - id: 24 + name: rgbhsv + type: hex + optional: true + 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: 27 + name: music_data + type: hex + optional: true + - id: 46 + name: length_cm + type: integer + - id: 47 + name: pixels + type: integer + - id: 51 + name: dreamlight_scene + type: string + optional: true + - id: 52 + name: dreamlight_music_data + type: string + optional: true + - id: 61 + name: paint_colour_data + type: string + optional: true +secondary_entities: + - entity: number + name: Timer + category: config + icon: "mdi:timer" + dps: + - id: 26 + name: value + type: integer + optional: true + range: + min: 0 + max: 86400 + unit: min + mapping: + - scale: 60 + step: 60 + - dps_val: null + - entity: number + name: Pixels + category: config + icon: "mdi:dots-grid" + dps: + - id: 53 + type: integer + name: value + range: + min: 1 + max: 1000