Compare commits
2 Commits
v0.8.0-bet
...
v0.8.0
Author | SHA1 | Date | |
---|---|---|---|
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
|
||||
|
@ -11,5 +11,5 @@
|
||||
"requirements": [
|
||||
"pyhOn==0.12.2"
|
||||
],
|
||||
"version": "0.8.0-beta.10"
|
||||
"version": "0.8.0"
|
||||
}
|
||||
|
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