ソースを参照

feat(devices): add LSC Smart Connect RGB/IC+CCT/IC LED strip

Issue #5987
Jason Rumney 1 日 前
コミット
a43dcbab72

+ 1 - 3
DEVICES.md

@@ -977,10 +977,8 @@ of device.
 - Loycco Smart Nursery light
 - Loycco Smart Nursery light
 - Loginovo TV sync backlight
 - Loginovo TV sync backlight
 - LSC Smart Connect CCT + RGB ceiling light
 - LSC Smart Connect CCT + RGB ceiling light
-- LSC Smart Connect CCT + RGB led strip
+- LSC Smart Connect CCT+RGB, RGB/IC+CCT/IC, Neon, Party led strips
 - LSC Smart Connect garden spotlights
 - LSC Smart Connect garden spotlights
-- LSC Smart Connect Neon LED strip
-- LSC Smart Connect Party string lights
 - LSC smart connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)
 - LSC smart connect RGB CCT lightbulb (similar to older generic bulbs, so may work for others)
 - Lumary D1 6 inch retrofit downlight (independent RGB ring and CCT centre)
 - Lumary D1 6 inch retrofit downlight (independent RGB ring and CCT centre)
 - Lytmi Fantasy/Neo 3 HDMI sync backlight
 - Lytmi Fantasy/Neo 3 HDMI sync backlight

+ 117 - 0
custom_components/tuya_local/devices/lscsmartconnect_rgbcctic_ledstrip.yaml

@@ -0,0 +1,117 @@
+name: Light strip
+products:
+  - id: a5mzajl6cinrnfwi
+    manufacturer: LSC Smart Connect
+    model: RGB/IC + CCT/IC Smart LED Strip 3m
+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
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        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: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Dreamlight music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Power memory
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 101
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    translation_key: scene
+    category: config
+    hidden: true
+    dps:
+      - id: 102
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Paint
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 103
+        type: base64
+        optional: true
+        name: value