Skip to content
Jan Weltmeyer edited this page Mar 8, 2023 · 2 revisions

Welcome to the ha_sonnenbatterie wiki!

Energy Dashboard:

As this is asked very often:

The Home Assistant Energy Dashboard does not show the entities created by ha_sonnenbatterie. Thats because this addon does not show any energy(as Watt) values. (Except Battery, maybe...) We show you Power(!=Energy) values. Energy is Power x Time (or as you may know it "WattHour" or KiloWattHour(kwh)) To make values from sonnenbatterie usable in your energy dashboard you have to somewhat "convert" the values.

As Energy is Power x Time, you need to measure power that is pushed through your home for a certain time.

Example: You are using a fridge, which is drawing a constant 100W. After one hour your fridge used 100W * 1h, after 24h it used 2400Wh or 2.4kWh :)

To get to these values you can use the "Riemann integral(https://en.wikipedia.org/wiki/Riemann_integral)" which is an approximation of the used power times time(=energy).

Fortunately, home assistant has a tool for this: The "integration" integration(https://www.home-assistant.io/integrations/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 ConsumptionEnergy named "PowerConsumption" with unit kWh and usable in energy-dashboard

Clone this wiki locally