Setting Modes based on Time/Presence

Here is what I did. (Rule in the linked thread)