Hi everyone,
I can’t get the energy dashboard working and I don’t understand why.
I started monitoring my energy consumption and production many years ago with arduinos that communicate via MQTT and that’s my result:
From the right to the left:
solar panel production
1st-floor energy consumption
base floor energy consumption
entire house consumption (sum of both floors)
house consumption - production
Here is an example of my solar power production sensor (KWh):
by setting device_class, state_class and reset I was able to use it in the energy configuration. I set everything yesterday so it’s elapsed more than 2 hours.
where “Energia immessa in rete” is a calculated/template sensor (0 if the house consumption is greater than the production else production - consumption
as far as state class is concerned, if I understood correctly, measure is when the sensor measure the current value (clamp sensor), while total_increasing is when the sensor increase always the value (energy meter).
Is it right?
I would do but unfortunately, I’m still having problems.
It’s not possible to set state_class: total_increasing for mqtt sensor. When I check the configuration I receive value not available, that’s might be the reason why @grzesiek1651 the chart is 0. A part from that based on the link Sensor Entity | Home Assistant Developer Docs it’s not correct for my case (clamp sensor):
Similar to measurement , with the restriction that the state represents a monotonically increasing positive total