somm15 / PyViCare

Python Library to access Viessmann ViCare API
Apache License 2.0
130 stars 84 forks source link

Support Ventilation modes and programs on heat pumps #358

Closed CFenner closed 2 months ago

CFenner commented 4 months ago

This copies the functions for ventilation modes and programs from the Ventilation device to Heat Pumps.

See: https://github.com/somm15/PyViCare/blob/63f9f7fea505fdf9a26c77c6cd0bff889abcdb05/tests/response/Vitocal222S.json#L3227-L3229

CFenner commented 4 months ago

@LarsTh86

LarsTh86 commented 4 months ago

It is relevant that you activated it for a vitocall222s? We have a 200s. I don't know if this is relevant. I can test it tomorrow. At the moment the update from HA Core is on going. After this is finished, i will test it

CFenner commented 4 months ago

Unfortunately, you can only test this with a python script, not in Ha.

Device type is determined by https://github.com/somm15/PyViCare/blob/63f9f7fea505fdf9a26c77c6cd0bff889abcdb05/PyViCare/PyViCareDeviceConfig.py#L82 which should also match your device. If the feature is not supported an exception will raise that is handled on HA.

LarsTh86 commented 4 months ago

Is there something new about the Ventilation ?

crazyfx1 commented 4 months ago

What is the ventilation on heatpumps?

CFenner commented 4 months ago

As far as I understand it's a central ventilation unit attached to the heat pump.

@LarsTh86 can you elaborate a bit more on your setup?

LarsTh86 commented 4 months ago

I have heatpump with direct connected central ventilation unit. vitocal 200-s with Vitovent 200-W and a VX3 hybrid storage system.

LarsTh86 commented 4 months ago

There are two programs for ventilation, which would be really comfortable to control with the vicare integration for HA. I already activated and deactivate this Modus with iobroker but this is not comfortable but it works with vicare-api

CFenner commented 4 months ago

I‘m unsure if this is the right approach. For some reason the ventilation program is also shown in the heat pump but i think there is also a separate device for the vitovent!

CFenner commented 4 months ago

Ok, just verified again, the ventilation device is only accessible via the heating device. There is no separate device in the API.

config_entry-vicare-a1c2d8d88e9e884a25242de183daac49-2.json

LarsTh86 commented 4 months ago

It is only controlled via the heat pump and is directly connected to the heat pump control.

pduchnovsky commented 3 months ago

I have the same setup as LarsTh86, vitocal 200-s with Vitovent 200-w It's going to be awesome finally having control via HA once this is merged :) Thanks CFenner for awesome work on this

LarsTh86 commented 2 months ago

Ready for testing?