#HA battery in/out the wrong way?
1 messages · Page 1 of 1 (latest)
No. Otherwise your solar would be producing negative power
When you draw power it should be a negative value. When you add power it should be positive. More than one integration has it set so that negative = draw, and positive = charging
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
Well tell that to EG4 and Victron because they both have positive as charging
I would have to reverse it specifically for HA then
not sure how to do that as a helper
sensor * -1 in a template helper to flip them
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 😄
ah
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
That's not an energy graph. It's a power graph.
If your battery exactly tries to charge with the same power as your PV it's correct. Otherwise it looks like you picked the wrong sensor for PV or battery discharge.
yeah that. so it's supposed to be mirrored?
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
I don't have enough solar to power the loads and charge the battery at the same time if I'm on my computer so I have to chage during the day and discharge at night
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
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.