Hello,
I have a strange behatvior on my utility meter that, at some point, starts giving strange values on templated sensors.
For instance, I have a sensor called “total electricity consumption” which is the sum of day & night consumptions, where the utility meter jumps into millions.
Did the same with a simple rounding of my solar production:
solar_total_production:
friendly_name: "Electricité solaire produite (total)"
icon_template: mdi:solar-power
unit_of_measurement: kWh
value_template: "{{ (states('sensor.total_yield')|float)| round(2) }}"
On that one, I have simple Utility meters (in a dinstinct yaml):
yearly_solar_production:
source: sensor.solar_total_production
cycle: yearly
monthly_solar_production:
source: sensor.solar_total_production
cycle: monthly
After a few days I end up with values like (total value which is correct):
while the utility meter jumps through the roof:
As far as I could check it’s not about unit of measurements, I didn’t note any fixed ratio.
Am I doing something wrong?