Compare commits
5 Commits
v0.8.0-bet
...
v0.8
Author | SHA1 | Date | |
---|---|---|---|
4b95accf02 | |||
998b691a8e | |||
6084e4a034 | |||
5bc3120000 | |||
0f9f0dee4c |
@ -12,9 +12,9 @@ Home Assistant integration for [Haier's mobile app hOn](https://hon-smarthome.co
|
||||
- [Washer Dryer](https://github.com/Andre0512/hon#washer-dryer)
|
||||
- [Oven](https://github.com/Andre0512/hon#oven)
|
||||
- [Dish Washer](https://github.com/Andre0512/hon#dish-washer)
|
||||
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner)
|
||||
- [Fridge](https://github.com/Andre0512/hon#fridge)
|
||||
- [Hob](https://github.com/Andre0512/hon#hob) [BETA]
|
||||
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA]
|
||||
- [Fridge](https://github.com/Andre0512/hon#fridge) [BETA]
|
||||
- [Hood](https://github.com/Andre0512/hon#hood) [BETA]
|
||||
|
||||
## Installation
|
||||
|
@ -150,11 +150,13 @@ class HonACClimateEntity(HonEntity, ClimateEntity):
|
||||
async def async_set_hvac_mode(self, hvac_mode):
|
||||
self._attr_hvac_mode = hvac_mode
|
||||
if hvac_mode == HVACMode.OFF:
|
||||
await self._device.commands["stopProgram"].send()
|
||||
command = "stopProgram"
|
||||
else:
|
||||
mode = HON_HVAC_PROGRAM[hvac_mode]
|
||||
self._device.settings["startProgram.program"].value = mode
|
||||
await self._device.commands["startProgram"].send()
|
||||
command = "startProgram"
|
||||
await self._device.commands[command].send()
|
||||
self._device.sync_command(command, "settings")
|
||||
self.async_write_ha_state()
|
||||
|
||||
@property
|
||||
|
@ -111,6 +111,7 @@ TUMBLE_DRYER_PR_PHASE = {
|
||||
"1": "TD_CMD&CTRL.STATUS_PHASE.PHASE_HEAT_STROKE",
|
||||
"2": "WASHING_CMD&CTRL.PHASE_DRYING.TITLE",
|
||||
"3": "TD_CMD&CTRL.STATUS_PHASE.PHASE_COOLDOWN",
|
||||
"8": "unknown",
|
||||
"11": "WASHING_CMD&CTRL.PHASE_READY.TITLE",
|
||||
"12": "unknown",
|
||||
"13": "TD_CMD&CTRL.STATUS_PHASE.PHASE_COOLDOWN",
|
||||
|
@ -9,7 +9,7 @@
|
||||
"iot_class": "cloud_polling",
|
||||
"issue_tracker": "https://github.com/Andre0512/hon/issues",
|
||||
"requirements": [
|
||||
"pyhOn==0.12.2"
|
||||
"pyhOn==0.12.4"
|
||||
],
|
||||
"version": "0.8.0-beta.10"
|
||||
"version": "0.8.1"
|
||||
}
|
||||
|
4
info.md
4
info.md
@ -10,9 +10,9 @@ Support for home appliances of Haier's mobile app hOn.
|
||||
- [Washer Dryer](https://github.com/Andre0512/hon#washer-dryer)
|
||||
- [Oven](https://github.com/Andre0512/hon#oven)
|
||||
- [Dish Washer](https://github.com/Andre0512/hon#dish-washer)
|
||||
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner)
|
||||
- [Fridge](https://github.com/Andre0512/hon#fridge)
|
||||
- [Hob](https://github.com/Andre0512/hon#hob) [BETA]
|
||||
- [Air conditioner](https://github.com/Andre0512/hon#air-conditioner) [BETA]
|
||||
- [Fridge](https://github.com/Andre0512/hon#fridge) [BETA]
|
||||
- [Hood](https://github.com/Andre0512/hon#hood) [BETA]
|
||||
|
||||
## Configuration
|
||||
|
Reference in New Issue
Block a user