I have solved this by two switches by the bed. One of me and one for te he wife. We push it when we go to bed. To tell homey that we are sleeping.
Then I have special scenes for the hole house, if both are awake, if just one is a sleep. If both is asleep. If one is asleep and one is away etc.
If we forget to push it homey assumes we are asleep by 02:00 a lock on weekends and 00:00 weekdays.
We have another switch for waking up. So same applies in the morning