Dear community, I struggle now for over a year with my PV inverter giving me for total solar production 0 value, when there is no production for a longer time. This causes the enegery dashboard to show a spike in PV production, once the new energy is produced:
I had hoped to be able to use a new template sensor, which should ignore these drops by using availability_template. But unfortunately it does not. Has anybody an idea how to fix or ignore theses drops in the template sensor? If the orginial sensor drops is fine and maybe based on how the integration works, but I had hoped to fix as a template.
if states('sensor.pv_gen_meter') drops to zero, you need to account for it properly in the availability template. All states are strings, so you need to check it against a string zero, not an int zero. Also doesn’t hurt to add a decimal version of zero in quotes as well.
availability_template: >-
{{ states('sensor.pv_gen_meter') not in ['unknown', 'unavailable', '0', '0.0']}}
Since the December update, every Friday I have a pv spike on the energy dashboard showing the total yield from my SMA inverter. I’ll wait for the January update and hope it will be fixed.
Unfortunately problem here still not fixed. Every Friday at 02:20 total yield goes to 0. When the SMA inverter starts, total yield goes to it’s original value giving a spike in the energy page of the total yield.
You’re issue won’t be fixed by a core update, it needs to be fixed by you. If your sensor is dropping to zero and ramping back up, then it will add that to the calculation. You either need to fix that on your sensor side, or make a template sensor that filters out zero.
do you have to put this on the configuration.yaml?
if try to test in the template section (under developer tools) i got the correct value but when i try to put in the yaml file, it wont accept is