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

feat: add airx h8 humidifier #2710

Merged
merged 8 commits into from
Jan 11, 2025
119 changes: 119 additions & 0 deletions custom_components/tuya_local/devices/airx_h8_humidifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Humidifier
products:
- id: orypuo7ksduqze3x
manufacturer: airx
model: H8Pro
entities:
- entity: humidifier
class: humidifier
dps:
- id: 1
name: switch
type: boolean
mapping:
- dps_val: true
icon: "mdi:air-humidifier"
- dps_val: false
icon: "mdi:air-humidifier-off"
- id: 13
name: humidity
type: integer
range:
min: 30
max: 80
- id: 14
name: current_humidity
type: integer
- id: 24
type: string
name: mode
mapping:
- dps_val: AUTO
value: auto
- dps_val: LOW
value: eco
- dps_val: MIDDLE
value: normal
- dps_val: HIGH
value: boost
- dps_val: SLEEP
value: sleep
- entity: binary_sensor
category: diagnostic
translation_key: machine_separation_status
make-all marked this conversation as resolved.
Show resolved Hide resolved
dps:
- id: 22
type: string
name: sensor
mapping:
- dps_val: 0
value: off

Check warning on line 50 in custom_components/tuya_local/devices/airx_h8_humidifier.yaml

View workflow job for this annotation

GitHub Actions / lint

50:20 [truthy] truthy value should be one of [false, true]
- dps_val: 1
value: on

Check warning on line 52 in custom_components/tuya_local/devices/airx_h8_humidifier.yaml

View workflow job for this annotation

GitHub Actions / lint

52:20 [truthy] truthy value should be one of [false, true]
- entity: switch
translation_key: electrolysis_sterilization
category: config
dps:
- id: 21
type: boolean
name: switch
- entity: switch
translation_key: evaporator_cleaning
category: config
dps:
- id: 2
type: boolean
name: switch
- entity: switch
translation_key: uv_sterilization
category: config
dps:
- id: 102
type: boolean
name: switch
- entity: light
translation_key: display
category: config
dps:
- id: 5
type: boolean
name: switch
- entity: switch
translation_key: keytone
category: config
dps:
- id: 8
type: boolean
name: switch
- entity: sensor
translation_key: water_volume
class: enum
category: diagnostic
dps:
- id: 101
name: sensor
type: string
mapping:
- dps_val: No_water
value: empty
- dps_val: Low_water
value: low
- dps_val: Middle_water
value: middle
- dps_val: High_water
value: high
- dps_val: Full_water
value: full
- entity: switch
translation_key: ionizer
dps:
- id: 25
name: switch
type: boolean
- entity: lock
translation_key: child_lock
category: config
dps:
- id: 29
type: boolean
name: lock
20 changes: 20 additions & 0 deletions custom_components/tuya_local/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"state": {
"off": "mdi:weather-night"
}
},
"machine_separation_status": {
"default": "mdi:check-circle",
"state": {
"on": "mdi:alert-circle",
"off": "mdi:check-circle"
}
}
},
"button": {
Expand Down Expand Up @@ -181,6 +188,16 @@
"cooking_status": {
"default": "mdi:information-variant-circle"
},
"water_volume": {
"default": "mdi:water",
"state": {
"empty": "mdi:water-off",
"low": "mdi:water-minus",
"middle": "mdi:water-opacity",
"high": "mdi:water-plus",
"full": "mdi:water"
}
},
"status": {
"default": "mdi:information-variant-circle",
"state": {
Expand Down Expand Up @@ -270,6 +287,9 @@
},
"uv_sterilization": {
"default": "mdi:sun-wireless"
},
"electrolysis_sterilization": {
"default": "mdi:flash"
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions custom_components/tuya_local/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@
}
}
}
},
"machine_separation_status": {
"name": "Machine Separation Status",
"state": {
"off": "Normal",
"on": "Separated"
}
}
},
"button": {
Expand Down Expand Up @@ -618,6 +625,16 @@
"pause": "Cooking Paused"
}
},
"water_volume": {
"name": "Water Volume",
"state": {
"empty": "Empty",
"low": "Low",
"middle": "Middle",
"high": "High",
"full": "Full"
}
},
"energy_produced": {
"name": "Energy produced"
},
Expand Down Expand Up @@ -664,6 +681,9 @@
},
"uv_sterilization": {
"name": "UV sterilization"
},
"electrolysis_sterilization": {
"name": "Electrolysis sterilization"
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions custom_components/tuya_local/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@
}
}
}
},
"machine_separation_status": {
"name": "机器分离状态",
"state": {
"off": "正常",
"on": "已分离"
}
}
},
"button": {
Expand Down Expand Up @@ -618,6 +625,16 @@
"pause": "烹饪暂停"
}
},
"water_volume": {
"name": "水量",
"state": {
"empty": "空",
"low": "低",
"middle": "中",
"high": "高",
"full": "满"
}
},
"energy_produced": {
"name": "产生的能量"
},
Expand Down Expand Up @@ -664,6 +681,9 @@
},
"uv_sterilization": {
"name": "紫外线消毒"
},
"electrolysis_sterilization": {
"name": "电解消毒"
}
}
}
Expand Down
20 changes: 20 additions & 0 deletions custom_components/tuya_local/translations/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@
}
}
}
},
"machine_separation_status": {
"name": "機器分離狀態",
"state": {
"off": "正常",
"on": "已分離"
}
}
},
"button": {
Expand Down Expand Up @@ -619,6 +626,16 @@
"pause": "烹飪暫停"
}
},
"water_volume": {
"name": "水量",
"state": {
"empty": "空",
"low": "低",
"middle": "中",
"high": "高",
"full": "滿"
}
},
"energy_produced": {
"name": "能量產生"
},
Expand Down Expand Up @@ -665,6 +682,9 @@
},
"uv_sterilization": {
"name": "紫外線消毒"
},
"electrolysis_sterilization": {
"name": "電解消毒"
}
}
}
Expand Down
Loading