Explorar o código

Add support for YYM-805SW aroma diffuser with nightlight.

Issue #355
Jason Rumney %!s(int64=3) %!d(string=hai) anos
pai
achega
1ccb5e31f0

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -160,3 +160,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Andreasjkoch](https://github.com/Andreasjkoch) for contributing support for Eeese Carl dehumidifiers.
 - [ppprpd](https://github.com/ppprpd) for contributing support for Netmostat N-1 thermostats.
 - [Pokemowka25](https://github.com/Pokemowka26) for assistance supporting Kyvol EA200 humidifiers.
+- [spuljko](https://github.com/spuljko) for contributing support for YYM-805SW aroma diffuser with nightlight.

+ 4 - 0
DEVICES.md

@@ -144,6 +144,10 @@
 - Wetair WAW-H1210LW humidifier
 - Wilfa Haze HU400BC humidifier
 
+### Aroma diffusers
+
+- YYM-805SW aroma diffuser with nightlight
+
 ### Kitchen Appliances
 
 - Inkbird sous vide cooker

+ 24 - 0
custom_components/tuya_local/devices/yym_805SW_aroma_nightlight.yaml

@@ -0,0 +1,24 @@
+name:  YYM-805SW Aroma diffuser
+products:
+    - id: c0nh3LmEk0NDebrq
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: speed
+      type: string
+      mapping:
+        - dps_val: large
+          value: 100
+        - dps_val: small
+          value: 50
+secondary_entities:
+  - entity: light
+    name: Nightlight
+    dps:
+      - id: 5
+        name: switch
+        type: boolean