Hi, i try to automate a socket but i don’t succeed, what i want is that socket to turn off at each 20 minutes and have a delay of 20 seconds till turn on. After that i want that this automation to run again in loop.
For future reference, when you ask people to correct your automation, post the automation that represents the requirements you described and not something else.
The documentation for the Time Pattern Trigger includes an example of how to make it repeat every X minutes. Here’s the relevant example:
trigger:
- platform: time_pattern
# You can also match on interval. This will match every 5 minutes
minutes: "/5"
That’s why rossk suggested you change it to '/20' in order to repeat every 20 minutes.