Timer / Countdown in einem Button

Hallo - ich habe mir eine Heizungskarte gebaut, und dort ist auch Boost Button. Dieser startet ein Skript und ändert sein aussehen. Nachdem der Boost durchgelaufen ist, wird der Button für eine Zeit gesperrt. Diese Zeit wird in einen Helfer definiert.

Nun würde ich die Zeit gerne als CountDown anzeigen lassen statt dem Wort “Boost Lock”

Hier mal mein Code des Buttons:

type: custom:button-card
name: Boost (30m)
icon: mdi:fire
entity: script.boost_wohnzimmer_30min
tap_action:
  action: |
    [[[
      if (states['script.boost_wohnzimmer_30min'].state === 'on') return 'none';
      if (states['timer.wohnzimmer_boost_cooldown'].state === 'active') return 'none';
      return 'call-service';
    ]]]
  service: script.boost_wohnzimmer_30min
styles:
  icon:
    - color: '#d32f2f'
  card:
    - background: rgba(211, 47, 47, 0.12)
state:
  - value: 'on'
    name: Boost aktiv
    styles:
      card:
        - background: rgba(211, 47, 47, 0.35)
        - border: 1px solid
        - opacity: 0.8
      icon:
        - color: '#ff1744'
        - animation: blink 2s ease infinite
  - operator: template
    value: |
      [[[
        return states['timer.wohnzimmer_boost_cooldown'].state === 'active';
      ]]]
    name: Boost Lock
    styles:
      card:
        - background: rgba(97, 97, 97, 0.10)
        - opacity: 0.5
        - cursor: not-allowed
      icon:
        - color: '#616161'
        - animation: none

Ich habe schon einiges probiert - aber dann steht nur der Wert des Helfers, aber kein Countdown. Habt Ihr eine Idee??

Sry, nur ein schnell erzeugtes Beispiel in welche Richtung Du Deinen Boost Lock anpassen könntest

type: custom:button-card
entity: timer.draussen_wasserstopp_timer
icon: mdi:timer-outline
update_timer: 1000
name: |
  [[[
    const timer = states['timer.draussen_wasserstopp_timer'];

    if (timer?.state !== 'active' || !timer.attributes.finishes_at)
      return 'Wasserstopp bereit';

    const end = new Date(timer.attributes.finishes_at).getTime();
    const remaining = Math.max(0, Math.ceil((end - Date.now()) / 1000));

    const minutes = Math.floor(remaining / 60);
    const seconds = remaining % 60;

    return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;
  ]]]
tap_action:
  action: more-info