# Timed event app needed

**URL:** <https://community.smartthings.com/t/timed-event-app-needed/25673>\
**Category:** SmartApps & Automations\
**Created:** [October 10, 2015, 5:46pm UTC](https://community.smartthings.com/t/timed-event-app-needed/25673 "2015-10-10T17:46:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![remote2054](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@remote2054](https://community.smartthings.com/u/remote2054)\
**Post date:** [October 10, 2015, 5:46pm UTC](https://community.smartthings.com/t/timed-event-app-needed/25673/1 "2015-10-10T17:46:31Z")

</div>

I need to open and then close a relay (mimolite) every 28 days. Is there an app that can be used to achieve this?

---

<div class="post-metadata">

**Author:** ![bravenel](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/bravenel/32/13223_2.png) [@bravenel](https://community.smartthings.com/u/bravenel)\
**Post date:** [October 10, 2015, 6:06pm UTC](https://community.smartthings.com/t/timed-event-app-needed/25673/2 "2015-10-10T18:06:41Z")

</div>

You will need a small and simple SmartApp to do that; it is doable with one possible gotcha. This app would do something every 28 days, namely open the relay, and then close it again. There are other ways to express the interval as well, e.g., 40320 minutes or 672 hours. The possible gotcha is that ST has a known issue where some scheduled events don’t happen. Were that to bite you, it wouldn’t run the next time, and you wouldn’t know that unless you were actively monitoring it. It’s almost better to use a reminder outside of ST.

The app is simple, so let us know if you want someone to write it for you.

---

<div class="post-metadata">

**Author:** ![remote2054](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@remote2054](https://community.smartthings.com/u/remote2054)\
**Post date:** [October 10, 2015, 9:04pm UTC](https://community.smartthings.com/t/timed-event-app-needed/25673/3 "2015-10-10T21:04:28Z")

</div>

Thanks. I’ll take your advice and manually actuate the relay based on my cellphone calendar notification. But, I’m new to the ST v2 and interested in learning about programing it. I would love to see a simple code examples.
