I have had this front of mind when I have setup my lighting rules, whether it was on my Hue bridge where there was only motion sensors, or on “any other hub…” where both contact and motion sensors were on offer. When I say that I mean the concept of edge cases has always been front of mind, and the tendency to think of neat sequences of triggers that would indicate presence or lack of it, but could easily be trumped in those edge cases.
While I don’t necessarily have a significantly irregular sleep situation myself, I don’t keep a particularly consistent sleep pattern, so have typically baulked at set times for mode / lighting changes, etc. I prefer various manual options for changing mode / lighting, whether they be physical smart switches (Samsung Buttons), dashboard tiles or voice activated changes.
That deals with irregularities at a home level. Individuals and their own sleeping habits relative to the rest of the house I have always intended to manage through individual room-based toggles for things like motion lighting. I already have it in place when I choose to manually control lighting in a room, turning off motion lighting rules because I have chosen to manually take control. I expect I will make use of the same controls (switches) in my rules if I want to implement something similar, such as when I have guests staying the night who would prefer to have motion lighting turned off.
In the situation that I have had in mind, and I think translates to what you described, I intended to have a virtual mode switch for the living space as well as separate switches for each bedroom, representing the “mode” for each space. If any bedroom “woke up” then the living space also woke up, but other bedrooms don’t necessarily to wake up. I intend to install smart switches in each bedroom, currently Samsung Buttons. If the main bedroom (my bedroom) does a long press on the Button, then the whole house wakes up (sorry, my house, my rules ). If any other guest bedroom does the same, just their bedroom and the living space wakes up. If the button in the living space is long-pressed, all the bedrooms are woken up. Essentially I intend to remove most of the smarts.
I can provide more details here or point you to “other forums” where I have outlined my motion lighting overrides.