# Would the TimeAlarms be the best fit?

**URL:** <https://community.particle.io/t/would-the-timealarms-be-the-best-fit/41259>\
**Category:** General\
**Created:** [April 19, 2018, 5:32pm UTC](https://community.particle.io/t/would-the-timealarms-be-the-best-fit/41259 "2018-04-19T17:32:29Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [April 23, 2018, 5:37pm UTC](https://community.particle.io/t/would-the-timealarms-be-the-best-fit/41259/21 "2018-04-23T17:37:14Z")

</div>

In Stop Mode Sleep the pins will keep their state - apart from the wake pin you might select in the `System.sleep()` command.

---

<div class="post-metadata">

**Author:** ![Rex.iLL](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@Rex.iLL](https://community.particle.io/u/Rex.iLL)\
**Post date:** [April 23, 2018, 5:41pm UTC](https://community.particle.io/t/would-the-timealarms-be-the-best-fit/41259/22 "2018-04-23T17:41:04Z")

</div>

Perfect! Then that sounds like a suitable avenue to take! I wanted to play with the `System.sleep()` command anyhow to implement a battery backup “mode” which would put the system into a state of sleep when ever the switch to battery power is made in the event of a power outage.

[Previous page](https://community.particle.io/t/would-the-timealarms-be-the-best-fit/41259.md?page=1)
