# Presence sensor smartapp

**URL:** <https://community.smartthings.com/t/presence-sensor-smartapp/42623>\
**Category:** Projects & Stories\
**Created:** [March 18, 2016, 5:24pm UTC](https://community.smartthings.com/t/presence-sensor-smartapp/42623 "2016-03-18T17:24:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mr\_Lucky](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mr_lucky/32/18255_2.png) [@Mr\_Lucky](https://community.smartthings.com/u/Mr_Lucky)\
**Post date:** [March 18, 2016, 5:34pm UTC](https://community.smartthings.com/t/presence-sensor-smartapp/42623/2 "2016-03-18T17:34:09Z")

</div>

This can easily be accomplished with [Rule Machine](https://community.smartthings.com/t/release-rule-machine/28730). If you needs assistance setting up the logic, ask here:

> [@Rule Machine - Get peer assistance here with setting up rules](https://community.smartthings.com/t/rule-machine-get-peer-assistance-here-with-setting-up-rules/29577):
>
> I’m creating this thread as a place to find assistance in programming the logic of the Rule Machine App. @bravenel - I see you doing a lot of updates every day and posting them in the [Release] thread, I figure this will help to keep it clean and not get hijacked… as much… I’ll start! I’ve set up some rules for my front porch lights. I haven’t figured out how to do with any less than “4” separate rules. I’d like to simplify this as much as possible. What I want: Lights come on 20 minutes prior to sunset, go off at 11 pm, and be set to 30% When either my wife or I come home between sunset and 11pm, even if the other is already there, the lights go from 30% to 99% for 10 minutes. After 10 minutes they go back to 30%. If it is after 11 pm and before sunrise, I want the lights t…

---

_[View the full topic](https://community.smartthings.com/t/presence-sensor-smartapp/42623)._
