Browse Source

feat(devices): add support for Arlec LVE160HA ball lights

Issue #3442
Jason Rumney 7 tháng trước cách đây
mục cha
commit
137b7df653

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -997,3 +997,4 @@ Further device support has been made with the assistance of users. Please consid
 - [nhadpck](https://github.com/nhadpck) for assisting with support for Moes human presence sensor.
 - [demartinoaj](https://github.com/demartinoaj) for contributing support for Holmes tower fan.
 - [larduino](https://github.com/larduino) for assisting with support for EG4 solar heat pump.
+- [simotomaton](https://github.com/simotomaton) for assisting with support for Arlec 160 ball lights.

+ 1 - 0
DEVICES.md

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

+ 77 - 0
custom_components/tuya_local/devices/arlec_lve160ha_balllights.yaml

@@ -0,0 +1,77 @@
+name: Ball lights
+# products:
+#   - id: UNKNOWN
+#     manufacturer: Arlec
+#     model: LED 160 ball lights
+#     model_id: LVE160HA
+entities:
+  - entity: light
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 101
+        type: string
+        name: effect
+        mapping:
+          - dps_val: "1"
+            value: "off"
+          - dps_val: "2"
+            value: Twinkle
+          - dps_val: "3"
+            value: Multi-flash
+          - dps_val: "4"
+            value: Slo-glo
+          - dps_val: "5"
+            value: Auto color change
+          - dps_val: "6"
+            value: Auto flash
+          - dps_val: "7"
+            value: Combination
+      - id: 107
+        type: integer
+        name: brightness
+        range:
+          min: 10
+          max: 64
+  - entity: number
+    name: Speed
+    category: config
+    icon: "mdi:clock-fast"
+    dps:
+      - id: 108
+        type: integer
+        name: value
+        range:
+          min: 10
+          max: 50
+  - entity: text
+    name: Mode 1 data
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 109
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Mode 2 data
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 110
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Mode 4 data
+    category: config
+    icon: "mdi:cogs"
+    hidden: true
+    dps:
+      - id: 111
+        type: base64
+        optional: true
+        name: value