I have set up a number of utility meter to capture the daily kWh usage from a running total, but it keeps on starting off from whatever the running total is on the day. I have tried reset daily, delta, everything I can think of but to no avail.
It resets to zero but picks up the running total as soon as the inverter comes online.
This used to work on a running total that was available 24/7 (Eastron meter), now I only have the running total available when the Solax inverter is running during the day. This graph is from the next day after I created the meter.
Can someone suggest what I might be doing wrong?
Edit: I now have the inverter connected to the Energy meter which is why I can no longer connect directly to the energy meter any more.
I put a history graph on there. You can see where the utility meter resets to zero at midnight but I suspect that the value that is produced when the Inverter comes alive in the morning is classified as usage.
Can you suggest a way of showing the settings once the utility meter has been created?
I am not understanding the word ‘feeding’ in the context of this discussion, i am assuming you mean the total meter I am basing the utility meter on.
Here goes:
Please click the “show more” link on the pop up so that you are showing the actual state history and not long term statistics (that is what the pop-up shows so it loads faster).
What happened to the state in the middle of the night?
The feed in information is extracted from the solar inverter which goes to sleep when the sun goes down and wakes up again when the sun rises. looking at this graph, it looks like the inverter sends out zero as the first output. Is that what the issue is?
The Solax Power integration was the built in Integrations in HA. I just entered the IP address, port etc. It generated the 26 entities that I am using. Not all of them contain values as I don’t have a solar battery. I believe this is Modbus over IP but I have heard it being referred to as a restful interface. The only thing I have in the Yaml config file is the PVoutput updates ( and automations.yaml to run it every 5 mins)
You could try filtering it though a template sensor with an availability template:
configuration.yaml
template:
- sensor:
- name: Filtered Export Energy
device_class: energy
state_class: total
unit_of_measurement: kWh
state: "{{ states('sensor.solax_swapuwz36r_total_feed_in_energy') }}"
availability: "{{ states('sensor.solax_swapuwz36r_total_feed_in_energy')|float(0) - this.state|default(0) >= 0 }}"
Restart HA after adding that if it is the fist time you have used the template integration. If you already have template sensors then a template sensor reload will do.
Check the state of sensor.filtered_export_energy and let that run overnight and make sure there is an actual gap in the history graph and no zeros. If that works then you can use it in your daily utility meter.