Light automation after sunset and presence sensors

Hi, I’ve been trying to figure out how to work on my use case with existing modes and routines, but it’s convoluted and not very flexible (or I’m just not using it right). Maybe someone can point me in the right direction.

I have some outdoor lights that I want to turn on automatically after sunset only if any of presence sensors (cellphone) show as away, so that if either my wife, or myself, or both of us are not home, designated lights turn on after dark.

This is helpful if one, or both of us are coming home after sunset, or if both of us are home, but then one of us leaves to say, get dinner after sunset.

Thank you!

If you have a mode for everyone home vs. some people home, you could do it with Smart Lighting

control light X
Turn on
At sunset
Only when mode is “some people home”

I don’t know if that’s something you are interested in doing, but an easy setup for the lights if the mode is there

Thanks for the suggestion. I thought of doing that too, but the problem is that even with a custom “some people away” mode, the app only allows to trigger the mode if “Everyone Leaves”. There isn’t a “Someone Leaves” option.

What about a routine that automatically runs when Everybody Leaves where everybody is defined just as PersonA and then another routine for PersonB? That could set the mode, then use the lighting. Unless I’m missing something because I’m tired, which is entirely possible :sleepy:

It is an everybody, but there’s still a multiselect. For example, I go to Away mode when my phone leaves, but my luggage presence sensor is still at home.

1 Like

A safer and more effencient way of doing this would be to turn the light on, on arrival when in night mode. Smart lighting can handle the presence based lighting and a routine can handle switching from day/night modes based on sunrise/sunset. You’ld have the extra bonus of the light only being on when you need it, instead of the entire time that someone is gone.

With all that being said, if what you posted is exactly the behavior you want, you can always write a smartapp to do exactly that. You may also want to check out one of the rule builders, they MIGHT be able to accomplish what you want.
https://community.smartthings.com/search?q=Rule%20builder

1 Like

Ah thank you! The rule builder allowed me to do what I wanted to do. I thought of writing my own smart app, but I have no coding experience and reading through the documentation, I realized I won’t be able to write what I want anytime soon. Thanks again!