Hi there,
I feel somewhat lost when it comes to correctly displaying the power distribution in the energy dashboard.
I do have a Shelly 3EM set up, that combines all three phases (working fine).
I do also have a solar system, hooked up to only one phase (also fine so far)
I did also add 2 batteries (BP-2500v1), that are a bit tricky to integrate - but the values on the battery itself seem fine to me (DC batteries, so no charging from the grid).
When I have a look at my energy dashboard, I get the following picture(s):
Let’s break it down:
- Until ~6am, the battery is drained with roughly the amount my home consumes “idle”. The values are properly displayed, battery consumed is ~0.2 kWh (batteries are set to discharge at 200W in total), and a little extra is consumed from grid.
- In the morning, batteries stop discharging, and energy consumption goes up (positive values)
- Solar power starts kicking in, (first time visible at the 8:00 bar), batteries are being charged (negative values), and energy is consumed from grid and some solar
- until 9:00, more energy is being produced than produced, therefore power is returned to the grid (violet), some power goes into batteries (red), and some is still being consumed before solar power kicks in
- the story goes on “correctly” until the 12:00 bar. Solar power (not connected to batteries, but directly fed into the home grid) now exceeds power consumption (> return to the grid), the two batteries are being charged by separate modules (negative red). However, I do now have a consumed battery amount of ~ -0.2 kWh
The same is true for the 13:00 bar. The batteries did not discharge (all sensors on the battery show a discharge of 0, also the entities in the energy dashboard used for battery discharge don’t change by even a fraction:
Where it does get interesting:
If I check further down the energy dashboard, I can see untracked consumption exactly when the dashboard displayed power consumption (discharge) from the battery:
Checking the total power sensor for, e.g. 12:00-13:00, we can see that it fluctuates between ~0W and -530W:
adding up the (tracked) return to the grid of -0.35kWh and the untracked power consumption of -0.22 kWh (displayed as battery consumed in on the electricity usage graph) results in ~ -0.57 kWh - meaning the total power consumption in that timespan would have had to be -570W on average. We can clearly see, that it was not staying at -570W throughout the hour, but was rather fluctuating around - so the 0.35kWh tracked consumption seem to be about right.
I’m happy to provide the config files, but since they are a couple of 100 lines of code for the various sensors, I’d appreciate any hints of how to debug further. Most interesting would be, how that consumed battery value is being calculated, to check what sensors are actually being used, in order to compare it to the total power consumption sensors. I’m pretty sure there is a bug involved, since the values, without the untracked consumption, would be correct.