Quellcode durchsuchen

Add support for Proscenic A8 air purifer

Issue #776
Jason Rumney vor 3 Jahren
Ursprung
Commit
189c95b38a

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -279,3 +279,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [ntrits](https://github.com/ntrits) for contributing support for 8 byte phase info variant of SmartMCB SMT-006 energy meter.
 - [xgustavoh](https://github.com/xgustavoh) for contributing support for NovaDigital 4-way switches, and single switch which was merged with the Somgom switch.
 - [cramer52](https://github.com/cramer52) for contributing support for Galaxy Projectors.
+- [kajapa](https://github.com/kajapa) for contributing support for Proscenic A8 air purifiers.

+ 1 - 0
DEVICES.md

@@ -134,6 +134,7 @@
 - Hosome air purifier
 - Lifubide X600 air purifier
 - Poiema One air purifier
+- Proscenic A8 air purifier
 - Renpho RP-AP001S air purifier
 - Stadler Form Roger air purifier
 - Tesla Pro and Mini air purifiers

+ 116 - 0
custom_components/tuya_local/devices/proscenic_a8_airpurifier.yaml

@@ -0,0 +1,116 @@
+name: Air Purifier
+products:
+  - id: jiiagi6aamtgbffk
+    name: Proscenic A8
+primary_entity:
+  entity: fan
+  icon: "mdi:air-purifier"
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 4
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "sleep"
+          value: "sleep"
+        - dps_val: "mid"
+          value: "medium"
+        - dps_val: "high"
+          value: "high"
+        - dps_val: "auto"
+          value: "auto"
+    - id: 101
+      name: unknown_101
+      type: integer
+    - id: 103
+      name: unknown_103
+      type: string
+secondary_entities:
+  - entity: sensor
+    name: PM2.5
+    class: pm25
+    dps:
+      - id: 2
+        name: sensor
+        class: measurement
+        type: integer
+        unit: ugm3
+  - entity: light
+    category: config
+    icon: "mdi:lightbulb-night"
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+  - entity: sensor
+    name: Filter usage
+    category: diagnostic
+    icon: "mdi:shield-bug"
+    dps:
+      - id: 5
+        name: sensor
+        type: integer
+        unit: "%"
+  - entity: switch
+    name: Reset Filter
+    category: config
+    icon: "mdi:lightbulb-night"
+    dps:
+      - id: 11
+        name: switch
+        type: boolean
+  - entity: sensor
+    name: Filter days left
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 16
+        name: sensor
+        type: integer
+        unit: d
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: sensor
+    name: Total runtime
+    category: diagnostic
+    icon: "mdi:data-matrix"
+    dps:
+      - id: 17
+        name: sensor
+        type: integer
+        unit: min
+  - entity: sensor
+    name: Total PM
+    category: diagnostic
+    icon: "mdi:data-matrix"
+    dps:
+      - id: 20
+        name: sensor
+        type: integer
+        optional: true
+        unit: ugm3
+  - entity: sensor
+    name: Air quality
+    class: enum
+    icon: "mdi:air-filter"
+    dps:
+      - id: 21
+        name: sensor
+        type: string
+        mapping:
+          - dps_val: "great"
+            value: "Great"
+          - dps_val: "good"
+            value: "Good"
+          - dps_val: "medium"
+            value: "Mild pollution"
+          - dps_val: "severe"
+            value: "Severe"