#HA battery in/out the wrong way?

1 messages · Page 1 of 1 (latest)

dire ferry
#

In the energy section it says "Positive values indicate discharging the battery, negative values indicate charging the battery." but shouldn't it be the other way? Positive is charging, negative is discharging.

tiny palm
#

No. Otherwise your solar would be producing negative power

dire ferry
tiny palm
#

And more than one has it thd other way. When a user only has a grid consumption sensor, would expect that to be negative?

#

Should solar production be negative? Because both of these are energy sources just like a battery

dire ferry
#

Well tell that to EG4 and Victron because they both have positive as charging

tiny palm
#

So?

#

These are not the only integrations

dire ferry
#

I would have to reverse it specifically for HA then

#

not sure how to do that as a helper

urban frigate
#

sensor * -1 in a template helper to flip them

ivory cedar
#

Plus or minus is just a matter of definition. Looking from the battery perspective, negative for discharge does make sense as the energy in the battery reduces. But from a house perspective, as HA looks at it, that's less logical. Because you expect you're actual usage to be a positive number. Thus everything that supplies power to your house is seen as positive. Grid import, PV and thus battery discharge.

This makes that the actual power your house consumes simply is a sum of all parts:
[House] = [Grid import] + [Grid export] + [Battery charge] + [Battery discharge] + [PV]

Where grid export and battery charge will be negative values and thus subtracted/excluded from your house power usage.

#

@urban frigate Simply - sensor also does the job 😄

dire ferry
#

also speaking of, is the new live energy graph correct? solar produced and battery charging both mirror each other

#

where as with the bar graph, all the solar appears to be dumped into the battery

ivory cedar
dire ferry
ivory cedar
#

Looking at the energy graph it does look like all PV went into the battery indeed. So then it is mirror. Don't know why your battery does that though.

#

Or what your strategy on battery charge/discharge is

dire ferry
dire ferry
#

I feel like it should be reworked to be like what we already have. if the battery is charging, it should only show pink at the bottom like the other graph. when the battery's discharging is looks normal

ivory cedar
#

Noo, that's why the power graph has a doted line to show your own consumption. But it just shows all the info.

And about battery charging, if energy during the day is cheaper that can be a strategy indeed.