Hello together,
I have created an input_value which will be daily at 23:59 be filled with the current value of the day.
My goal is to have a sensor with the sum of the last 7 days to steer my irrigation system.
My code looks like the following:
sensor:
- platform: statistics
unique_id: niederschlag_letzte_7_tage_in_mm
name: "Niederschlag letzte 7 Tage in mm"
entity_id: input_number.niederschlag_gestern_in_mm
state_characteristic: sum
max_age:
days: 7
sampling_size: 7
Within the last week there was only one day with rain:
But the sensor shows the following:
What am I doing wrong?
I have also the feeling that after home assistant reboot the value is changing …
Thank you!