When ever I create a Rule and use a delay between actions, the actions after the delay are not executed. The Rule stops after the delay.
For example, even when I create a simple rule such as,
Turn on Light 1
Delay 5 seconds
Turn on Light 2
Light 1 will come on. However, Light 2 will not turn on. When I look at the logs the rule just stops after the delay. If I remove the delay, then both lights will turn on.
Please help. I have been using delays in my rules without issue for years. During the past month or so delays stop my rules.
It would be helpful to see a screenshot of the rule's entire build.
Turn on logging for the rule and capture the logs too to share here. The build and logging screenshots will hopefully have helpful clues for folks here to diagnose.
Is all logging turned on for the rule (Events, Triggers, and Actions)?
Can you please show a full screenshot of the saved rule build that includes the Reqd Experession (if applicable), Triggers, Conditions, and Actions sections?
Did you hit the "Update Rule" and "Done" buttons to fully save the rule build?
Is this the only app/rule where you are having problems? (It certainly should work...)
And in any case: any errors in Logs (or likely Past Logs at this point) that would indicate something about a stuck/hung job in the scheduler? You'd need to know which app or device (and it's probably not this one), but it could be fixed if that's the case. Something like this:
I have the same issue with any rule that I use a Delay.
This particular rule is a simple rule I just created to highlight the problem in a simple way.
I have stopped all other rules and tried to run this rule on it's own however it still stops after the delay. Not sure how to check if something is stuck in a scheduler?
I have seen hubs bogged down with LAN/Cloud integrations that had offline devices with similar symptoms, anything with a delay would never run. It usually would be evident by errors in the logs from failed connection attempts.
You will need to review your logs/past logs as I suggested above.
The fact that this is happening with every app strongly suggests this kind of problem. The key is figuring out which app or driver so you can delete the job.
This sounds to me like your system clock / scheduler is messed up. I will investigate what steps might fix that. Check on the Settings / Hub Details page that your location, zip code, time zone and clock are set properly.