Hi guys!
6 Month already now and I still struggle with this issue…
As you can see on my screenshot, I have a measurement coming via mqtt - it measures energy in kWh. My problem is, that from time to time, this value hits 0, 1 or something far away from the current value, which (by nature) can ONLY increase.
So how can I force this sensor to ONLY increase its value, never ever go to zero and not decrease its value?
My current config for this MQTT Sensor:
mqtt:
sensor:
- name: Wallbox-Energy-Total
state_topic: "modbus/1/inputRegisters/1/307 EnergyMeterReading"
unit_of_measurement: "kWh"
state_class: total_increasing
device_class: energy
min: 100
unique_id: 'sensor.wallbox_energy_total'
I really hope, someone has a working solution for me My nervs are already blank…
Thanks in advance!!!