Hello.
The energy dashboard configuration consider battery power positive as consumption and negative as charge. (that is written in the configuration page as hint)
That is unusual.
We consider positive as powerIN - adding energy (energyIN) and negative value and powerOUT - draining energy (energyOUT)
Because of that, the Now page shows imense “untracked consumption” value.
I have two batteries, the energy shows ok because energy in and energy out are separate entities.
It would be better an option in the energy dashboard configuration, for the power to invert the sign.
I know this can be solved temporary by a helper (inverted sign of a value)
Anyone has a different solution or reported a bug/feature_request?
The HA developers regard the energy system as House-Centric. Everyone (probably everyone) else on the planet regards the home energy system as Grid-Centric. Hence the battery power and grid power +/- are reversed to usual convention.
I believe that requests have been raised to offer an inverting option in HA for the settings.
I’m one of those freaks who daydreams of being a power station. From my desk I used to look out at the cooling towers of Didcot A and I did get generator-envy.
I prefer to represent generation and net export (and battery output) as positive, and to show negative power in charts of consumption or net import. That is, I’m upside-down by comparison to some users. What should I do ?
I have a bog standard Solis Hybrid inverter. This provides the raw grid power (via an inverter-used power meter) and also the battery power, via the CANbus integration from the battery BMS as well as the inverter itself.
The inverter-based sensors are the inverse of the new HA requirement, so I have had to create two template sensors to invert the power values I already have.
Very much as case of, if one person has a problem it is their problem. If almost everyone has a problem, then the HA developer has picked the wrong +/- option.
Of course, there will be those who will require a mixture. Just permitting an option to select polarity when defining the input entity sensor should address most of the issue!
As Doctor Who always said, if it doesn’t work, just reverse the polarity of the neutron flow.
Every SolarEdge system with an Export+Import meter represents power export to grid as a positive number because positive (after self consumption) represents excess solar generation. Net import is a negative number because solar generation is less than consumption.
Other solar inverter systems use the same convention, thus the complaints why HA decided to represent it a fixed way with no option to choose otherwise than extra user-unfriendly steps.
I noted that from smart plugs, something like entity: sensor.plug7_p110_power doesn’t seem to be from the plug. That example resembles the product of two entities local within home assistant, as entity: sensor.plug7_p110_voltage * entity: sensor.plug7_p110_current
Now, are both of those real positive numbers root-mean-square current and voltage sent from the plug, or is there more measured data available ?
I ask because my other current probe CT and voltage probe at home (non- Home Assistant; 8 kS/s) look at waveforms, from which I can see for example that the fridge draws current waveform nearly 2milliseconds late by comparison to the voltage waveform. The usual way in electrical engineering is to define the slight lessening of I(t).V(t).dt by comparison to Irms.Vrms as “Power Factor”, which is a multiplier between 0 and 1, usually a tiny bit less than 1 and somewhat a property of an appliance class such as “fridges whilst the health of their motor is not degraded and coolant circulation path is not clogged”. Any guess why I’d prefer to measure a power factor than just have an arbitrary scale number ?
I was having a think about how to get a fixed, estimated, Power Factor number in, and I think that it would use the same coding effort to multiply by -0.96 as to multiply by -1.0
entity:sensor.plug7_p110_fancyPower defined as equal to
sensor.plug7_p110_current * sensor.plug7_p110_voltage * -0.96
is there a proper way to define such a “fancyPower” sensor, and where do they get the logo of an electrical-looking symbol into the existing sensor.thing which seems to do rms current * rms voltage ?
I’m presently not finding anything comparable to a definition of various locally calculated sensors from looking around with the basic ‘File editor’ add-on. What do I need and were might I look ?
I’m adding to the list: my Sofar inverter sensors have the correct sign, excluding the battery charge/discharge sensor, which is positive when charging (not like Home Assistant requires).
Unfortunately they rejected the frontend PR that would have allowed to invert the sensor without reverting to a template sensor.
I noted that the PR was closed, at this will not be addressed by HA core.
Just adding FTR: GoodWe hybrid inverter (GW10K-ET) reports:
grid import/consumption/grid-to-home as negative, and export as positive
[inverted to HA Energy dashboard], so I have to use a template sensor here to invert the values.
but battery discharge/battery-to-home as positive, and battery charging as negative
[as expected by HA Energy dashboard]