The only Issue I see with your logic is that if three people are home and one leaves the door locks. Right? For my Piston, I figure if people are home and the door is unlocked that there might be a reason for that. Of course I think that’s just a matter of preference. I could totally see that you want the door to always be locked, so when anyone leaves make sure to lock the door in case they forgot.
Yeah, I even have a piston to say, if the door stays unlocked for 15 minutes without the door contact sensor opening then Lock and then speak through an Echo, “Guys, Remember to Lock the Doors”
In case someone gets locked out, then everyone has there own code to get back in and of course it tells me who.
Also have a Piston(s) to:
Don’t Lock the Door if Door is Open
Lock the Door if Alarm System is Armed
Turn on Porch Light if Door is Unlock during a specified time
Flash All Lights and Turn on Alarm System if a wrong code is entered thrice (Siren if Armed)
If Door Stays Opened too long then Push Notification, "Close “X” Door"
If Door Opens and Closes 3 times within 5 minutes Shut HVAC off until door remains closed for 10 minutes
Case Study - NightlightPro
Demonstrates a handoff of timers between two motion sensors. Some may term this a cascade or a flip. Each motion sensor will change the others timers giving the effect of a cascade from one sensor to the other. This example will demonstrate the use of 2 variables along with switch and case statements.
This piston is useful where you have flying insects that are drawn to light. It will dim the lights down to 10% while the door contact is open, then restore the lights to their original levels. This piston will demonstrate the use of capturing and restoring states of lights.
At least 1 bulb
Before starting, set for expert mode: Settings->ExpertFeatures turn ON Expert Mode