klejejs / python-thermia-online-api

A Python API for Thermia heat pumps using https://online.thermia.se
GNU General Public License v3.0
25 stars 10 forks source link

Feature: Add REG_HOT_WATER_BOOST #7

Closed msand83 closed 1 year ago

msand83 commented 2 years ago

Would it be possible to have get and set functions for REG_HOT_WATER_BOOST for this API?

klejejs commented 2 years ago

Hello. Thanks for the request. I will look into adding this.

wouterse commented 2 years ago

With different heat pumps and different ways they are operated, people will want to have read/write access to different registers. I'd suggest to add a generic get and set interface where you supply a registerName and a groupName, and a value for the set-version.

zama737 commented 2 years ago

Agree it would be more useful to set different registers. For example, believe Diplomat optimum does not have water boost option.

Instead, would be useful to get access to hot water minimum and maximum values, and hot water start temp. By doing this, it would be possible to automate/tweak/force heatpump to start hot water heating during low cost hours.

randriksen commented 1 year ago

it would be awesome to be able to set the boost

klejejs commented 1 year ago

@wouterse thanks for the suggestion about generic functions. The latest release includes them to fetch all register groups, registers for the specific group, and data for specific registers. It also includes a setter function to set the value of a specific register. These can now be used to get and set any register value with the API. Please see README.md and example.py for more info about them.