Turn on lights if door opened and *all* lights are off?

So I’ve been struggling with this for a while.

I have a rule that will turn on the downstairs hue lights(24 bulbs) when the front door is opened if the current mode is ‘night’. This works fine for the use case that we have turned off the lights and left the house and returned home at night.

However, if we have set custom levels for the lighting in an evening, maybe turned off some of the lights dimmed etc and then the door is opened by someone, this is overridden and all the lights turn on.

What I’d like to do is set up some sort of rule that says only if all the lights are off and the front door is open, switch them on. If one or more light is already on, don’t do anything.

Whats the best way to achieve this?

Thanks in advance!

While I’ve not done this myself, I bet CoRE would do it. I just read another post where a similar use case was asked, and CoRE was used.

1 Like

CoRE would do is simply.

if [selected lights] are all off {
if FrontDoor Opens{
using [selected lights] {
turn on()
}
}
}

Assign the piston to only run in night mode.

2 Likes

Thanks for your suggestion - tried CoRE and it did what I wanted.

Cheers!

1 Like