I am still a learner with all this, but have also noticed a lot of energy going missing which I have assumed is being used by the inverter.
I have a Shelly CT clamp on the tails going into the Consumer Unit which measures the power the house is using in w. My hypothesis is
Inverter Power use in w = ( Load Power reported by the inverter w ) - ( House use reported by the shelly CT w ).
It's complicated by the shelly has a resolution of about 1 second whereas the HA modbus has a resolution of 10s I believe. As the house load can be really choppy some smoothing and massaging of the numbers is required.
I have a template sensor, pwr_inverter_w, which does this simple subtraction but removes outliers ( <0 and >250).
Code: Select all
{% set previousState = this.state | float( 0 ) %}
{% set currentState =
( states( 'sensor.kh7_load_power' ) | float(0) * 1000 - states( 'sensor.shelly_ct_house_load_w' ) | float(0) ) | round(0) %}
{% if currentState < 0 or currentState > 250 %}
{% set currentState = previousState %}
{% endif %}
{{ currentState }}
(I am sure the if can be done on one line but i like to understand what i did months later

)
This produces a pretty picture:
As this is really choppy, I then filter it:
Which on inspection makes a bit of sense, you can see a peak when the invertor is working hard between 16:00 -> 19:00 where we export, and the 01:00 when in winter we import.
I then have a integrating sensor/utility meter which does the conversion to kWh per day.
So you can see our KH7 uses 2.5 to 3kWh per day, which I find quite a lot. I've tried all sort of things to see if I can influence this but none work. In fact if you turn battery and solar off at the switch, the inverter uses a lot more. With the losses in the various other conversions, when the house is quiet overnight and running only on battery, total efficiency is < 50%.
At that poor efficiency, overnight I would probably turn the whole system off and pay the 25p a unit octopus wants, but that isn't possible. I think there should be a software setting that turns the invertor and the whole system into standby mode where it draws only a few watts, similar to how other hardware works, and you can then send a Wake on Lan packet which turns it on.