Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kogan Air Purifier to device list #859

Merged
merged 4 commits into from
Jul 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions custom_components/tuya_local/devices/kogan_air_purifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Kogan Air Purifier
products:
- id: 5cum0gfsx8rhpvvl
name: Kogan Air Purifier KAIRPRFR2SA
primary_entity:
entity: fan
translation_key: fan_with_presets
dps:
- id: 1
type: boolean
name: switch
- id: 4
type: string
name: preset_mode
mapping:
- dps_val: 1
value: "sleep"
- dps_val: 2
value: "strong"
- dps_val: 3
value: "smart"
secondary_entities:
- entity: sensor
name: Filter remaining
icon: "mdi:shield-bug"
dps:
- id: 5
name: sensor
type: integer
unit: "%"
- entity: light
name: Light
category: config
dps:
- id: 101
type: string
name: brightness
mapping:
- dps_val: cancle
value: 0
- dps_val: 1
value: 128
- dps_val: 2
value: 255
- entity: button
name: Filter reset
category: config
class: restart
dps:
- id: 11
type: boolean
name: button
- entity: select
name: Timer
category: config
icon: "mdi:timer"
dps:
- id: 19
type: string
name: option
mapping:
- dps_val: 1
value: "Off"
- dps_val: 2
value: "4 hours"
- dps_val: 3
value: "8 hours"
- entity: sensor
name: Timer remaining
class: duration
icon: "mdi:timer"
dps:
- id: 20
name: sensor
type: integer
unit: min
- entity: sensor
name: Air quality
class: enum
icon: "mdi:air-filter"
dps:
- id: 22
name: sensor
type: string
mapping:
- dps_val: 1
value: "Good"
- dps_val: 2
value: "Normal"
- dps_val: 3
value: "Poor"
- dps_val: 4
value: "Severe"