Viessmann Component

Which system do you use?
I am using a Vitodens 300-W.

Vitodens 222-W

Hi,
ViCare not working for me since two days. Someone else has the same Problem?

All good here. Anything in the logs?

I have deleted ViCare and reinstalled it shortly before I requested the log. No entities are detected

Coming from the debug log.

ā€œ2023-08-21 22:44:53.651 ERROR (SyncWorker_4) [ViCare] Missing ā€˜dataā€™ property when fetching installations
2023-08-21 22:44:53.745 ERROR (MainThread) [custom_components.pyscript.file.vicare_manual_set] Exception in </config/pyscript/vicare_manual_set.py> line 27:
circuit = circuit_factory()
^
PyViCareInvalidDataError: {ā€˜viErrorIdā€™: ā€˜req-29e446af2a174e8e81d5c65af7b57f29ā€™, ā€˜statusCodeā€™: 401, ā€˜errorTypeā€™: ā€˜UNAUTHORIZEDā€™, ā€˜messageā€™: ā€˜Request contain invalid tokenā€™, ā€˜errorā€™: ā€˜NO TOKEN AVAILABLEā€™}
2023-08-21 22:44:55.339 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up vicare platform for sensor
ā€¦ā€
And many more lines with pyvicare

The *Token.save file I have deleted.

Embarrassingā€¦ I think the reason is that my vitocal lost the WiFi connection. Also no connection with viessmann App. I am not at home the next days therefore not possible to solve it remote.

Does the ha_vicare custom component add anything to the official Viessmann integration? Or is the original one sufficient at the moment?

It supports multiple devices and has a few other changes which are not in the official integration.

I couldnā€™t find the time to properly contribute this back to HA Core unfortunately

1 Like

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:

    ViCareSensorEntityDescription(
        key="power_production_today",
        name="Energy production today",
        native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
        value_getter=lambda api: api.getPowerProductionToday(),
        device_class=SensorDeviceClass.ENERGY,
        state_class=SensorStateClass.TOTAL_INCREASING,

I upgraded to ViCare Plus (testing 30 Days trail) but still get no additional entities in my integration.

As Creator of the inofficial intigration, you may have a better understanding why this is not working and not available.

I would like to set the schedule for my circulation pump using PyViCare. I noticed that a method has already been implemented: https://github.com/somm15/PyViCare/blob/8ba411483a865e074d1146fd1b8b7a8c4f4be122/PyViCare/PyViCareHeatingDevice.py#L286

How can I expose this method as Home Assistant service?

Thanks in advance!

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 :slight_smile:
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.

Hope itā€™s fine if I crosspost it here. Was curious if anyone has any success with getting rid of cloud on their Viessmann boilers: community.home-assistant.io/t/controlling-viessmann-vitodens-gas-heater-boilers-locally-100w-111w-200w

I might be willing to sponsor such development.

Regarding getting rid of the cloud : If you have a new device there is an awesome project utilizing the can bus.

Info in German forum:

Source code:

I have it running on Vitocal 250a an works great.

Cheers
SanMiggel

3 Likes

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:

Works great, super reliable for me.

3 Likes

adorobis, I found such information:

  • 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

And then I used this link:

https://api.viessmann.com/iot/v1/equipment/installations?includeGateways=true

But there is no deviceId. .
installationId and gatewaySerial are OK.

So if there is no deviceId, I canā€™t use this address:
https://api.viessmann.com/iot/v1/features/installations/{installationId}/gateways/{gatewaySerial}/devices/{deviceId}/features

What type of device do you have? Does it show up when adding the integration to HA?

Hello,
Of course, the integration is fully working in HA. It shows 58 entities.
It is a Vitodens 200 B2HF, gas boiler, Polish market.