Telling the house about day-, evening-, and night mode

What you need to do is set up a set of ‘points’ which determine whether your awake or not.

ie. movement in the bathroom between 12am and 5am may give you one point. Where as turning on the shower may give you 7 points. And turning on the radio give + 4 points Ideally you set as many of these up as possible, as well as setting up items which give negative points for things which would indicate your are not awake. -3 points if your electric blanket is on. etc.

If points > 10 - then its morning.

ie the use of Bayesian Probability. Take lots of input and determine the probability of something being true. While this is used generally to determine whether someone is ‘at home’, the same theory applies to whether someone is ‘awake’