MainUI rule condition

I have a very short question that I didn’t find the answer to using Google or the forum search.
I created a rule in MainUI. I’m switching on some lights at a specific time, but only if the sun is low enough below the horizon. I’ve got the item and all that, but should I compare the sun’s height with a pure number i.e. “<= -6” or should it refer to the UoM like “<= -6|°”?

What type is the Item? That will tell you the answer. If it’s a Number:Angle you probably need to use a Script Condition and use the units. If it’s just a Number there are not units.

1 Like

As always, best way to find out is to test. The comparison in MainUI is smart enough to only compare the value of the state so just entering “-6” as the value to compare against works.