Hi guys,
I have a few fairly simple SmartApps working well for me but one issue I just can’t seem to figure out.
I have an evening routine SmartApp that does a bunch of things to turn lights off, turns on soft lighting near the bed, and then schedules a job to turn it off in a few minutes. That job never appears to happen.
Here’s the relevant code:
runIn(60, concludeEveningRoutine, [data : [test : 5]])
And it’s defined:
def concludeEveningRoutine(data)
{
log.debug "Evening Routine Concluded"
sendNotificationEvent("Evening Routine Concluded")
softLighting*.off()
}
Here’s the issue:
- Scheduled Job logs show that it did execute
- That log message never gets printed
- Notification event never appears in SmartThings iOS app
- Worst of all, the lights never turn off
Here’s an image showing SmartThings thinks it executed:
But no print statements or logs anywhere, looks like the function never fired.
Been debugging off and on for a few days, tried a bunch of different things. Any ideas?
Thanks in advance,
Matt