Timer: component not working as described

My expectation is that once started, if started again before it times out, a timer would restart from the default value, as per the description from the docs:

Starts or restarts a timer with the provided duration. If no duration is given, it will either restart with its initial value, or continue a paused timer with the remaining duration.

I set a test timer as below, and whilst a press of the ‘doorbell’ starts the timer, a second press does not restart it from it’s default value, and it times out.

timer:
    test_timer:
      name: 'Test Timer'
      duration: '00:00:30'

- alias: 'Test timer reset'
  trigger:
    - platform: state
      entity_id: binary_sensor.doorbell
      from: 'off'
      to: 'on'
  action:
    - service: timer.start
      entity_id: timer.test_timer

Am I misunderstanding this or does a timer not do as described?

I’ve finally gotten to the bottom of this.

When a timer is first started, the sensor shows as below:

Screen2018-12-05_08-04-05_pm

However, if the timer is called again before timing out, the remaining time does not update to the preset value and once the first call is made and the preset time is reached the sensor shows as below and the time decrements, as if the timer has finished, which it has not:

Screen2018-12-05_08-02-36_pm

It will stay this way until HA is restarted or automations are reloaded.

In all other respects, the timers work as described.

The code in my first post will reproduce this.

How do I report this bug for fixing?

1 Like

write up an issue on github. Also, you need to identify which UI you are using.

1 Like

Thanks for the info.

Looks like it’s already been reported a couple of times.