I have several modes: Home, Home(night), Home(secure), Away, Away(secure), and Vacation.
Home - Myself or my wife is present, it is day time, and we want minimal notifications (ie only for doors left open, leak detections, etc.)
Home(night) - Either myself or my wife is present, it is night time (this time varies based on whether I am home alone, my wife is home alone, or we are both home) and we want a few additional notifications (such as motion in the garage, patio, door opened when it shouldn't be, etc)
Home(secure) - We are home but for whatever reason I want to be notified for absolutely everything. Like full on paranoia mode. This mode must be manually activated. And I really only use it for testing and troubleshooting things if I'm being honest.
Away - We have just left (ie no adults are home) but it's only been a few minutes so we want to be notified if we left a door unlocked or open, garage open, but we don't need to know everything). Also this mode is active if we aren't home but someone we know is. More on that later.
Away(secure) - No adults are home so we want to be notified of anything out of the ordinary (motion inside the house, doors/windows being opened, leaks detected, shed outside has been opened, fridge temperature has risen abnormally, etc)
Vacation - same as "Away(secure)" but has some additional lights and shades automations enabled to make it look like the house is occupied.
In addition to these modes, I have a hub variable which controls some mode settings based on whether a trusted guest (like my parents, my wife's parents, a house sitter, maid) is detected.
Here's how it works:
-variable is called "trusted_guest". Value is integer and initial value is set to 0. If the value changes from any other value back to 0, then all normal mode rules are enforced.
-if a "trusted guest" is detected (by means of Unifi MAC address presence notifier, because they've automatically connected to my wifi), the variable value is set to 1 which either does nothing if the mode is "Home", or notifies us that someone has arrived if any other mode is enabled. A trusted guest is somebody who I've manually added to a list of people to be detected when they connect to my wifi.
-if the trusted_guest variable is set to 2, automatic actions are performed including all interior motion notifications are disabled, door opening notifications are disabled, and so it essentially behaves as if we are in "Home" or "Home(night)" modes, except the mode will show as "Away" or "Vacation" depending on the situation.. The "trusted_guest" variable can only be set to 2 if it the value is already = to 1 (a guest is detected by Hubitat) AND they properly enter a security code on a keypad near the front door. OR, we can manually set the trusted_guest value to 2 by pressing an override button on our dashboard in the case that automatic detection did not properly happen. There are 2 special people who can override it themselves by entering their code 3 times within 30 seconds even if they weren't automatically detected.