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

feat(devices): add support for Arlec 10 path lights

Issue #3286
Jason Rumney 9 месяцев назад
Родитель
Сommit
61ea4d778f
3 измененных файлов с 113 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 111 0
      custom_components/tuya_local/devices/arlec_10_pathlights.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -957,3 +957,4 @@ Further device support has been made with the assistance of users. Please consid
 - [FragMenthor](https://github.com/FragMenthor) for assisting with support for Fuers video doorbell.
 - [netforceatg](https://github.com/netforceatg) for assisting with support for Arida S7L-2 dehumidifier.
 - [Dungeonkeaper](https://github.com/Dungeonkeaper) for assisting with support for CPVAN CP2W alarm system.
+- [danps1](https://github.com/danps1) for assisting with support for Arlec 10 path lights.

+ 1 - 0
DEVICES.md

@@ -628,6 +628,7 @@ of device.
 - Unbranded dual dimmer module
 - A60 1800-2700K RGBWW light
 - Arknoah Aquarium lights
+- Arlec 10 path lights
 - Asahom S105A-C outdoor lighting
 - Atomi smart color string light
 - Blitzwolf BW-LT31 LED strip

+ 111 - 0
custom_components/tuya_local/devices/arlec_10_pathlights.yaml

@@ -0,0 +1,111 @@
+name: Path lights
+products:
+  - id: 42urjhkizqsaj01v
+    manufacturer: Arlec
+    model: LVG106HA
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: color_mode
+        type: string
+        mapping:
+          - dps_val: white
+            value: white
+          - 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: 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
+    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:"
+    hidden: true
+    dps:
+      - id: 52
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Linear scene
+    category: config
+    icon: "mdi:led-strip"
+    hidden: true
+    dps:
+      - id: 56
+        type: base64
+        optional: true
+        name: value
+  - entity: number
+    name: LED count
+    category: config
+    icon: "mdi:led-strip"
+    dps:
+      - id: 58
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 5000
+  - entity: text
+    name: Fine control
+    category: config
+    icon: "mdi:dots-square"
+    hidden: true
+    dps:
+      - id: 59
+        type: base64
+        optional: true
+        name: value