Presence sensor and time based piston help

Hello,

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.

Thanks!

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.

third…
head over to https://community.webcore.co and post there. There are some folks who love to help users build pistons :slight_smile:

Thank you! :slight_smile: