kamaradclimber / heishamon-homeassistant

An integration for heatpumps handled by heishamon
Apache License 2.0
48 stars 25 forks source link

Riemann Integral for heat/dhw Energy Consumption for Energy Dashboard #51

Closed Bucky2k closed 1 year ago

Bucky2k commented 1 year ago

Integration proposal:

In order to show heat and dhw energy consumption of the heat pump as individual devices in the energy dashboard, I added the following to my configuration:

`sensor: #Calculation Energy consumed (kWh) - DHW

kamaradclimber commented 1 year ago

Would you be interested in adding those to the integration? I would definitely take a PR for this :)

Bucky2k commented 1 year ago

Can you point where roughly this would have to be entered in your files/code? Never created an integration myself. The code above is placed in the configuration.yaml in my current case

kamaradclimber commented 1 year ago

https://github.com/kamaradclimber/heishamon-homeassistant/blob/main/custom_components/aquarea/sensor.py#L77 would be the right place to add the object representing the entities.

Here is how HA declare the IntegrationSensors defined via the UI.