Hi, I have been living with this for a year now and have decided to ask for help. I have an automation that I set up to turn lights on if luminance is below 200 and then switch the lights off 2 minutes after occupancy is not detected. The lights won’t turn off after 2 minutes. They stay on. My config is as follows, any advice is welcome. I am using a Hue sensor through a Zigbee device.
You have two triggers, so why not two automations? Much easier to debug and maintain.
May I ask why you use device triggers? I only ask because more people seem to be doing it lately - is there a blog or YouTube video that recommends it? I’ve never used them myself - are there advantages?
Hi Ben, yes basically, if the lights come on (because lx is below 200) it should switch off after 2 minutes (of no occupancy), but if luminance goes above 200 it won’t switch off after 2 minutes of no occupancy.
That is the problem I am having, it works at night, but during the day when it (luminance) dips below 200 the lights come on when motion is detected, but then it gets brighter outside and the lights won’t switch off after 2 minutes of no occupancy detected because luminance is above 200.
I would have thought that the OR condition was not like an AND condition.
The ‘OR’ doesn’t even do anything there; it’s for having multiple conditions where you only need one of them to be true. In your case, you only have the one.
So basically what you are saying is that the condition must be met before it can trigger the action right? But if I have 2 or more conditions with an OR in there, then either one of that one must be validated before the action is actioned. Is that right?