Help with code

Hey guys.

I would like to know how I can make a code that when pressing the button on the app a relay stays on for certain seconds

Thanks in advance

There’s some good examples here.

And search lambda timer.

@John2324 I have lots of examples in this topic… but this is the particular example I think you are looking for…