Don't close window shutters when door is still open

Hello,

I am looking for help to create a scene, which closes the window shutters 2hs after sunset but not when the terrace door is still open, i.e. we are still outside enjoying the evening on the terrace.

The Vera UI provides the opportunity to add a logical and for two triggers via the iOS app interface but it only considers the door sensor status transitions and not the status conditions as such.

Any help is appreciated!

P.S.: I am not a programmer and have no clue about LUUP…

Best regards
Stefan

I would suggest trying PLEG, which allows pretty elaborate logic.

Another option is to use a combination switch. If 2 hours after sunset, it sets one of the switches, and if the door is closed, it sets the other switch. When both are set, a scene can be triggered by the combination switch to close the shutters.