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

Add support for Hosome air purifier

Issue #284
Jason Rumney 3 лет назад
Родитель
Сommit
c2dba27d02
3 измененных файлов с 58 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 56 0
      custom_components/tuya_local/devices/hosome_purifier.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -138,3 +138,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [presslab-us](https://github.com/presslab-us) for assistance supporting Daizuki heatpumps and improving the almost compatible Starlink heatpump.
 - [filipole](https://github.com/filipole) for assistance supporting Aubess switch with energy monitoring.
 - [catdogmaus](https://github.com/catdogmaus) for assistance supporting Ryra TYTE-D1 thermostats.
+- [Kulturnilpferd](https://github.com/Kulturnilpferd) for contributing support for Hosome air purifiers.

+ 1 - 0
DEVICES.md

@@ -100,6 +100,7 @@
 
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers
+- Hosome air purifier
 - Poiema One air purifier
 - Renpho RP-AP001S air purifier
 - Stadler Form Roger air purifier

+ 56 - 0
custom_components/tuya_local/devices/hosome_purifier.yaml

@@ -0,0 +1,56 @@
+name: Hosome air purifier
+products:
+  - id: sferhht3hjkc942e
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch        
+    - id: 3
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "Auto"
+          value: "Auto"
+        - dps_val: "Manual"
+          value: "Manual"
+        - dps_val: "Sleep"
+          value: "Sleep"
+    - id: 4
+      type: string
+      name: speed
+      mapping:
+        - dps_val: "1"
+          value: 33
+        - dps_val: "2"
+          value: 67
+        - dps_val: "3"
+          value: 100
+    - id: 7
+      type: boolean
+      name: unknown_7
+    - id: 22
+      type: string
+      name: unknown_22
+secondary_entities:
+  - entity: sensor
+    name: PM2.5
+    class: pm25
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        class: measurement
+        unit: ugm3
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Filter
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: "%"