How accurate is the execution time for “runOnce”? For example, I installed the Sunrise/Sunset app to turn on some outdoor lights I have overnight. I noted the sunrise time from the log when I installed the app (7:13am where I am). This morning, I just happened to be around at that time and I noticed the light was still on… so I kept going about my routine and noticed later that they were off. Looking in the logs, I see the off command was sent to the switch at 7:22am.
I know that runOnce() was called with 7:13am as the scheduled execution time from the watching the log when I installed the app. I also know the handler didn’t actually run until 7:22am. Is this expected behavior? Or should I expect to-the-minute (second?) execution?
Of course in this application, a few minutes is not critical, but some might have an application where it was.