Presence sensor and time based piston help


I’m trying to combine these two actions into one code as in the screenshot below but presence action does not turn off the light and I assume I’m missing something. Later once I have working code in addition to light I would like to include door lock, garage door.
My goal is wheile not at home to make sure doors are locked but while at home keep them unlocked using the presence and after 11:30pm to 6:30am check every 30 minutes if unlocked lock it.


first item…

you have an IF Block within an empty IF Block in the ELSE section so nothing is going to happen. I also see another empty IF Block at the bottom.

second item…

click on the green camera icon above the piston to create an image of the entire piston.

head over to and post there. There are some folks who love to help users build pistons :slight_smile:

Thank you! :slight_smile: