Issue with Rule Using Sunrise/Sunset

Urgh!!! Same here... the sun is shining outside (for the first time in months!), but all my lamps outside are burning happily... (I'm running hub ver 2.0.9.133)

image

It is 18:54, the sun is setting at 21:20. The first and last conditions cannot both be true...

EDIT: I noticed that my time was between sunset -20 minutes (21:20 - 20 = 21:00) and 21:00. So I thought maybe that's the problem, it's the same time. I then played with the offstes. >20min gives a false. <20min gives a positive (which isn't correct).

EDIT 2: I have deleted the rule. Everything, including the conditions. Reset the Hub. When I add condition "sunset - 20 min" it shows as TRUE. Sunset is not for two hours...

EDIT 3: I've figured it out. Hubitat doesn't like it when I add a condition "between (sunset - x min) and TIME" where TIME is actually before (sunset - x min). I know it sounds ridiculous, making rules like that, but seeing that the sun sets here at 16:00 during the winter and 22:00 in summertime, it would be nice to set these rules at once, so that it's not necessary to change rules with the seasons... (which is what I'm going to try next - add a condition that it must be between dates where its summer/winter :smiley:)

I still love my Hubitat!

image

LAST EDIT: (I'm sorry if I talk too much, this is for future reference for people with the same problem) I have solved it by adding the Illuminance variable.