Skip to content

Housemode

CJ edited this page Apr 2, 2023 · 5 revisions

This flow represents the "mode" or period of the day in which to operate. This is partially time-based, but for the sleep and morning modes, while time limited, driven by certain actions in the house.

Morning is time limited to prevent accidental trigger in the middle of the night. Morning will turn on some kitchen lights when triggered, if the sun is still low, or its a gloomy day (not sunny and sun less than 25 degrees). The morning mode is 'triggered', either by someone walking into the kitchen after 7am, someone taps their personal button by their bedside, etc. It doesn't have a strict start time and the end time is extended slightly on weekends.

The 'daytime' modes (day, afternoon, evening, and night) are all triggered by a timer that follows the sun.

  • Day is from end of morning (9:30 on weekdays, 10:30 on weekends) until solarnoon
  • Afternoon is solarnoon to sunset
  • Evening is sunset to 21:00 (9:00 PM)
  • Night is 9:00 PM until 11:45 (this time is hard set in the timer, but the mode doesn't change when night ends for housemode

Sleep is also time limited so it isn't activated pre-maturely and doesn't trigger in the morning. Like morning, sleep must also be triggered prior to 2:00am (in case we fall asleep without triggering sleep mode) Sleep mode turns does the thermostat, makes sure the lights are turned off, and silences non-urgent notifications

Housemode

The automations for the different times of day are also in the flow. There are things that will trigger "sleep" mode, such as turning off the master bedroom lights, which come on in the evening so we are not walking into a dark room, when house enters evening mode. The Mode switch triggers different items depending on which House mode is selected.

Housemode2

Morning end shifts on the weekends to be later, and along with that day will start an hour later on weekends. We enjoy sleeping in, so the HVAC system won't kick in too early if morning isn't triggered before day starts. I have been making improvements to this utilizing the repeating an non-repeating outputs of the bigtimer nodes. There are tasks that only run once when the housemode changes, such as the climate mode, and other tasks which are run every minute to ensure the correct behavior is maintained.

Housemode3

Housemode includes the automation for our individual buttons (Shelly Buttons) next to our bedside. These are setup so that we can individual trigger things like sleep from our bed, but also without disturbing the other person (we have individual lights for things like reading). If I push my button, I can activate sleep and turn off my light at the same time, without disturbing the other person who might be reading. The sleep failsafe (2:00am) will make sure any lights left on after we have probably feel asleep get turned off, in case that button or anybody's button is not pressed.

Housemode4