Hi everyone,
I am using the statistics sensor to calculate the change of a value within the past 7 days. However, whenever I restart HA, the sensor only calculates the change from this moment on.
So in the case of the screenshot below, I restarted HA around midnight yesterday. Now, the senor shows β1β (The increase after midnight) and not β3β (The total increase shown on the screenshot).
Does anybody have any idea? Really appreciate all the help I can get
Thank you!
Ths is the codeβ¦
- platform: statistics
name: "LWP last 7 days"
entity_id: sensor.lwp_converted_total
state_characteristic: change
max_age:
days: 7
precision: 1
β¦and this the data it uses: