Przeglądaj źródła

Add support for Stadler Form Roger Purifier

Issue #247
Jason Rumney 3 lat temu
rodzic
commit
dfb9283443

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -119,3 +119,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [timlaing](https://github.com/timlaing) for contributing support for ElectriQ EcoSilent 14HPW air conditioners.
 - [Svellem](https://github.com/Svellem) for assisting with support for T5E-WF thermostats.
 - [Aptul9](https://github.com/Aptul9) for assisting with support for Sendo air conditioners.
+- [dilorenzo1987](https://github.com/dilorenzo1987) for contributing support for Stadler Form Roger purifiers.

+ 1 - 0
DEVICES.md

@@ -90,6 +90,7 @@
 - Tesla Pro and Mini air purifiers
 - Vork VK6067AW air purifier
 - essentials portable air purifier
+- Stadler Form Roger air purifier
 
 ### Dehumidifiers
 - Goldair GPDH420 dehumidifier

+ 100 - 0
custom_components/tuya_local/devices/stadlerform_roger_purifier.yaml

@@ -0,0 +1,100 @@
+name: Stadler Form Roger
+products:
+  - id: bff126249136f505
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 4
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "sleep"
+          value: "Sleep"
+        - dps_val: "low"
+          value: "Low"
+        - dps_val: "mid"
+          value: "Mid"
+        - dps_val: "high"
+          value: "High"
+        - dps_val: "auto"
+          value: "Auto"
+secondary_entities:
+  - entity: light
+    category: config
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+  - entity: sensor
+    name: Filter
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: "%"
+        readonly: true
+  - entity: sensor
+    name: Filter (Days)
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 16
+        type: integer
+        name: sensor
+        unit: "d"
+        readonly: true
+  - entity: sensor
+    name: PM2.5
+    icon: "mdi:air-filter"
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "ugm3"
+        readonly: true
+  - entity: sensor
+    name: Total Volatile Organic Compunds
+    icon: "mdi:air-filter"
+    dps:
+      - id: 14
+        type: integer
+        name: sensor
+        readonly: true
+  - entity: sensor
+    name: Air Quality
+    icon: "mdi:air-filter"
+    dps:
+      - id: 21
+        type: string
+        name: sensor
+        readonly: true
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 18
+        type: string
+        name: option
+        mapping:
+          - dps_val: "cancel"
+            value: "cancel"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "4h"
+            value: "4 hours"
+  - entity: switch
+    name: Auto
+    class: switch
+    icon: "mdi:power-sleep"
+    dps:
+      - id: 101
+        name: switch
+        type: boolean