Always says restricted. Deleted and recreated. Same issue. Yes the time is correct. Yes location is correct. It just started doing this after weeks and now I can’t fix it.
This hub is killing me with all these issues…
Is there a better or different way to do this? If you think it only triggers once you’re wrong. every time it evaluates the light level it triggers.
It’s not one and done so the time has to be restricted. It’s sunrise time right now.
Sounds like what you are wanting to do is too complicated for a single simple rule. From the thread below break it out into 2 simple rules and it should work.
It’s a very large picture. Is your phone small? It’s just a simple rule. Luminance goes below 800 and the lights go on. Works great. As soon as I add the restriction of -30 and +30 from sunset it immediately and always says restricted. Time is correct. Localization is correct.
Did you turn on all logging for this rule (and device logs turned on probably would be good idea too), and let the rule run? What do logs show, where does it fail?
And I would say that if you are having a constant triggering from illuminance, that you should consider Rule Machine where you can put in a Predicate to the rule to filter out the triggering better.
Yea, I screwed up, so used to typing sunset to sunrise and not set to set.
But that brings up an interesting question, is is supposed to be sunset to sunset like that? Or maybe that is some bug that you can't use both like that in one rule?
The issue isn’t the rule. It works. The issue is as soon as I add the sunset plus and minus 30 mins it always thinks it’s restricted until way later. The issue is the restriction not being accurate.
If you look at the App Status page (gear icon), in the section called Event Subscriptions, you should see information like this, only with your sensor and hub name (Location):
The answer is - if you edit the rule it breaks and goes restricted until tomorrow. Even a reboot does not fix it. I was trying to guesstimate the lux level and I was changing that value. It’s been fine for days and today I moved it from 800 to 1000 and it’s right back to restricted but I bet it’s ok tomorrow.
Hmmm, I just set up this restriction below, and it's not saying Restricted:
But if I change it to this, it does:
Both of which make sense given the sunset time and current time here.
I'm running on the new beta for 2.3.1, so it's possible that something got fixed here, but I'm not aware of any of this changing since 2.3.0. Hopefully, when you update once 2.3.1 is released it will work right for you.
BTW, it doesn't change whether it says Restricted or not until after Done is hit in the rule.