Timer remaining time as secondary info for mushroom template card

Hi all, I’m noob at yaml. I want to display a timer running in secondary info of the custom template card in mushroom. It shows static time configured in timer, without countdown seconds.

type: custom:mushroom-template-card
primary: Boiler
secondary: |-
  {% if is_state('switch.boiler', 'on') %}
  {{ state_attr('timer.boiler', 'remaining') }}
  {% else %}
  OFF
  {% endif %}
icon: |-
  {% if is_state('switch.boiler', 'on') %}
  mdi:water-boiler
  {% else %}
  mdi:water-boiler-off
  {% endif %}
entity: switch.boiler
tap_action:
  action: toggle
hold_action:
  action: none
double_tap_action:
  action: none
icon_color: |-
  {% if is_state('switch.boiler', 'on') %}
    red
  {% endif %}
multiline_secondary: true

Is it possible to see time counting down to know how many time left?

I am wondering about this myself.
I know this is displaying the set-time:
{{ state_attr("timer.caffe_maker_countdown", "duration") }}
but I have not found a way to show the current time.

It looks like remaining is not remaining, but equal, to duration

found this: Timers atribute 'remaining' does not get updated · Issue #73752 · home-assistant/core · GitHub

added a feature request: Implement a realtime remaining attributt to "Timer"

3 Likes

Looking exactly for the same solution…

I’ve opened a feature request: