# Multiple schedules for same light

**URL:** <https://community.smartthings.com/t/multiple-schedules-for-same-light/12674>\
**Category:** SmartApps & Automations\
**Created:** [March 12, 2015, 5:18am UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674 "2015-03-12T05:18:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thrash99er](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@thrash99er](https://community.smartthings.com/u/thrash99er)\
**Post date:** [March 12, 2015, 5:18am UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674/1 "2015-03-12T05:18:46Z")

</div>

I was trying to set up multiple schedules for turning on or off a light and I cant seem to do it with how adding the same light twice to my Lights and Switches. Wasn’t this possible before the dashboard with lights and switches?

Can I just install my own version of a smart app to handle this?? Or what?

---

<div class="post-metadata">

**Author:** ![tslagle13](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tslagle13/32/16380_2.png) [@tslagle13](https://community.smartthings.com/u/tslagle13)\
**Post date:** [March 12, 2015, 5:20am UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674/2 "2015-03-12T05:20:35Z")

</div>

> [@\[OBSOLETE\] Lighting Director](http://community.smartthings.com/t/massive-lights-follow-me-app-update/12302):
>
> UPDATE: Version 1.2 released! Hey guys and gals!! I have made some huge improvements to the “Light Follows Me App”. Basically I have created one app that can house 4 “scenes”. This is really cool because I hate having so many apps that I can’t find the one I want so this takes all of my lighting rules and moves it into one app. Each scene is independent of each other and can be triggered my motion. Each scene can be restriceted to run only when a certain lux value is below a customizable level. Then you can have that trigger turn on lights and even dim them to a certain level if you want. After motion stops you can choose to turn the scene off as well. See the code below smile

Enjoy 🙂

---

<div class="post-metadata">

**Author:** ![JDRoberts](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jdroberts/32/56577_2.png) [@JDRoberts](https://community.smartthings.com/u/JDRoberts)\
**Post date:** [March 12, 2015, 5:22am UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674/3 "2015-03-12T05:22:22Z")

</div>

You can do it through the official mobile app with Hello Home Actions. I have the front entry light in many different HHAs.

---

<div class="post-metadata">

**Author:** ![coxkevin](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@coxkevin](https://community.smartthings.com/u/coxkevin)\
**Post date:** [April 5, 2015, 12:34pm UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674/4 "2015-04-05T12:34:07Z")

</div>

Tim, this looks like exactly what I need, but I’m having issues in a couple of areas in my house getting it to work. Heres’s sn example - the liights won’t turn on in the following setup:

Devices  
Linear WD500Z-1 Z-Wave 500-watt Wall Mount Dimmer Switch  
Ecolink Z-Wave PIR Motion Detector, Pet Immune (PIRZWAVE2-ECO)

Mode: Home

Lighting Director Setup  
Slot 6  
Scenario Name: Awake - Basement Front  
Using these motion sensors: Basement Main Motion Detector  
Dim the following: Basement Main Dimmer  
Set dimmers to this level: 60%  
Turn off this scene after motion stops for (minutes): 6  
Only during the following modes: Home, Kids Sleeping

Logs - Basement Main Area Motion  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace setSolutionEvent()  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info SOLUTION\_SUMMARY data: [[icon:indicator-dot-orange, iconColor:#53a7c0, default:true, value:5 motion], [icon:indicator-dot-green, iconColor:#878787, value:3 no motion]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace motionCount: 8, cameraCount: 0  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace activeCount: 5, notActiveCount: 3  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Bedroom Motion states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Driveway Motion states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Foyer states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Master Suite Bedroom states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Family Room states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Stairs Motion states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Main Area Motion states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Master Suite Office states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info SOLUTION\_STATE stateData: [activeCount:1, inactiveCount:0, cameraCount:0, icon:st.motion.motion.active, backgroundColor:#53a7c0]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace setSolutionState()  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace updateSolutionState([Basement Main Motion Detector]) - overrideValue:null  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info switchHandler(Basement Main Motion Detector, motion:active)

Logs - Lighting Director  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:53 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:53 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223

Complete logs during test:  
bbdf2f2a-57fc-4a13-b206-eff031d07f6f 2:03:04 AM: info SOLUTION\_STATE stateData: [activeCount:0, inactiveCount:1, cameraCount:0, icon:st.motion.motion.inactive, backgroundColor:#e8e9eb]  
bbdf2f2a-57fc-4a13-b206-eff031d07f6f 2:03:04 AM: trace setSolutionState()  
bbdf2f2a-57fc-4a13-b206-eff031d07f6f 2:03:04 AM: trace updateSolutionState([Master Suite Office Multisensor]) - overrideValue:null  
bbdf2f2a-57fc-4a13-b206-eff031d07f6f 2:03:04 AM: info switchHandler(Master Suite Office Multisensor, motion:inactive)  
a7e6aac3-6a90-4396-be1f-d4f4e398a4c9 2:03:04 AM: debug Parse returned [[value:inactive, name:motion, descriptionText:Master Suite Office Multisensor motion has stopped, isStateChange:false, displayed:false, linkText:Master Suite Office Multisensor]]  
a7e6aac3-6a90-4396-be1f-d4f4e398a4c9 2:03:04 AM: debug Parse returned [[value:inactive, name:motion, descriptionText:Master Suite Office Multisensor motion has stopped, isStateChange:true, displayed:true, linkText:Master Suite Office Multisensor]]  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:53 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:53 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace setSolutionEvent()  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info SOLUTION\_SUMMARY data: [[icon:indicator-dot-orange, iconColor:#53a7c0, default:true, value:5 motion], [icon:indicator-dot-green, iconColor:#878787, value:3 no motion]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace motionCount: 8, cameraCount: 0  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace activeCount: 5, notActiveCount: 3  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Bedroom Motion states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Driveway Motion states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Foyer states: [[summary:inactive]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Master Suite Bedroom states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Family Room states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Stairs Motion states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Basement Main Area Motion states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: debug Master Suite Office states: [[summary:active]]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info SOLUTION\_STATE stateData: [activeCount:1, inactiveCount:0, cameraCount:0, icon:st.motion.motion.active, backgroundColor:#53a7c0]  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace setSolutionState()  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: trace updateSolutionState([Basement Main Motion Detector]) - overrideValue:null  
fae14ea5-4dc0-4b2d-940a-aad27010657e 2:02:52 AM: info switchHandler(Basement Main Motion Detector, motion:active)  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2184  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223  
5abd24b8-f411-4dc6-9f55-ff62b4d3365a 2:02:52 AM: error java.lang.NullPointerException: Cannot invoke method latestValue() on null object @ line 2223  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: trace setSolutionEvent()  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: info SOLUTION\_SUMMARY data: [[icon:indicator-dot-orange, iconColor:#53a7c0, default:true, value:4 motion], [icon:indicator-dot-green, iconColor:#878787, value:4 no motion]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: trace motionCount: 8, cameraCount: 0  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: trace activeCount: 4, notActiveCount: 4  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Basement Bedroom Motion states: [[summary:inactive]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Driveway Motion states: [[summary:inactive]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Foyer states: [[summary:inactive]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Master Suite Bedroom states: [[summary:active]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Family Room states: [[summary:active]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Basement Stairs Motion states: [[summary:active]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Basement Main Area Motion states: [[summary:inactive]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: debug Master Suite Office states: [[summary:active]]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: info SOLUTION\_STATE stateData: [activeCount:1, inactiveCount:0, cameraCount:0, icon:st.motion.motion.active, backgroundColor:#53a7c0]  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: trace setSolutionState()  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: trace updateSolutionState([Basement Stairs Multisensor]) - overrideValue:null  
081c3744-ab16-4501-a473-16e2b5738a66 2:02:46 AM: info switchHandler(Basement Stairs Multisensor, motion:active)

Have I set up something wrong?

Thanks in advance for your help!!!  
Kevin

---

<div class="post-metadata">

**Author:** ![tslagle13](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/tslagle13/32/16380_2.png) [@tslagle13](https://community.smartthings.com/u/tslagle13)\
**Post date:** [April 5, 2015, 10:00pm UTC](https://community.smartthings.com/t/multiple-schedules-for-same-light/12674/5 "2015-04-05T22:00:43Z")

</div>

Fyi for All. Fix is incoming for this.

Short term solution is add a really high lux value like 20000 to your “scene”
