Skip to content

Commit

Permalink
Add support for iHunt 400m³/h air purifier
Browse files Browse the repository at this point in the history
Issue #1485
  • Loading branch information
make-all committed Sep 24, 2024
1 parent 916b6e0 commit d253769
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 0 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
110 changes: 110 additions & 0 deletions custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 43 in custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml

View workflow job for this annotation

GitHub Actions / lint

43:19 [trailing-spaces] trailing spaces
- 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"

Check failure on line 104 in custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml

View workflow job for this annotation

GitHub Actions / lint

104:24 [trailing-spaces] trailing spaces
- dps_val: "3h"
value: "3h"

Check failure on line 106 in custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml

View workflow job for this annotation

GitHub Actions / lint

106:24 [trailing-spaces] trailing spaces
- dps_val: "4h"
value: "4h"

Check failure on line 108 in custom_components/tuya_local/devices/ihunt_400_airpurifier.yaml

View workflow job for this annotation

GitHub Actions / lint

108:24 [trailing-spaces] trailing spaces
- dps_val: "5h"
value: "5h"

0 comments on commit d253769

Please sign in to comment.