This solution provides timer functionality that can trigger routines in SmartThings. Currently there is not a permanent /periodic timer functionality There is no code on this since SmartThings side leverages their UX to create rules. SharpTools export codes as photos.
SmartThings allows the user to trigger routines for different reasons. A certain time of day for example. There is no trigger for "Do X every 10 minutes". This solves that The steps:
- Install vEdge Creator on SmartThings https://community.smartthings.com/t/st-edge-vedge-creator-a-virtual-device-generator-for-end-users/231786 (See instructions there)
- Create a virtual Switch (See instructions there) and call it (for example "Timer 5min")
- Create a Routine called Reset 5min Timer
- Create a Routine called Switch Timer 1
- Create a Routine called Switch Timer 2
- Create an account on sharptools.io and link it to your smartthings
- Create a Rule called Timer 5min
- Create a Rule called SmartThings 5m Timer Checkin
When you trigger the switch will turn on / off every 5 minutes. There additional steps are there to account for ocassionally the trigger to stop for example a power outage or a race condition:
- The routine Reset 5min timer will kick off once a day
- More so sharptools has a 5 min timer on its end and will be monitoring if smartthings is updating its timer. If its not, it will restart the timer on smartthings remotely. Sharoptools on its side also has a trigger to re-start its own timmer if it stops