SmartLighting problem

I’m trying to use my Ring doorbell’s motion sensor to turn on lights when motion is detected. I’ve setup a SmartLighting automation to turn a light on when motion is detected but only between Sunset and Sunrise. This never works. So tonight I decided to try testing it with Live Logging turned on in the IDE. Here’s what I see in the log when I walk in front of the doorbell:

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace timeOk = false

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace timeWindowStop = Tue Apr 26 10:51:00 UTC 2016

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace timeWindowStart = Tue Apr 26 00:01:00 UTC 2016

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace daysOk = true

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace modeOk = true

ba0c9e98-939d-4a87-b27d-695e907b1991 6:32:19 PM: trace motionStopHandler(motion: inactive)

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace timeOk = false

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace timeWindowStop = Tue Apr 26 10:51:00 UTC 2016

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace timeWindowStart = Tue Apr 26 00:01:00 UTC 2016

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace daysOk = true

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace modeOk = true

ba0c9e98-939d-4a87-b27d-695e907b1991 6:31:49 PM: trace triggerHandler(motion: active)

The values for TimeWindowStart and TimeWindowStop seem wrong. I mean, it’s November 2018, not April 2016! So it’s no wonder that TimeOk ends up false (so the event never fires). What in the world is causing the time window values to be set that way?

To verify that this is my problem, I removed the only-between-sunset-and-sunrise condition from the automation and repeated the test. This time the light went on as expected.

So, where do I go from here? Thanks for any insights.

Sunrise/sunset problems are often down to the location of the hub not having been configured (e.g. in the settings of the Classic app). However the wrong month and year seems a bit extreme.

I verified that the location is properly configured in the app.

On the location page in the ide is the time zone right?

Zone is correct but Sunrise and Sunset are wrong. They show as 6:51 am and 8:04 pm. We’re in Florida and current sunset times are between 5 and 6 pm. Odd.

Email or call support. I think they can restart the job that syncs those times.

Will do, thanks Jimmy.

See if you have a smartapp listed in the IDE called weather station. You might be able to manually update it and have it kick off again

@rlcronin I have the same issue with sunset and sunrise times being wrong. I’m on GMT time and this happened when the clocks changed at three end of October. ST are taking a look but I haven’t heard back yet…

I did have that app and it did show the 2016 sunset/sunrise dates and times. After I manually clicked update, the dates and times were replaced with correct values from 2018. So hopefully this will fix the problem. I’ll check tonight after sunset. Thanks!

1 Like

It’s all working now. I wonder how that Weather Station app got stuck like that. I sure hope it doesn’t happen again. Thanks again for all the help!

1 Like