How do I setup loop for smart actions
How do I set up a smart action on a Tapo Smart Plug to turn on for 1 hour, then turn off for 7 minutes, and repeat indefinitely?
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
Hi @Makarov,
The Tapo automation does not allow loops to be programmed.
However, one way to do this is to create an automation which triggers at any of the following times... midnight, 1:07am, 2:14am, 3:27am, etc.
Then include the following actions:
- turn on the smart plug
- Delay 1 hour
- turn off the smart plug
Not perfect as you will have some spare minutes left over as a day is not an exact multiple of 67 mins.
If this is good enough then feel free to let me know if you need more detailed instructions....
Also, I'm not sure how many triggers you can add to a single automation. If you can't add them all then you may need to add 2 cycles of the actions with a 7 minute delay in between.
- Copy Link
- Report Inappropriate Content
Rbuck wrote
Hi @Makarov,
The Tapo automation does not allow loops to be programmed.
However, one way to do this is to create an automation which triggers at any of the following times... midnight, 1:07am, 2:14am, 3:27am, etc.
Then include the following actions:
- turn on the smart plug
- Delay 1 hour
- turn off the smart plug
Not perfect as you will have some spare minutes left over as a day is not an exact multiple of 67 mins.
If this is good enough then feel free to let me know if you need more detailed instructions....
Also, I'm not sure how many triggers you can add to a single automation. If you can't add them all then you may need to add 2 cycles of the actions with a 7 minute delay in between.
@Makarov The above suggestion can be a workaround for your needs. Up to 64 actions can be added in one automation.
- Copy Link
- Report Inappropriate Content
@Rbuck Thank you very much! However, I wonder if there are other ways to make it loop automatically, for example by creating two smart actions or something similar. Otherwise, I have to set up the times to switch repeatedly over 60 times, which takes a lot of time and doesn't really feel like smart automation.Thank you very much! However, I wonder if there are other ways to make it loop automatically, for example by creating two smart actions or something similar. Otherwise, I have to set up the times to switch repeatedly over 60 times, which takes a lot of time and doesn't really feel like smart automation.
- Copy Link
- Report Inappropriate Content
Hi @Makarov,
I expect that creating loops has been deliberately blocked by the Tapo developers. There is a very good reason for this as if you create a loop without any delays then it would run at exceptional speed and cause performance problems on Tapo servers and devices.
Just as an aside, I tried to get around the "block" by creating one automation in Google home which triggers an automation in Tapo which then triggers the Google one again. A loop across 2 ecosystems to do what you have asked, but unfortunately it was also blocked. The Tapo app was smart enough to understand what I was trying to do and did not trigger the tapo automation from the Google one. Well done to them I guess...
In regards to the work around, you only need to create it once with the 21 triggers and 3 actions, (of course that will leave one cycle of less than 67 minutes each day). If you want a perfect ongoing cycle then that is difficult as by my quick excel calculation a 67 minute cycle only repeats every 67 days...
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 117
Replies: 4
Voters 0
No one has voted for it yet.
