if you run the script, openhab items shall be populated. Mind that Viessmann limit the use of the API, so do not query (run the script) more than once every 10min or so.
-> run the script with no params and data gets refresh.
-> run the script with -c activatecharge or -c desactivatecharge to active / desactivation one time charge of the hot water.
Thanks for this explanation, Fred!
One thing before I start: I’m interested in current electricity production and gas consumption values. I guess I’ll have to add commands like “self.ohPutValue(‘Viessmann_HWCurrentTemperature’,session.getDomesticHotWaterStorageTemperature())” to get this. Do you know which commands exactly or how to figure them out?
Getting consumption is not part of it I’m afraid. I trust library (this one and others) will evolve and new possibilities will arise as viessmann opens its API platform.
I’m very interested too in getting consumption, will post here when it becomes available.
I’m also a user of Viessmann Smart Climate, if someone has information to share on how to get temperature and settings not from the Heating only but also from the Rooms associated with the heating ??
Getting temperature reading from a room is no problem within openHAB, however getting such a (non-Viessmann) reading into the heating-system would by nice. Although I doubt Viessmann will ever open such a door.
Not PyViCare but my openHAB instance is running on a RaspPi and I’m actually using the Viessmann API via rules:
Looked at the PyViCare code, at least the used settings for apiURLBase and redirect_uri are not looking as documented by Viessmann. Using this apiURLBase I was not able to send a command to my system, using the documented URL it worked.
With the new version of the binding the “viessmann device”-thing (Device Id = 0) does not get online.
Before it was working and I was able to read out the values of my heatpump.
Here is the error-message:
At first deinstall the binding. After this put at first the commons jar into the addons folder. Wait 1-2 minutes and then put the binding into addons folder.
openhab> la -l|grep smarthomej
296 x Active x 80 x 3.2.11.202201210329 x file:/usr/share/openhab/addons/org.smarthomej.commons-3.2.11-20220121.033037-9.jar
297 x Active x 80 x 3.2.11.202201210339 x file:/usr/share/openhab/addons/org.smarthomej.binding.viessmann-3.2.11-20220121.033935-9.jar
Bit still the samer error. Some data can not be parsed correctly…
Exception occurred while initializing handler of thing 'viessmann:device:96afd7d3df:0': Invalid Quantity value: 2098.1 null