I have the rule shown below that turns lights on when it’s getting dark and off when its getting light. I know I could use a Dawn to Dusk timer but on a stormy morning the lights turn off way too early.
Here is the rule.
Basically If Illuminance is low turn on the lights, Else turn them off.
What actually happens is that it’s ALWAYS the Then branch (as confirmed by E-Mails) that executes turning the lights On, never Off, regardless of the actual reported Illuminance level.
@Gary_Milne, the Flow ( IF_Condition, Then, and Else part) is correct, but the rule never got triggered unless the illuminance is changed to “less than and equal to 50”, and that’s why it always goes to the Then path. In your case, you can change your trigger to “greater than and equal to 0”, so every illuminance change event will trigger this rule, and based on your IF_Condition (<= 50 or not), it will turn on or off the lights accordingly.
I should have explained that I had previously changed those values (in both locations) from 50 to 5,000 when the illuminance reading was 2,500 and got the same result. the Then branch executed and not the Else branch. Also, every morning when I wake up, my outside lights remain on which is why I was investigating the rule in the first place.
But I can tell you are sceptical so I edited the rule as shown below.
We are still looking into it in our local development environment. We believe certain numeric conversions aren’t occurring as expected in some cases - which may be why it hit the else branch for you depending on what the reported value was.