Routine

On this page 7

A routine is a named sequence of smart home actions that a platform runs automatically when a defined starter or trigger occurs, such as a scheduled time, a spoken phrase, a sensor event or a person arriving home. In home automation, routines are the most common way households turn individual devices into predictable everyday behavior, for example a “Good morning” routine that raises the blinds, turns on the kitchen lights and reads the weather.

The term is used by consumer platforms such as Amazon Alexa, Google Home and Samsung SmartThings, while Apple Home calls the equivalent feature an automation. Compared with a single automation rule, a routine usually emphasizes a multi-step, user-facing sequence that may include delays, announcements and media, not only device states.

How a routine is structured

A routine is structured as starter, optional conditions and an ordered list of actions. The platform listens for the starter, checks whether the conditions are met and then executes the actions in sequence, sometimes with waits between them.

ElementPurposeExamples
StarterDefines when the routine begins7:00 a.m., “Alexa, goodnight”, door opened
ConditionRestricts when it may runOnly on weekdays, only if nobody is home
ActionChanges a device or serviceTurn on lights, set thermostat to 21 degrees Celsius
DelaySpaces actions over timeWait 10 minutes, then turn off the fan
OutputInforms the householdAnnouncement, notification, news briefing
Building blocks of a routine

Where a routine runs matters. Cloud-executed routines are evaluated on the provider’s servers and need an internet connection, while locally executed routines run on a hub or controller in the home. Local execution reduces delay from typically several hundred milliseconds or more to well under that, and it keeps time- and sensor-based routines working during outages.

Types of routine starters

The starter determines how reliable and how natural a routine feels. Time-based starters are the most predictable, while presence-based starters are the most convenient but also the most error-prone.

Starter typeTypical useReliabilityMain weakness
Fixed timeMorning lights, heating scheduleVery highIgnores actual behavior
Sunrise or sunset offsetOutdoor lights, blindsHighIgnores cloudy weather
Voice phraseGoodnight or movie routinesHighRequires speaking
Device eventMotion, door, button pressHigh with local hubsSensor battery or mesh issues
Presence or geofenceArriving or leaving homeMediumPhone location delays
Alarm dismissedWake-up sequenceMediumDepends on phone or speaker
Common starters and their reliability

Combining a starter with a condition often improves reliability. A motion-triggered hallway light becomes more useful when restricted to after sunset, and an arrival routine becomes safer when it requires both a phone geofence and a door event.

Routine compared with scenes and automation rules

Routines are often confused with scenes and automation rules, and platforms do not use these words consistently. The distinction is useful when designing a system, because each concept fits a different job.

ConceptWhat it describesHas a triggerTypical example
Smart home sceneA saved set of device statesNo, activated on demandDinner lighting at 40 percent
Automation ruleA trigger-condition-action logicYesTurn off heating when a window opens
RoutineA sequence of actions with starterYes, often severalMorning sequence with news
Time-based automationActions fired by a scheduleYes, time onlyPorch light at 10 p.m. off
Routine and neighboring concepts

In practice, a routine frequently activates a scene as one of its steps. A “Movie night” routine might apply a lighting scene, lower the blinds, switch the television input and silence notifications, which shows why routines are best understood as orchestration and scenes as snapshots.

Designing effective routines

Effective routines are small, predictable and easy to override. A household accepts automation when it behaves the way people expect; a routine that surprises them is quickly disabled.

  • One purpose per routine: separate “leave home” from “night mode” so that each can be tested and changed alone.
  • Manual override: provide a button or voice phrase that cancels or reverses the routine.
  • Explicit conditions: add day, time and presence conditions instead of relying on a single starter.
  • Local execution for safety: run routines that control heating, locks or alarms on a local hub where possible.
  • Clear naming: use names that describe the effect, such as “Lights off downstairs”.

Testing should cover edge cases: a routine that runs at 7:00 a.m. may behave unexpectedly on holidays, during the daylight saving time change or when a guest is staying. Reviewing the routine’s history log after the first week helps reveal missed or duplicated runs.

Limitations and common failures

Most routine failures come from unreliable inputs or conflicting logic, not from the platform itself. The table below links common symptoms to their causes.

SymptomLikely causeRemedy
Routine runs twiceTwo platforms run the same logicKeep each routine on one platform
Lights flicker on and offTwo routines with opposite actionsAdd conditions or merge the routines
Arrival routine fires latePhone location updates are delayedAdd a door or network presence trigger
Nothing happens during outageCloud-executed routineMove it to a local hub
Wrong time after travelTime zone of the home not setSet the home location and time zone
Troubleshooting routines

A subtle risk is the feedback loop, in which one routine’s action becomes another routine’s starter, for example a light turning on that triggers a routine which turns it off again. Platforms with loop protection stop this, but careful design is still required.

The idea in brief

A routine is a to-do list that the home carries out by itself. The household decides once what should happen and when, and the smart home repeats it every time the moment arrives.

For example, saying “goodnight” can switch off every light, lock the door and lower the heating in one step. The value of a routine is that people stop repeating the same small tasks and the home behaves the same way every day.

A practical scenario

A family with two school-age children sets up a weekday morning routine. At 6:45 a.m. on school days, the routine raises the bedroom blinds halfway, sets the kitchen lights to a cool white at 80 percent and raises the heating from 18 to 21 degrees Celsius. At 7:00 a.m., a smart speaker in the kitchen reads the weather and the bus departure time.

A second routine starts when the front door is locked and both parents’ phones leave the home area after 7:30 a.m. It turns off all lights, switches the heating to 17 degrees Celsius and arms the motion sensors. Over one winter, the family stops forgetting lights in empty rooms, and the heating no longer runs at comfort temperature in an empty house during the school day.