timer-bar-card icon indicating copy to clipboard operation
timer-bar-card copied to clipboard

when timer is paused the progress bar keeps counting down

Open vincedarley opened this issue 2 months ago • 0 comments

Describe the bug I have a 10 second timer counting down. I've configured the tap_action to pause the timer (and the hold action to resume). However when I do pause the timer in this way, the UI itself continues - the progress bar goes to the end and once the progress bar has finished, only then does the UI change to say "Paused".

I expect the progress bar to stop right away the timer is paused and not to move until the timer is restarted.

Your card configuration

    card:
      type: custom:timer-bar-card
      entity: timer.doors_locking_in
      name: 🔒 Doors locking in
      bar_height: 8px
      text_width: 3em
      active_state:
        - active
        - paused
      tap_action:
        action: call-service
        service: timer.pause
        service_data:
          entity_id: timer.doors_locking_in
      hold_action:
        action: call-service
        service: timer.start
        service_data:
          entity_id: timer.doors_locking_in
      debug: true

Debug information Please add debug: true to your configuration and either take a screenshot or paste the output here!

During pause:

Image

Still paused, progress bar has finished: Image

vincedarley avatar Oct 03 '25 13:10 vincedarley