Stop cover after x seconds

Hello,

I searched a lot but didn’t find anything.
I’ve some covers connected with rfxtrx platform. I also have some groups to link them.

I would like to create a button, and when I push it, it closes a group of cover, but stop after X seconds.
I took a look on template platform associated with scripts but don’t understand exactly how to do it.
Any help?

Thanks for the future help :slight_smile:
Florent

Add a delay between the service call to close the cover and stop the cover.

1 Like

Ok I understand thanks.
Here is my code for others:

 '1587041169768':
  alias: Close_volet_bureau_75
  sequence:
  - data: {}
    entity_id: cover.volet_bureau
    service: cover.close_cover
  - delay: 00:00:14
  - data: {}
    entity_id: cover.volet_bureau
    service: cover.stop_cover

Thanks again for your help.
Have a nice day.
Florent