Ver Fonte

Add support for Arknoah aquarium lights

Issue #2941
Jason Rumney há 11 meses atrás
pai
commit
eb1578e4f0

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -871,3 +871,4 @@ Further device support has been made with the assistance of users. Please consid
 - [shyfxshadow](https://github.com/shyfxshadow) for assisting with support for EleChico CCST6001 thermostat.
 - [shyfxshadow](https://github.com/shyfxshadow) for assisting with support for EleChico CCST6001 thermostat.
 - [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier.
 - [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier.
 - [Antoni950425](https://github.com/Antoni950425) for assisting with support for Zigbee smart air box BR V2.
 - [Antoni950425](https://github.com/Antoni950425) for assisting with support for Zigbee smart air box BR V2.
+- [skylarhays](https://github.com/skylarhays) for assisting with support for Arknoah Aquarium lights.

+ 1 - 0
DEVICES.md

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

+ 106 - 0
custom_components/tuya_local/devices/arknoah_aquarium_lights.yaml

@@ -0,0 +1,106 @@
+name: Aquarium lights
+products:
+  - id: h5knkuawivfnolpu
+    manufacturer: Arknoah
+    model: 165W 3 channel
+entities:
+  - entity: light
+    name: Channel 1
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        name: effect
+        type: string
+        mapping:
+          - dps_val: music
+            value: Music
+          - dps_val: rhythm
+            value: Rhythm
+          - dps_val: DIY
+            value: Custom
+          - dps_val: schedule
+            value: Scheduled
+      - id: 101
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 1000
+  - entity: light
+    name: Channel 2
+    dps:
+      - id: 102
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 1000
+  - entity: light
+    name: Channel 3
+    dps:
+      - id: 103
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 1000
+  - entity: text
+    name: Music
+    category: config
+    icon: "mdi:music"
+    hidden: true
+    dps:
+      - id: 27
+        type: hex
+        optional: true
+        name: value
+  - entity: text
+    name: Power memory
+    category: config
+    icon: "mdi:power-standby"
+    hidden: true
+    dps:
+      - id: 33
+        type: base64
+        optional: true
+        name: value
+  - entity: switch
+    name: Do not disturb
+    translation_key: sleep
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: switch
+  - entity: text
+    name: Rhythm pattern
+    category: config
+    icon: "mdi:music-note-plus"
+    hidden: true
+    dps:
+      - id: 106
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Schedule
+    category: config
+    icon: "mdi:timetable"
+    hidden: true
+    dps:
+      - id: 107
+        type: base64
+        optional: true
+        name: value
+  - entity: text
+    name: Custom
+    category: config
+    icon: "mdi:cog"
+    hidden: true
+    dps:
+      - id: 108
+        type: hex
+        optional: true
+        name: value