Button / Helper for momentary control of cover buttons

Hello :slight_smile:

I have made my industrial sectional garage door smart by adding an ESP32.
Works great.
So I added the code to my configuration.yaml

cover:
  - platform: template
    covers:
      hallentor_1:
        device_class: garage
        friendly_name: "Hallentor 1"
        value_template: >
          {% if states('binary_sensor.tor1_endschalter_auf') == "on" %}
            open
          {% elif states('binary_sensor.tor1_endschalter_zu') == "on" %}
            closed
          {%- endif -%}
        open_cover:
          service: script.tor2_auf_duplizieren
          data:
            entity_id: switch.garagedoor
        close_cover:
          service: script.tor2_zu_duplizieren
          data:
            entity_id: switch.garagedoor
        stop_cover:
          service: script.tor2_stop_duplizieren
          data:
            entity_id: switch.garagedoor
        icon_template: >
          {% if states('binary_sensor.tor1_endschalter_zu') == "on" %}
            mdi:garage-variant
          {% elif states('binary_sensor.tor1_endschalter_auf') == "on" %}
            mdi:garage-open-variant
          {% else %}
            mdi:garage-alert-variant
          {% endif %}

I could add it as a card to my UI works great.

I would like to add a switch or a button to my UI, if pressed a timer starts and allows control off the UP and DOWN button for like 15 seconds. This should prevent the accidental moving of the door if in any circumstance the phone screen stays on or something happens on my computer.

Any ideas?

Regards
Gin