Quellcode durchsuchen

Add support for Cleverio AP100 air purifier

Issue #2284
Jason Rumney vor 1 Jahr
Ursprung
Commit
0b30572151

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -665,7 +665,7 @@ Further device support has been made with the assistance of users. Please consid
 - [zaubara](https://github.com/zaubara) for assisting with support for Ciarra CBCS4850 range hood.
 - [ap20132022](https://github.com/ap20132022) for assisting with support for Cecofry 5500 air fryer.
 - [alexandrebelloni](https://github.com/alexandrebelloni) for contributing improvements to Vevor EV charger.
-- [ekalle-swe](https://github.com/ekalle-swe) for assisting with support for Loeffen LFIM6000 ice cube maker.
+- [ekalle-swe](https://github.com/ekalle-swe) for assisting with support for Loeffen LFIM6000 ice cube maker and Cleverio AP100 air purifier.
 - [Athemis](https://github.com/Athemis) for contributing support for Aktobis WDH-310EK dehumidifier.
 - [carmelo42](https://github.com/carmelo42) for contributing support for Fujicool Yuzu heat pump.
 - [dkvk](https://github.com/dkvk) for contributing support for Malmbergs single and dual dimmer modules.

+ 1 - 0
DEVICES.md

@@ -256,6 +256,7 @@
 - Breville Easy Air purifier
 - Breville Smart Air Connect purifier
 - Breville Smart Air Viral Protect Plus purifier
+- Cleverio AP100 air purifier
 - Duux Bright air purifier
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers

+ 63 - 0
custom_components/tuya_local/devices/cleverio_ap100_purifier.yaml

@@ -0,0 +1,63 @@
+name: Air purifier
+products:
+  - id: 6bspwvsqhl4vuanj
+    name: Cleverio AP100
+primary_entity:
+  entity: fan
+  icon: "mdi:air-purifier"
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 4
+      type: integer
+      name: speed
+      range:
+        min: 1
+        max: 4
+secondary_entities:
+  - entity: sensor
+    name: Filter
+    icon: "mdi:air-filter"
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancle
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "2"
+            value: "2h"
+          - dps_val: "3"
+            value: "4h"
+          - dps_val: "4"
+            value: "8h"
+  - entity: sensor
+    name: Air quality
+    class: enum
+    icon: "mdi:factory"
+    category: diagnostic
+    dps:
+      - id: 22
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "1"
+            value: Poor
+          - dps_val: "2"
+            value: Fair
+          - dps_val: "3"
+            value: Good
+          - dps_val: "4"
+            value: Excellent