It’s several pistons just because it’s easier that way for me.
But essentially several combinations of
If no one is home and the mode/SHM is not one of my away modes - notify me.
If people are home and the mode/SHM is not one of my home modes or still in night mode after a certain time- notify me and/or flash certain lights based off of motion so I don’t trip an alarm.
Once I’m notified - I can hit a routine or two to get things right.