Browse Source

Add support for iSparkle Curtain Micro Lights

Issue #2784
Jason Rumney 1 year ago
parent
commit
e8802f96c3

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -830,3 +830,4 @@ Further device support has been made with the assistance of users. Please consid
 - [davidjmdev](https://github.com/davidjmdev) for contributing support for PetSnowy Snow+ litter box.
 - [yaro24](https://github.com/yaro24) for contributing support for Jiahong ET-44W thermostat.
 - [point2start](https://github.com/point2start) for assisting with support for Atorch AT4PTW thermostat.
+- [maLLoud86](https://github.com/maLLoud86) for assisting with support for iSparkle Curtain Micro Lights.

+ 1 - 0
DEVICES.md

@@ -650,6 +650,7 @@ of device.
 - HDMI TV ambient lighting 65
 - iHD001 LED controller
 - Ion LED WiFi dimmer
+- iSparkle Curtain Micro Lights
 - Kojima motion sensor RGBCW nightlight
 - Ledvance Smart+ Planon panel light with backlight
 - Lexi Lighting string light Wifi adapter

+ 85 - 0
custom_components/tuya_local/devices/isparkle_rgb_ledcurtain.yaml

@@ -0,0 +1,85 @@
+name: Light curtain
+products:
+  - id: ufi02yfc589ssyjp
+    manufacturer: iSparkle
+    model: Curtain Micro Lights
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 101
+        type: string
+        name: named_color
+        mapping:
+          - dps_val: R
+            value: red
+          - dps_val: RG
+            value: yellow
+          - dps_val: G
+            value: lime
+          - dps_val: GB
+            value: cyan
+          - dps_val: B
+            value: blue
+          - dps_val: RB
+            value: magenta
+          - dps_val: RGB
+            value: white
+          - dps_val: Color
+            value: black
+      - id: 102
+        type: string
+        name: effect
+        mapping:
+          - dps_val: Bright
+            value: Bright
+          - dps_val: Gradually
+            value: Fade
+          - dps_val: Star
+            value: Star
+          - dps_val: Flower
+            value: Flower
+          - dps_val: Marquee
+            value: Marquee
+          - dps_val: Fireworks
+            value: Fireworks
+          - dps_val: Meteor
+            value: Meteor
+          - dps_val: Stream
+            value: Stream
+  - entity: event
+    name: Timer
+    dps:
+      - id: 103
+        type: boolean
+        name: event
+        optional: true
+        mapping:
+          - dps_val: true
+            value: report_on
+          - dps_val: false
+            value: report_off
+  # The docs say rw for Timerreport
+  - entity: button
+    name: Timer On
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        optional: true
+        name: button
+  - entity: button
+    name: Timer Off
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        optional: true
+        name: button
+        mapping:
+          - dps_val: false
+            value: true
+          - dps_val: true
+            value: false