4
0
Эх сурвалжийг харах

Add support for Arlec USB strip lights

Issue #2128
Jason Rumney 1 жил өмнө
parent
commit
e216a1a320

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -642,3 +642,4 @@ Further device support has been made with the assistance of users. Please consid
 - [pelle2011](https://github.com/pelle2011) for contributing support for AquaForte Inverter VSP pool pump.
 - [pelle2011](https://github.com/pelle2011) for contributing support for AquaForte Inverter VSP pool pump.
 - [tv4you2016](https://github.com/tv4you2016) for contributing support for Cecotec ForceClima Soundless air conditioner.
 - [tv4you2016](https://github.com/tv4you2016) for contributing support for Cecotec ForceClima Soundless air conditioner.
 - [danieljohngomez](https://github.com/danieljohngomez) for assisting with support for BSTUOKEY invisible door lock.
 - [danieljohngomez](https://github.com/danieljohngomez) for assisting with support for BSTUOKEY invisible door lock.
+- [robinhood-code](https://github.com/robinhood-code) for assisting with support for Arlec USB strip lights.

+ 1 - 0
DEVICES.md

@@ -779,6 +779,7 @@ port and password.
 - Adaprox Fingerbot plus
 - Adaprox Fingerbot plus
 - Ailrinni fingerprint door lock
 - Ailrinni fingerprint door lock
 - Arlec smart button
 - Arlec smart button
+- Arlec usb strip light
 - BSTUOKEY Invisible induction door lock
 - BSTUOKEY Invisible induction door lock
 - Diivoo DWV010 dual water timer
 - Diivoo DWV010 dual water timer
 - Diivoo WT05 dual water timer
 - Diivoo WT05 dual water timer

+ 78 - 0
custom_components/tuya_local/devices/arlec_rgb_ledstrip.yaml

@@ -0,0 +1,78 @@
+name: RGB light
+products:
+  - id: jawcej1v
+    name: Arlec ALD261HA USB strip light
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: color_mode
+      mapping:
+        - dps_val: white
+          value: white
+        - dps_val: colour
+          value: hs
+        - dps_val: scene
+          value: Scene
+        - dps_val: music
+          value: Music
+    - id: 5
+      type: hex
+      name: rgbhsv
+      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: 5
+      type: hex
+      name: brightness
+      range:
+        min: 0
+        max: 1000
+      mapping:
+        - mask: "00000000FFFF"
+    - id: 6
+      type: hex
+      name: scene_data
+    - id: 8
+      type: string
+      optional: true
+      name: music_data
+    - id: 9
+      type: string
+      optional: true
+      name: control_data
+    - id: 42
+      type: string
+      name: mic_music_data
+secondary_entities:
+  - entity: number
+    translation_key: timer
+    category: config
+    dps:
+      - id: 7
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60