Very new to home assistant and while I found most answers to my setup I’m a bit stuck on a “detail”.
(Hopefully) relevant information:
I have a solar installation with a SolarEdge inverter, through the integration I get a lifetime energy production entity.
I also installed a watt-meter on my electrical circuit, AFTER the inverter but before everything else, hooked to HA giving me my total consumption (grid + solar then)
Both separately work well, I can see my consumption in the energy panel (bound to daily_electricity) and my solar production. Now given it’s winter here I could let it as-is as there’s very little chance I’ll return anything but I’d like to complete my setup correctly.
Since I don’t have anything that can provide me with the returned energy I thought about calculating the difference between my consumption and production but I don’t know how to proceed as I can’t really remove the lifetime production from the total consumption (the kwhcounter) as they were not setup as the same time and while I could reset the kwhcounter, the production value comes from SolarEdge API and I can’t reset it (nor would I want to).
So here’s where I am now and I would really appreciate any help I can get.
Thanks!
(edit: I forgot to include it but there’s a trigger on the binary sensor from off to on to increment the counter:
It appears the developers energy monitoring setups provide the needed inputs and therefore there is no issue for them. For my solar installation, simply putting energy measuring devices on available wires (as suggested) does not provide the needed “Return to Grid” information. My power company meter does provide this info but I have no way of extracting it. I suppose it’s may be possible to detect when my grid kwh begin to decrease ( excess solar power to grid) and do some math but wouldn’t is be far more practical to have an option for correct display with when this information isn’t readily available. Seem this is an issue for a number of users. Perhaps someone has long ago provide a solution but I haven’t run across it yet.
I have the same issue and I am currently going down the create a Return to Grid template route. Currently need to work out how to create it so it is positive values only, i.e.
if Solar - House > 0
then Return = Solar - House
else 0
Working through the syntax… anybody know?
I have the same problem and tried to get the value of ReturnToGrid with a formula from PowerIn at the electricity meter and SolarPower from the solar panel. But you can’t.
Imagine the electricity meter shows 0 W and the solar panel generates 400 W. If all consumers are switched off, the solar power goes completely into the grid (ReturnToGrid = SolarPower = 400 W). If you have a 100 W lamp, the electricity meter also shows 0 W, the solar panel still has 400 W, but ReturnToGrid = SolarPower-100 = 300 W.
As long as you cannot measure your total power consumption, you cannot calculate ReturnToGrid. Because the electricity meter no longer measures your total consumption as soon as you bring other generators into your home grid. It only measures how much electricity is taken from the electricity provider.
Yes of course, if you got 4 variables you need the values of 3 of them to calculate the 4th
If you are using a smartmeter and a P1 integration, you should be able to measure grid_out.
Ans with grid_in, grid_out and solar you can calculate the home consumption.
Picking up an old thread.
There are 3 variables here:
1- Solar Production
2- Home Load/ consumption
3- Grid consumption
For the energy tab, HA seems to assume that 1 and 3 are the variables available and computes 2 by summing up 1 and 3.
However it is quite common to have a model where 1 and 2 are available while 3 is not easy to retrieve.
It should be possible to net off the two to compute the net grid consumption / net returned to grid i.e. 2 -1 = 3
but there does not appear to be any way to modify it