The problem
If you have a frequently started timer active and you perform a reboot, when the system comes back up the timer when started again (while active) will do so, but minus the downtime.
Example, create a timer called "timer.test_timer" with the restore option ticked and duration 00:30:00
In an automation have a test boolean that when toggled on will timer:start the timer.test_timer as its action.
Each time it's toggled on the timer will restart from 00:30:00
Now let the timer count down to say 00:25:00 and shut down Home Assistant for 5 minutes.
When HA restarts the counter resumes from the lower time.
All good so far.
But now when you toggle the test boolean, it no longer restarts with the default time as set in the helper.
Instead it will keep restarting with the time that was remaining at start-up.
When the timer is cancelled or finished then timer:start resumes back to the correct default time
What version of Home Assistant Core has the issue?
2022.12.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Timer
Link to integration documentation on our website
https://www.home-assistant.io/integrations/timer
Diagnostics information
No response
Example YAML snippet
# Example configuration.yaml entry
timer:
test_timer:
duration: "00:30:00"
restore: true
# Example automation.yaml entry
alias: HA Timer Restart Test
description: ""
mode: single
trigger:
- platform: state
entity_id:
- input_boolean.test_toggle
to: "on"
id: toggle-on
condition: []
action:
- if:
- condition: trigger
id: toggle-on
then:
- service: timer.start
data: {}
target:
entity_id: timer.test_timer
Anything in the logs that might be useful for us?
No response
Additional information
No response
The problem
If you have a frequently started timer active and you perform a reboot, when the system comes back up the timer when started again (while active) will do so, but minus the downtime.
Example, create a timer called "timer.test_timer" with the restore option ticked and duration 00:30:00
In an automation have a test boolean that when toggled on will timer:start the timer.test_timer as its action.
Each time it's toggled on the timer will restart from 00:30:00
Now let the timer count down to say 00:25:00 and shut down Home Assistant for 5 minutes.
When HA restarts the counter resumes from the lower time.
All good so far.
But now when you toggle the test boolean, it no longer restarts with the default time as set in the helper.
Instead it will keep restarting with the time that was remaining at start-up.
When the timer is cancelled or finished then timer:start resumes back to the correct default time
What version of Home Assistant Core has the issue?
2022.12.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Timer
Link to integration documentation on our website
https://www.home-assistant.io/integrations/timer
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response