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

Add support for Kogan sleep aid

Issue #1003
Jason Rumney 2 лет назад
Родитель
Сommit
9e493122d7
3 измененных файлов с 35 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 33 0
      custom_components/tuya_local/devices/kogan_noise_machine.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -354,3 +354,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [tatopotatov](https://github.com/tatopotatov) for assisting with support for Royal Sovereign mini split air conditioners.
 - [whit-tj](https://github.com/whit-tj) for contributing support for Carro ceiling fan with warm and cool lights.
 - [k-welker](https://github.com/k-welker) for contributing support for Casafan ECO Neo III ceiling fan with light.
+- [muneeb1990](https://github.com/muneeb1990) for contributing support for Kogan Sleep Aids.

+ 1 - 0
DEVICES.md

@@ -459,6 +459,7 @@ port and password.
 - Inkbird PTH-9CW air quality monitor
 - KKMoon 7in1 air quality monitor
 - Kogan bidet toilet seat
+- Kogan KAWHTNOSLPA white noise sleep aid
 - Konlen/Rockson WF96L water level controller
 - Mirabella Genio motion sensor
 - Nedis pet feeder

+ 33 - 0
custom_components/tuya_local/devices/kogan_noise_machine.yaml

@@ -0,0 +1,33 @@
+name: Sleep aid
+products:
+  - id: d9tnlvjvlgwqr9ov
+    name: Kogan KAWHTNOSLPA
+primary_entity:
+  entity: switch
+  icon: "mdi:power-standby"
+  dps:
+    - id: 105
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 104
+        name: brightness
+        type: integer
+        range:
+          min: 0
+          max: 255
+  - entity: select
+    name: Volume
+    icon: "mdi:volume-high"
+    category: config
+    dps:
+      - id: 101
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: high
+            value: High