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

Add support for iHunt 50 air purifier

Issue #2348
Jason Rumney 1 год назад
Родитель
Сommit
557e083da3
3 измененных файлов с 59 добавлено и 1 удалено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 57 0
      custom_components/tuya_local/devices/ihunt_50_airpurifier.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -679,7 +679,7 @@ Further device support has been made with the assistance of users. Please consid
 - [InyoEndo](https://github.com/InyoEndo) for assistance supporting Sanden GAU-A45HPD water heat-pump controller.
 - [sudo-nitz](https://github.com/sudo-nitz) for assistance supporting eLinkSmart KH-SY2626 fan.
 - [andrewigali](https://github.com/andrewigali) for contributing support for HDMI TV ambient lighting 65 LED strip.
-- [robex2005](https://github.com/robex2005) for contributing support for iHunt 400m³/h aip purifier.
+- [robex2005](https://github.com/robex2005) for contributing support for iHunt 400m³/h and 50m³/h air purifiers.
 - [PanosssD](https://github.com/PanosssD) for contributing support for Inventor Comfort air conditioner.
 - [Jabber-se](https://github.com/Jabber-se) for contributing support for HRT AS90 climate alarm.
 - [Elliottmonaghan](https://github.com/Elliottmonaghan) for contributing support for Holman Helios weather station.

+ 1 - 0
DEVICES.md

@@ -284,6 +284,7 @@
 - Himox H05 and H06 air purifiers
 - Hosome air purifier
 - iHunt 400m³/h air purifier
+- iHunt 50m³/h air purifier
 - Klarta Stor 2 air purifier
 - Kogan air purifier
 - Lifubide X600 air purifier

+ 57 - 0
custom_components/tuya_local/devices/ihunt_50_airpurifier.yaml

@@ -0,0 +1,57 @@
+name: Air purifier
+products:
+  - id: qjlhoysvavudtp3d
+    name: iHunt 50m³/h
+primary_entity:
+  entity: fan
+  icon: "mdi:air-purifier"
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 4
+      name: speed
+      type: string
+      mapping:
+        - dps_val: sleep
+          value: 25
+        - dps_val: low
+          value: 50
+        - dps_val: mid
+          value: 75
+        - dps_val: high
+          value: 100
+secondary_entities:
+  - entity: sensor
+    name: Filter
+    category: diagnostic
+    icon: "mdi:air-filter"
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    dps:
+      - id: 6
+        type: boolean
+        name: switch
+  - entity: button
+    name: Filter reset
+    category: diagnostic
+    class: restart
+    dps:
+      - id: 11
+        type: boolean
+        name: button
+  - entity: sensor
+    name: Total runtime
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 17
+        name: sensor
+        type: integer
+        unit: min