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

feat (devices): add Haoyunma BD100 aroma diffuser

Issue #4309
Jason Rumney 1 день назад
Родитель
Сommit
156ecdb6f3
3 измененных файлов с 73 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 71 0
      custom_components/tuya_local/devices/haoyunma_bd100_aromadiffuser.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1267,3 +1267,4 @@ Further device support has been made with the assistance of users. Please consid
 - [rackstar41](https://github.com/rackstar41) for assisting with support for Rojeco V200 DU3L-VS camera pet feeder.
 - [rackstar41](https://github.com/rackstar41) for assisting with support for Rojeco V200 DU3L-VS camera pet feeder.
 - [kooori](https://github.com/kooori) for contributing support for Fanforce ceiling fan with lights.
 - [kooori](https://github.com/kooori) for contributing support for Fanforce ceiling fan with lights.
 - [Moss51](https://github.com/Moss51) for assisting with support for Bestherm Nessa Connect panel heater.
 - [Moss51](https://github.com/Moss51) for assisting with support for Bestherm Nessa Connect panel heater.
+- [Aaronhrndz](https://github.com/Aaronhrndz) for assisting with support for Haoyunma BD100 aroma diffuser.

+ 1 - 0
DEVICES.md

@@ -529,6 +529,7 @@ devices # Supported
 - Ditua DT-1522-YN aroma diffuser
 - Ditua DT-1522-YN aroma diffuser
 - Etersky aroma diffuser with light
 - Etersky aroma diffuser with light
 - GD2050WIFI aroma diffuser
 - GD2050WIFI aroma diffuser
+- Haoyunma BD100 aroma diffuser
 - InLine ultrasonic aroma diffuser
 - InLine ultrasonic aroma diffuser
 - Maxico aroma diffuser with light (cannot be differentiated automatically from Ditua above)
 - Maxico aroma diffuser with light (cannot be differentiated automatically from Ditua above)
 - Revesien Q-Pro-W aroma diffuser
 - Revesien Q-Pro-W aroma diffuser

+ 71 - 0
custom_components/tuya_local/devices/haoyunma_bd100_aromadiffuser.yaml

@@ -0,0 +1,71 @@
+name: Aroma diffuser
+products:
+  - id: ev2pfxj5xp4vacfm
+    manufacturer: Haoyunma
+    model: BD100
+entities:
+  - entity: fan
+    translation_key: aroma_diffuser
+    dps:
+      - id: 2
+        type: boolean
+        name: switch
+      - id: 3
+        type: string
+        name: speed
+        mapping:
+          - dps_val: L1
+            value: 17
+          - dps_val: L2
+            value: 33
+          - dps_val: L3
+            value: 50
+          - dps_val: L4
+            value: 67
+          - dps_val: L5
+            value: 83
+          - dps_val: L6
+            value: 100
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        mapping:
+          - dps_val: untime
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "8h"
+            value: "8h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: min
+  - entity: button
+    translation_key: factory_reset
+    category: config
+    hidden: true
+    dps:
+      - id: 101
+        type: boolean
+        name: button
+  - entity: binary_sensor
+    name: Voltage
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor