I have a very simple rule to turn off a virtual switch that indicates when we are sleeping. It's been failing some days for the past few weeks. I have recreated the rule, deleting the old one and creating a new one from scratch, but the problem still happens from time to time.
As you can see in the screenshot, for some reason the wait trigger shows negative in the logs. You can see that it ran twice in the morning, one failed and the other ran fine. I can't figure out what's happening here. Any ideas?
The contact sensor opened at 7:21:40 then closed at 7:21:45 so it was only open for 5 seconds.
The contact sensor opened at 9:02:39 and at 9:12:39 the stays for 10 minutes was satisfied.
This worked correctly, per the logs.
I might try removing and re-creating this rule to see if that helps. I don't suppose it's possible that your hub time is drastically off (and periodically comes back in line via NTP), as one alternative, far-fetched explanation?
I'm not sure if it will make a difference but if you're going to recreate this rule, try using the Certain Time sunrise instead of Location Event sunrise.
Thanks for the suggestion. I’ve already recreated this rule multiple times and the problem persists. As far as I’m aware, this is the only one with this issue. I’m going to try to use the Certain Time Sunrise.