New to EE, sorry to say I could use some help here.
Pretty straight forward use case
Mode Evening/Sleep (I've tried both on and off for Mode restriction)
If any contact sensors are open, turn on switch
Turn off when all contact sensors are closed
Take a look at my EE cog below that does something almost exactly like that, but I use a between times condition rather than mode.
You don't need to tell the cog to "Turn off" the light when the contacts are closed - the cog does that automatically when you use the built-in "Reverse actions" option.
Set your cog up like mine, don't set anything "...as a Restriction." Obviously, use Mode as your Time/Days/Mode condition.
I used a dimmer and set color, but you're not doing that so don't do anything else w/lights. The "Reverse actions when conditions are no longer true" setting will turn off the lights when you contact sensors are closed.
I created a similar rule using a couple modes, the light comes on w/the mode changes from Day to Evening, does not turn off when mode changes away from Evening to Day.
LOL - last night my wife said something along the same lines.
It was weird, we had a door open and it didn't turn on at all. Then I closed that door and unlocked and opened the front door and the light turned on. Then shut and locked the front door and it would not go out. I am starting to think that I've somehow offended the piano light...
my favorite.. hard to get in the usa or if you can too prohibited price wise due to the nice new/old? presidents 30% tarrif.. For those wanting the new wyze cameras in europe ill buy some and trade packages for the whiseky. lol