Solar Energy metering

Hi,

i have a small PV-system. I measure the output with a shelly pm mini. I also measure the total energy consumption from our house with a Shelly 3PM. Unfortunately the PV is located behind the 3PM so if i produce 0.8 kw of energy an have a consumption of 1 kw the 3PM measure a “House consumption” of only 0.2 kw.
Is there a possibility to fix this?

image

Kind regards,

So in the example showing in the screenshot i had an total of 9.7 kWh and not the shown 9 kWh.

Yes, rewire your sensors correctly.

I´m sure that there are some people out there with a Balkonkraftwerk like me who can understand the problem and may have a smart solution.

If you don’t have the correct sensor values because you wired them incorrectly then there is nothing you can do.

Move this to in front.

The house consumption sensor needs to include both grid and solar consumption. At the moment you only have grid being measured.

EDIT: as your PV system is very small, maybe you could create a template sensor.

True house consumption = house consumption + solar production

But this assumes you never export any solar energy to the grid.

I think i realise that i don´t have a problem - just a knot in my brain?!

The two 3EM combined is the Grid.
The mini is the PV

So everything produced from the Mini is not measured from the grid.
Both combined is the consumtion from the house.

So everything is right?!

You do have a problem if this is happening:

Though this looks correct:

House = Grid + Solar

I think the setup is correct that way. The only thing left to do is a sensor which shows the export, because at some point you will export and then you want your house consumption to add up correctly.

Hi,

ok i found another error in the configuration of my inverter. Now i produce more than i need (not in total).
I like this graphic showing how much i use, produce, … in total. Is there a similar on for a live view?

@JohnFLoki: Do you have a link or something where i can see how to setup what you mentioned?

Kind regard - again

You need the Power Flow Card Plus from HACS.

For the other sensors you need to set up template sensors or utility meters, depending on what sensors you have. Can you Post an image of your shelly device in Home Assistant? Also do you have a smart meter already?

Hi,

sure. Wich informations do you need?
I measure the grid with a 3EM.

And the PV with the pm mini:
image

I will try the Flow Card Plus

Ok I think the Total active energy and Total returned energy should be differentiated correctly, so just add returned energy to the grid export setting and everything should work fine.
Also you need to add both devices’ energy sensors to the dashboard for the right sum. That is of course only if you want both floors to be shown together.
You can also use the Energy Flow Card Plus for seperate consuption cards on your custom dashboard.

Hi,

i tried … but it´s a pain.
Why isn´t this working:

{{sensor.shellypro3em_34987a44bca0_total_active_power - sensor.balkonkraftwerk_power}}

I get the error “´sensor´ is undefined”.

Kind regards,

Just FYI: ChatGPT can help with easy templating.

{{states(‘sensor.shellypro3em_34987a44bca0_total_active_power’) | float - states(‘sensor.balkonkraftwerk_power’) | float}}

This should be correct