-
Notifications
You must be signed in to change notification settings - Fork 31
Home
Welcome to the ha_sonnenbatterie wiki!
The Home Assistant Energy Dashboard does not show the entities created by ha_sonnenbatterie
.
That's because the Sonnenbatterie integration doesn't provide any energy values (measured) in Wh or kWh. Instead it gives you sensor values for certain points in time in W, which is power.
Energy is power (consumption/production) by time and is measured in watt hours (Wh) or kilowatt hours (kWh).
Your fridge has a constant power draw of 100W. After one hour your fridge used 100W * 1h (= 100 Wh), after 24h that would the be a total energy consumption of 100W * 24 h == 2400 Wh == 2.4 kWh.
To make the values reported by the integration's sensors usable by the "Energy Dashboard" To get to these values you can use the "Riemann integral" which is an approximation of the used power by elapsed time (== energy).
Fortunately, home assistant has a tool for this: The "integration" integration
An example for the energy consumption, calculated over time from the power sensor of the sonnenbatterie:
- platform: integration
source: sensor.sonnenbatterie_XXXXXX_meter_consumption_4_2_w_total
name: PowerConsumption
unit_prefix: k
This yaml creates a sensor for consumed energy named "PowerConsumption" with unit kWh and usable in energy-dashboard