Thanks for your efforts. I have been reading through this big old thread, there’s been a lot of discussion over the last few years!
Am I right in thinking that if I want to run some automations to adjust the temperature on the device at various times, it’s better to disable auto polling and then run vicare every 70 seconds or so I don’t risk exceeding the Viessmann API limits?
There is only small room for additional calls. Each call you make on top during the day will lead to your api not responding anymore before the limit gets reset (e.g. at 0:00).
The actual limits are documented on the vicare integration documentation
@oischinger May I ask a direct question:
I searching a way to not only get the power consumtion of my heatpump (Vitocal-A250), I also like to know the production eg. 20kWh consumtion results in 80kWh of gas heating. Or acutual electric power 750W resutls in 3,4kWh heating power.
The Viessmann mobile app provide this data, also i seaching the API calls and found somthing maybe for fuelcell / heatpump? BUT it’s marked “advanced”.
In the official repo in “sensors.py” I found entries like this:
Hi there,
I am trying to control my 200A heatpump with home assistant and nodered. Struggling changing the preset_modes, always get an API error. Does anybody know what might be wrong at my side.
Thanks JJ
I have the same situation for 200W gas boiler. Those modes are listed as available but cannot be activated via the API. You can check which features are really available for your system.
Btw, are you receiving any error message when trying to activate those preset_modes?
You can also follow instructions on this git repo to get entire scope of what’s available for your device: GitHub - somm15/PyViCare: Python Library to access Viessmann ViCare API The result of the step 3 will show you all available data and active features.
You would need to implement a respective service in the vicare integration and submit a PR.
You can have a look at this PR: Add set_heating_curve service by adorobis · Pull Request #117 · oischinger/ha_vicare · GitHub in which I’ve implemented a service to set heating curve. Yours will be a bit more complicated though
Edit:
Btw, I’ve found it quite easy to manage schedule via the ViCare app so not bothered to implement it in the HA integration.
And for the devices running the optolink interface there is already a solution on esphome. In PR stage at the moment but should be soon added as official integration:
Use above data to replace {installationId}, {gatewaySerial} and {deviceId} in this URL to investigate the Viessmann API:https://api.viessmann.com/iot/v1/features/installations/{installationId}/gateways/{gatewaySerial}/devices/{deviceId}/features
You can try to find the device id here, either in the diagnostic data from the integration or in the /.config/ files. Not sure if it is stored there though.
I’ve just checked and for my heater the deviceId is 0 as well so this is normal.
Have you authenticated properly first? Is it in Postman or you do it in a different way?
I just wanted to make sure.
Is this statement correct?
Since using HA I have limited my use of ViCare app to save on my limit. But perhaps unnecessarily?
Ah, no, this won’t work. You have to use a Postman (a desktop app) - the instructions are on the vicare repo. Or you can also use a python program. Whichever would be easier for you. Postman is pretty simple.