#Inverting sensor data

1 messages · Page 1 of 1 (latest)

valid moon
#

Hi, want to know how to invert the date of a sensor.
I have a solaredge with meter and if i make more energy the data is positive and if i use data it's negative.
I want to change the positive to negative and negative to positive.
Because i have a dynamic contract for energy and now it's calculating wrong

brisk stump
#

you can adapt Q 10.

valid moon
#

Looked at this solution and it works.
There is only one thing: i want to leave it in one sensor, just put negative to positive and positive to negative

#

The AC power now needs to be nagatve as it's returning power to grid

brisk stump
#

Why?

#

That won't work with the energy dashboard

valid moon
#

its not for the energy dashboard but to calculate for my dynamic power contract.
now it's not showing the correct prices

#

the energy dashboard is fine, i use dsmr for it.
but the ac power gives a better insight how much i usewith a single sensor

#

and to make a better calculation of the costs

brisk stump
#

energy dashboard calculates prices too

valid moon
#

ok will try it. thx

valid moon
#

Btw: mij solar gives a better reading (every 1 second) than mij DSMR (every 10 seconds)
So i think when the solar AC POWER is inverted it's giving a better insight

brisk stump
#

DSMR just measures grid export and import

#

your solar meter measures solar production

#

you need to know both

sonic cape
#

I'm a bit interested in the same topic. My hour based graph shows that I'm selling solar energy to grid, which actually is true, but the net cost over the hour will be calculated, and in reality I'm not getting paid anything from that hour.

The values I use are the imported and expored energy in kWh. They are always positive values, but the current power, like you had, goes negative when I'm selling more than importing.

I think there is no simple way to handle this in HA automatically without some extensive calculations?

I will be more interested in this topic now when there will be this 15min stock price system coming

brisk stump
sonic cape
#

I get, but only from the part which exceeds the imported amount. So calculation is basically correct, where it shows the imported and exported amounts, but the graph on the top is a bit misleading as it should show only yellow and blue colors here, until I'm overproducing the solar

brisk stump
#

you mean it calculates cost per hour?

#

rather than just look at export and import

sonic cape
#

yes. For now, until we move to 15 minute "netting"

brisk stump
#

so if in one hour you consume 10 kWh, but you export 9 kWh, you get paid nothing?

sonic cape
#

No, I need to pay for that 1 kWh myself. But if the values are other way around, then I get paid for that 1 kWh I overproduce

brisk stump
#

im confused

sonic cape
#

Sorry, I feel it a bit hard to explain 😄

10am: I import 8 kWh and export 7 kWh - net is 1 kWh which I need to pay - lets say 10 snt
11am: I import only 5 kWh and export 10 kWh - net is -5 kWh which I get paid - lets say only 20 snt because it's cheaper hour

End of that "two hour day" I get 10 snt income

#

I assume this would be somehow normal procedure?

brisk stump
#

ah okay. It's net metering at the hour levelj

sonic cape
#

Yes!

brisk stump
#

that's gonna be hard to program in because what you pay would depend on what you export that hour. But that information is unknown only until afterwards

#

you could use the forecast

#

or correct it aftwards somehow. Neither is pretty

sonic cape
#

Unfortunately forecast is also not that accurate.

Would be nice that there is an option within energy dashboard to handle the net metering itself. But apparently this is not so common case outside of Finland?

brisk stump
#

no... it's not really the intention of the energy dashboard to be used for cost administration

#

there are large discussion on the community forum about this because energy cost is complex and every country has a different system

sonic cape
#

Yeah, I would be most interested in seeing the net value in this graph, because it is a bit unclear visually to say from which hours you get paid (didn't have enough consumption for the production)