dennis1804 / homewizard-climate-hass

14 stars 7 forks source link

Feature/airco improvements #14

Open dennis1804 opened 1 year ago

Oldekamp commented 1 year ago

:)

Oldekamp commented 1 year ago

Okay, small update on my end: I've now fixed swing mode and I'm also getting to the fan speed settings now. Inching closer.. ;)

dennis1804 commented 1 year ago

That's great, if you need any help or changes in the websocket please let me know :)

Oldekamp commented 1 year ago

Update: Swing mode and all 3 fan settings working. Only thing there's left is to tie all 3 modes (dehumidify, cool and fan) into Home Assistants HVACMode ('HVACMode.COOL', 'HVACMode.DRY' and 'HVACMode.FAN_ONLY'), so clicking one of those icons also toggles on the corresponding device preset.

I'm gonna struggle a bit longer to try and get that to work, but if I can't work it out I will ask here for some assistance. Of course, anybody else is welcome to work that out faster than I can. :)

Working currently:

Additional information: if 'dehumidify' mode is enabled, the only possible fan speed is 'low' in HomeWizard Climate app. It would be cleaner if we mirror that behavior in Home Assistant and thus hide the fan speed settings when 'dehumidify' mode is enabled.

Additional information: does not save/apply in 'fan' and 'dehumidify' modes, which corresponds with the HomeWizard Climate app, where a temperature target can only be set when 'cool' mode is enabled. It would be nice if we could mirror this behavior and thus hide the temperature target setting when mode is anything other than 'cool'.

Included below is my current version with the above:

climate.py.zip

Oldekamp commented 1 year ago

Update:

All 3 modes (dehumidify, cool and fan) are now tied into Home Assistants HVACModes ('HVACMode.COOL', 'HVACMode.DRY' and 'HVACMode.FAN_ONLY'), so clicking one of those icons also toggles on the corresponding device preset.

Still to-do: Cleanup code further, think about the improvements I mentioned in my previous post (Additional information sections).

Additionally, when the device is already turned on while Home Assistant is restarted, it does not retrieve the current preset mode in Home Assistant until any different preset/mode is toggled. After which, it stays neatly in sync. It might be easy to implement a fix for this, but I can't come up with it currently - maybe someone else can think of a way how?

Besides @dennis1804 , I read somewhere that you want to rework the extension anyway, so maybe its better for me to wait until there is more details on those possible reworks before proceeding.

Anyhow,

Newest version including working HVACModes included below:

climate.py.zip