WIP: Adding "Dashboard Grid/Battery Power" helper sensors #1754
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
HA power dashboard requires all power sensors to be "+ve to Load". i.e. a positive value indicates power flowing from a source to a load, and negative value indicates from load to source. The Solar, Battery, and Grid are all considered Sources, so:
Certainly the battery and grid sensors in a number of (if not most) inverters seem to be the other way around from the direction HA favored.
To cope with the currently predefined direction required for the home assistant power dashboard, begin adding additional sensors which if neccessary present negated versions of grid power and battery power in the home assistant expected flow direction.
This will probably need to be implied to all inverter files for consistency. Currently this is just a proposal (see #1751), and depending on the direction HA devs finally settle on, may or may not be a necessity. Please comment on the linked issue to indicate if your inverter needs any of battery/grid/solar inverting (and the sensor names).
@wills106 Your thoughts on this as ever would be appreciated. I've tried proposing to HA to correct for this in the dashboard itself but they seem to be insistent on pushing the mess back on to the integrations to deal with.