Button card toggle automation

Hello,

I’m new to HA and have a problem that I can’t solve.

I created a button card for the purpose to cancel alarms.
If I tab the card it toggles from off to on. Now I want for it to toggle back to off automatically after 60 seconds.
How can I realise that.

Any help would be greatly appreciated.

Thanks Boris

Hello,
I’m pretty new as well, so take this advice with a grain of salt, but I’d ty creating a new automation that triggers when the state of your toggle is on for 1 minute, then have it switch the state back to off.

Good luck…

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - {your-entity-here}
    to: "on"
    for: 
      hours: 0
      minutes: 1
      seconds: 0
condition: []
action: []