Hi @Dark,
If you search this forum, you’ll find several answers, like this one: How to create the coding of closing and opening a door on repeat?
Hope that helps! Let me know if you have any further questions.
Geoff @ TechLeap
PS: please mark this post as the Solution if it resolves your issue.