Editable Timer counting down when switch is on

Hei Friends,
I’m trying to implement following functionality:

When a button is pressed, there should be a countdown visible in the UI displaying hours, minutes and seconds. When the countdown ends the button shall be reset. The countdown (hours, minues, seconds) should be editable via UI.

I have no glue how to realize this.

Can anyone help me?

Regards Manuel

Hi,

This can be done with a Timer:

https://www.home-assistant.io/integrations/timer/

See the examples at the end of the timer documentation. They should fit your need.

The created timer can be displayed in the UI in an entities card where it presents itself as a nice countdown timer.