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

Add support for Breville Easy Air purifier.

Issue #400
Jason Rumney 3 лет назад
Родитель
Сommit
d58ab61942

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -183,3 +183,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.
 - [boekerolli](https://github.com/boekerolli) for assistance supporting VisorTech smoke alarms.
 - [ruaandeysel](https://github.com/ruaandeysel) for assistance supporting Skyfan DC fans.
+- [DataGeek-AU](https://github.com/DataGeek-AU) for contributing support for Breville Easy Air purifiers.

+ 1 - 0
DEVICES.md

@@ -108,6 +108,7 @@
 
 ### Air Purifiers
 
+- Breville Easy Air purifier
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers
 - Hosome air purifier

+ 78 - 0
custom_components/tuya_local/devices/breville_easyair_purifier.yaml

@@ -0,0 +1,78 @@
+name: Breville Easy Air
+products:
+  - id: k2mlahbu9v4xxdlb
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: true
+          icon: "mdi:air-purifier"
+        - dps_val: false
+          icon: "mdi:air-purifier-off"
+    - id: 4
+      type: string
+      name: speed
+      mapping:
+        - dps_val: low
+          value: 25
+        - dps_val: mid
+          value: 50
+        - dps_val: high
+          value: 75
+        - dps_val: turbo
+          value: 100
+secondary_entities:
+  - entity: switch
+    name: Night mode
+    category: config
+    icon: "mdi:lightbulb-night"
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+  - entity: switch
+    name: Micro shield
+    category: config
+    icon: "mdi:shield-bug"
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+  - entity: sensor
+    name: Filter days left
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 16
+        name: sensor
+        type: integer
+        unit: day
+  - entity: select
+    name: Timer
+    icon: "mdi:fan-clock"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: "cancle"
+            value: "Cancel"
+          - dps_val: "2"
+            value: "2 hour"
+          - dps_val: "4"
+            value: "4 hours" 
+          - dps_val: "8"
+            value: "8 hours" 
+  - entity: sensor
+    name: Time left
+    category: diagnostic
+    icon: "mdi:timer"
+    dps:
+      - id: 20
+        name: sensor
+        type: integer
+        unit: min