SmartThings Community

Need help with motion sensor light setup (resolved)


#1

I have a need for a light scene where some lights are turned on and dimmed when manually turned on. The problem I am running into is my motion sensors, which normally turn on/off these lights, turn off the lights when my scene is active. How do I separate the motion sensors and have them ignore motion while the scene is active? I’ll lay out my routines below:

Morning - Mode: Home; Motion sensors actively turn on lights when LUX threshold is met expect when mode is AWAY; Sets Alarm to Disarmed
Home - Mode: Home;Motion sensors actively turn on lights when LUX threshold is met expect when mode is Away
Away - Mode: Away;
Evening - Mode: Night; Motion sensors actively turn on lights when LUX threshold is met expect when mode is Away
Night - Mode: Night; Motion sensors actively turn on lights when LUX threshold is met expect when mode is Away; Sets Alarm to Armed (home)
Entertaining - Mode: Home; Sets light scene

I want my motion lights to only be active when the LUX threshold is met anytime throughout the day but never when mode is Away. I also don’t want the lights to go off when my light scene is active.

Any suggestions on how to configure this? I am having trouble getting the logic applied to the configuration options.

Edit: Was able to spend some time learning about CoRE and it’s flexibility allowed me to accomplish my goal. Thanks for all the advice!


#2

There are multiple ways to do this, but at this point the most straightforward is core. :sunglasses: It should be able to do everything you want:


(Brian Salyer) #3

I use CoRE like JD said and create a variable that if the switch is manually toggled, it sets a variable to then not turn my lights on with motion, but if motion turns the lights on, the bailable does not change and the lights go off 5 minutes after no motion. It think something like this can be tweaked for what you want.


#4

Great info! I have heard about CoRE when I first started with ST but the configuration wasn’t something I wanted to tackle as a novice. I guess it’s time to start expanding my horizons! Thanks again for the direction.


(Realy Living Dream) #5

Only if below lux level & only during certain modes are both in the more options settings in standard Smartlighting app.
The only hiccup I see is your entertainment light setting unless you made that an actual mode in SHM


#6

I just begun digging into this with CoRE. I’ve got a IF THEN ELSE statement working for motion and light but can seem to find the correct condition for “manually toggled” anywhere. Any ideas?


#7

Most of the core experts hang out in the following thread. They’ll be glad to help. Just add your question to the end of the thread and someone will help you. :sunglasses:


(Brian Salyer) #8

There is a switch attribute.


(David Hamilton) #9

Yea, use Core for the motion rules and restrict implementation with the modes you already have set up for your routines.