oischinger / ha_vicare

Inofficial Home Assistant custom component for Viessmann ViCare API
61 stars 34 forks source link

Added new Viessmann API methods from PyViCare 2.15.0 #75

Closed damianbro closed 2 years ago

damianbro commented 2 years ago

Added new Viessmann API methods from PyViCare 2.15.0 (https://github.com/somm15/PyViCare/pull/235)

damianbro commented 2 years ago

getPowerSummaryConsumptionHeatingCurrentMonth - is showing electrical consumption (of gas boiler) in unit from getPowerSummaryConsumptionHeatingUnit - in my configuration it is kWh

getGasSummaryConsumptionHeatingCurrentMonth - is showing gas consumption in unit from getGasSummaryConsumptionHeatingUnit - in my configuration it is m³ so I modified native unit in code

I don't now if it can be changed in Gas boiler configuration (I can't modify that, maybe an installer can do it). Even that It always showing unit from the API endpoint - native unit in code I filled because in other sensors it was filled :)

The same is according to Domestic Hot Water - API shows us those consumptions separately (it was a change in API in october - https://developer.viessmann.com/en/doc/changelog heating.gas.consumption.summary.heating heating.gas.consumption.summary.dhw heating.power.consumption.summary.heating heating.power.consumption.summary.dhw)

There are only summarized consumption of day/month/year and last 7 days, last month last year.

In my lovelace it looks like: obraz

... And I forgot - without those methods current version of ViCare component is not showing any consumption of my boiler, that it was a reason to add that also in PyViCare and here. There was discussion about it here: https://community.home-assistant.io/t/viessmann-component/77873/

oischinger commented 2 years ago

Thanks for the explanation. I don't have these sensors for my device but that helped. I guess we're good to merge then.