uebelack / python-maxcube-api

A python api to control the Max! Cube thermostats.
https://github.com/uebelack/python-maxcube-api
MIT License
21 stars 26 forks source link

Support target temperatures lower than 7.5 in auto mode #22

Closed unaiur closed 3 years ago

unaiur commented 3 years ago

Hallo David,

Entschuldigung, ich spreche kein Deutsch. Ich hoffe, Sie können diese Nachricht auf Englisch verstehen.

I am trying to fix some an issue in Home Assistant which uses your library python-maxcube-api: the temperature is not adjusted when moving from Eco mode to Auto mode. In other words, when I enable the eco mode the temperature is reduced to 14 degrees but when moving back to auto mode it is not restored to whatever is selected in the weekly program.

To fix it, I need to call set_temperature_mode with 0 as the target temperature but there is an small bug in your library when trying to select a temperature lower than 7.5 degrees that this merge request fixes.

Also, I would like to upgrade the version of python-maxcube-api in Home Assistant, but there is no new versions at https://pypi.org/project/maxcube-api/ since 4 years ago. Can you tag a new version and publish it to pypi.org?

Thank you very much!