C-8 - 2.3.8.140
Not sure if I found a bug or what's going on.
Trying to schedule some Z wave lights to turn off at sunrise plus 15 minutes
I tried basic and simple rules and it seems like it never scheduled it I'm not sure what's going on.
Whats weird seems to work fine if you used -15
Anybody have any suggestions?
Is this actual behavior you have observed, or are you basing your assumption on scheduled jobs alone? It sounds like the latter, but that alone isn't a problem. Here's why:
Times after sunrise or sunset don't need a scheduled job, as the app can simply subscribe to the event itself and then schedule a job after that (though apps may vary in how they actually do this). Events before sunrise or sunset do, since the event itself won't happen yet; the desired time needs to be calculated and scheduled at some point, possibly when you save the app settings (with "Done") or some time after midnight.
In other words, it's normal for there to be a difference.
PS - You can much more easily see the scheduled jobs for a single app from its app status page -- as well as event subscriptions for the app, which sunrise or sunset may be -- if you don't want to wade through everything from the hub on this Logs tab.
2 Likes
Yes, that is the App Status page.
Ok .. as you can see it shows nothing under Scheduling unlike the other one second picture shows something scheduled or pending but I get nothing under scheduling or pending on the top picture and I assume it's supposed to because I would like it to work
Right, but it sounds like you are asking about positive offsets, which again do not need a "pre-created" scheduled job (i.e., not at the time of rule/app creation and likely not before the event itself). While they can be helpful for troubleshooting with the developer (or if you wrote the app) or making best-guesses yourself, internal app data such as state and scheduled jobs is often not meaningful on its own outside of these contexts.
If you are experiencing a problem with actual execution, enable all logging and post the output of "Logs" for the problematic app, filtered to just that app, as well as a screenshot of the app configuration itself.
1 Like
It's still not clear to me if you are experiencing a problem with execution or are just anticipating a certain outcome based on the app status. I was not able to replicate your problem with this setup:
Logs:
(I changed my location to somewhere in Japan so I could force a sunset event in the next few minutes...in your case, I'd probably wait until morning to see what really happens. )
Going back to an issue/suspicion mentioned in your original post: while the delay between actual sunrise and my positive offset is counting down, there is indeed a scheduled job -- but this is when it gets created (and will only appear during this window) given that it can wait until the actual event and doesn't need to pre-schedule anything like a negative offset does:
If this is not your experience (again after waiting until your next sunrise event), providing the same "Logs" may give clues, as well as checking Settings > Hub Details for correct location (latitude/longitude), time zone, and hub time.
1 Like
Thanks .. execution seems it does not work been a few days and it never turns off lights.
Turns them on Just fine .. but the rule for off does not. ( nothing in logs )
I guess because it never fires so it never creates a log ?
I see in your third picture it does show next run time .. mine does not.
Just did a soft reset and full restore < to see if this helps.
Also Just checked and reset the time and date .. guess we will see if it works in the morning.
( Not going to hold my breath though ) LOL
Did you check between sunrise and sunrise+15? Again, that is the only time you would expect to see the job scheduled in your case (but there should be an event subscription for sunrise itself, which I do see).
You could also try re-creating this rule or redoing it in Basic Rule (among other options), though it certainly should work as is.
Yeah .. I have re-done this with basic and simple rules.
I have two rules (1 ) for ON and ( 1 ) for OFF
However I never tried it with ONE rule.
So I made this rule in simple to try ..
After looking at the logs this morning ..
I forgot I had a different app turning them back on at 6:15am < DOH !
And they're set for sunrise plus 15 which is before 615AM
Anyway my mistake seems to be working and I fixed the other rule.
Should work tomorrow the way I want it.
Thanks @bertabcd1234 for the help !
1 Like