Przeglądaj źródła

Add support for iHunt 400m³/h air purifier

Issue #1485
Jason Rumney 1 rok temu
rodzic
commit
d2537696c7

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -679,3 +679,4 @@ 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.

+ 1 - 0
DEVICES.md

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

+ 110 - 0
custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml

@@ -0,0 +1,110 @@
+name: Air purifier
+products:
+  - id: lf1ikizwmvevldbp
+    name: iHunt 400m³/h
+primary_entity:
+  entity: fan
+  icon: "mdi:air-purifier"
+  translation_key: fan_with_presets
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 4
+      name: speed
+      type: string
+      mapping:
+        - dps_val: speed_1
+          value: 25
+        - dps_val: speed_2
+          value: 50
+        - dps_val: speed_3
+          value: 75
+        - dps_val: speed_4
+          value: 100
+    - id: 3
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: manual
+          value: normal
+        - dps_val: auto
+          value: smart
+        - dps_val: sleep
+          value: sleep
+secondary_entities:
+  - entity: sensor
+    class: pm25
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        class: measurement
+        unit: ugm3       
+  - 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: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+  - entity: sensor
+    name: Filter remaining
+    category: diagnostic
+    class: duration
+    dps:
+      - id: 16
+        name: sensor
+        type: integer
+        unit: h
+  - entity: button
+    name: Filter reset
+    category: diagnostic
+    class: restart
+    dps:
+      - id: 11
+        type: boolean
+        name: button
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 18
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h" 
+          - dps_val: "3h"
+            value: "3h" 
+          - dps_val: "4h"
+            value: "4h" 
+          - dps_val: "5h"
+            value: "5h"