Little complicated rule for me

as the name suggests i have made a rule that works pretty well. but as the afternoon comes i can get rather bright and warm in the front room. so i have tried to make a rule that closes the curtains and the "checks" if its still too bright in the room, but i cant quite get it to work. previously it would be too bright and close the curtain and pause the main rule for the morning. the morning rule is when lux is above 70 outside open the curtains and close when below 70lux.

im sorry if this is confusing but it half works at the moment and i just want to see if more experienced users can help before i destroy it. at the moment it closed around 14:ooh and then don't open. which is a little annoying.


This is the main rule that opens and closes when morning & evening


This is the rule that i cant get right.

if anyone can help with this? even if it means condensing them to one rule or any help would be great.

Every time the illuminance changes the wait is cancelled.

Waits are automatically cancelled anytime the rule is triggered.

Perhaps add a IF illuminance > 140 in your first rule that will run the second rule's actions. Remove the trigger section from the second rule, the second rule then has no trigger. It will pause the first rule and wait until illuminance drops back below 70 and then resume the first rule.

Also you could get rid of the IF statement in the second rule, as it's only going to get called when the Illuminance is > 140. A timeout on the wait might be a good idea, If for whatever reason your sensor stopped reporting it would resume the other rule.

Another note in your first rule. You can get rid of the IF Illuminance <=70 and just check the mode after the ELSE. It will only be at that statement if illuminance is <70 due to the first IF statement.