Pārlūkot izejas kodu

Add support for LSC Smart Connect RGBIC+CCTIC LED strip

Issue #3109
Jason Rumney 9 mēneši atpakaļ
vecāks
revīzija
6fe8603a9f

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -921,3 +921,4 @@ Further device support has been made with the assistance of users. Please consid
 - [webkaktuspl](https://github.com/webkaktuspl) for assisting with support for Vidos M13-XT video doorbell.
 - [rybe](https://github.com/rybe) for assisting with support for Haozee PS10 presence sensing light switch.
 - [BeriBGood](https://github.com/BeriBGood) for assisting with support for SR208C solar water heating controller.
+- [deracloust](https://github.com/deracloust) for assisting with support for LSC Smart Connect RGBIC+CCTIC LED strip.

+ 1 - 0
DEVICES.md

@@ -635,6 +635,7 @@ of device.
 - Loycco sound machine with nightlight (also sold as Momland nightlight with white noise)
 - Loginovo TV sync backlight
 - LSC Smart Connect CCT + RGB ceiling light
+- LSC Smart Connect CCT + RGB led strip
 - LSC Smart Connect garden spotlights
 - LSC Smart Connect Neon LED strip
 - LSC smart connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)

+ 143 - 0
custom_components/tuya_local/devices/lsc_rgbcct_ledstrip.yaml

@@ -0,0 +1,143 @@
+name: LED strip
+products:
+  - id: jdsjyhct8uotmaiw
+    manufacturer: LSC Smart Connect
+    model: 5m RGBIC+CCTIC
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: color_mode
+        type: string
+        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
+      - 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
+        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
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 86400
+  - entity: text
+    name: Music data
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Control data
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 28
+        type: string
+        optional: true
+        name: value
+  - entity: sensor
+    name: Pixels
+    icon: "mdi:led-strip"
+    category: diagnostic
+    dps:
+      - id: 47
+        type: integer
+        name: sensor
+        unit: px
+  - entity: text
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 51
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Dreamlight music data
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        optional: true
+        name: value
+  - entity: number
+    name: Set pixels
+    category: config
+    icon: "mdi:led-strip"
+    dps:
+      - id: 53
+        type: integer
+        name: value
+        unit: px
+        range:
+          min: 1
+          max: 1000
+  - entity: text
+    name: Paint data
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 61
+        type: base64
+        optional: true
+        name: value