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

feat(devices): add support for LSC Smart Connect Party string lights

Issue #3356
Jason Rumney 7 месяцев назад
Родитель
Сommit
e463195857

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -802,7 +802,7 @@ Further device support has been made with the assistance of users. Please consid
 - [akop](https://github.com/akop) for contributing support for Ledvance Smart+ Planon plus backlight.
 - [vytux-com](https://github.com/vytux-com) for contributing support for 3A Nue 3 speed fan and light controller.
 - [nicolas-sora](https://github.com/nicolas-sora) for assisting with support for Wasserstein AquaPal water monitor.
-- [theqz](https://github.com/theqz) for assisting with support for A03 siren.
+- [theqz](https://github.com/theqz) for assisting with support for A03 siren, LSC Smart Connect Party string lights.
 - [luisolavea](https://github.com/luisolavea) for assisting with support for Zemismart ZMAi-90 energy meter smart switch.
 - [City-Zero](https://github.com/City-Zero) for contributing support for airx H8 humidifier.
 - [rackxp](https://github.com/rackxp) for assisting with support for Brilliant Smart twin flood lights with motion detection.

+ 1 - 0
DEVICES.md

@@ -670,6 +670,7 @@ of device.
 - LSC Smart Connect CCT + RGB led strip
 - 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)
 - Lytmi Fantasy/Neo 3 HDMI sync backlight
 - Malmbergs QS-WIFI-D02-TRIAC single dimmer module

+ 109 - 0
custom_components/tuya_local/devices/lscsmartconnect_partystring_light.yaml

@@ -0,0 +1,109 @@
+name: String light
+products:
+  - id: l3bpgg8ibsagon4x
+    manufacturer: LSC Smart Connect
+    model: Party string RGBIC+CCT
+entities:
+  - entity: light
+    icon: "mdi:string-lights"
+    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: text
+    name: Music data
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: value
+  - entity: text
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 56
+        type: base64
+        optional: true
+        name: value
+  - entity: number
+    name: String length
+    category: config
+    icon: "mdi:string-lights"
+    dps:
+      - id: 58
+        type: integer
+        name: value
+        unit: leds
+        range:
+          min: 1
+          max: 5000
+  - entity: text
+    name: Individual control
+    category: config
+    icon: "mdi:led-on"
+    hidden: true
+    dps:
+      - id: 59
+        type: base64
+        optional: true
+        name: value
+  - entity: switch
+    name: Filter
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        optional: true
+        name: switch