Starter Kits

Google Home Automations: Starter Routines and Script Editor Examples

Open the Google Home app, tap Automations, then Add, and pick a starter, optional conditions and actions. For more advanced logic, Google's YAML script editor lets you write household automations by hand.

A white Google Home speaker, a Google Home Hub smart display and a gray Google Home Mini sitting together on a dark wooden table.
Google speakers and displays like these can run household automations and play their audio. Photo: "Google Home with Home Hub and Home Mini on table" by Y2kcrazyjoker4, CC BY-SA 4.0, via Wikimedia Commons (adapted: placed on a blurred fill of itself).

Google Home automations turn separate speakers, plugs and bulbs into one system. A light at sunset, a bedtime announcement or blinds that close when the TV comes on all use the same building blocks: starters, conditions and actions.

This guide is research-based. We did not set up a test home for it. Every step and example below comes from Google's Help pages and its script editor documentation, listed at the end. Menus change often, but the logic still applies. For the wider picture of speakers, displays, Nest devices and Gemini, start with our Google Home and Nest guide.

What is the difference between a routine and an automation in Google Home?

Google uses both words. Its help page "Create & manage Routines in Google Home" describes Routines as a series of actions for your home devices that help you and your household automate tasks throughout the day. Newer pages call the same thing an automation, and the app's tab is now called Automations.

Google splits them into two types:

Personal RoutineHousehold Routine (automation)
Who creates and edits itOnly youPeople with Admin access or Members with Settings permission
Who can start itOnly youAnyone in the home, including guests, for most routines
Personal results (calendar, reminders, commute)YesNo
Where runs are loggedMy ActivityHome history or Activity feed in the Google Home app
Best forMorning briefings, bedtime voice commandsLights, plugs, thermostats, cameras and announcements for everyone

Google's help page also lists pre-made Personal Routines such as "Good morning", "Bedtime", "I'm home" and "Leaving home", which you can edit or delete. It notes that "I'm home" and "Leaving home" do not use presence sensing; for automations that start when everyone leaves or someone arrives, Google points you to Presence-based automations instead.

How do I create an automation in the Google Home app?

Google's "Manage smart home automations in Google Home" page describes a newer automation editor for household automations. It adds a conditions section with device-state and presence conditions, so an automation can be set to start only if, for example, a certain device is on or someone is home. The steps Google lists are:

  1. Open the Google Home app.
  2. At the top right, tap Add, then Automation.
  3. Tap Add name to name it. You can also tap Add description.
  4. Add the starters, conditions and actions you want.
  5. Tap Save.

Google adds two notes. First, an automation without a starter will not start by itself, but you can still start it manually as long as the conditions are empty too. Second, the new editor only covers household automations; for Personal Routines, you follow the steps on the routines page (Automations, then Add, then Personal). Google also says some starters, such as one based on familiar faces, require a Google Home Premium subscription.

If you need a feature the new editor does not have yet, Google says you can switch back to the previous household editor from the menu while creating an automation. It gives the pulse effect on lights as one example of a feature not yet moved over.

Which starters and actions can I use?

According to Google's routines page, the starters you can choose from include:

  • Voice command: a custom phrase you say to your assistant.
  • Time: a set time on the days you choose.
  • Sunrise or sunset: around sunrise or sunset on chosen days.
  • When an alarm is dismissed: Personal Routines only.
  • When a device does something: for example a light turns on or a motion sensor detects motion (Household Routines).
  • Presence sensing: when everyone is away or someone comes home.
  • Tap to play: start it from the Google Home app or Google Home for web.

The action list on the same page includes adjusting home devices (lights, plugs, switches, thermostats), playing and controlling media, getting info such as weather and calendar events, broadcasting messages, changing the assistant's volume, and custom actions, where you type a command for your voice assistant. Which starters and actions you see depends on the routine type and the devices you have connected.

What are good starter routines to copy?

These come straight from Google's routines help page. Each uses one starter and one or two actions, so problems are easy to spot.

Routine typeStarterActions
Household8:00 PM every dayAnnounce "It's almost bedtime" on your speakers
HouseholdSunset every dayTurn on the porch light and read the weather on a speaker
HouseholdLiving room TV turns onRun a custom command such as "Turn on the amplifier"
HouseholdMotion sensor detects motionTurn on the entrance light
HouseholdNo motion for 10 minutesTurn off the lights
HouseholdDoorbell rings in the eveningTurn on the porch lights at 75% brightness
Personal"Hey Google, good morning"Lights on, weather, calendar events and news
Personal"Hey Google, bedtime"Set an alarm, lights off, play sleep sounds

For seasonal lighting, see our guide to automating holiday lights with schedules and scenes. If a routine starts automatically and includes audio, Google's steps say to choose the device it plays on, such as a display like the one in our Google Nest Hub Max review.

What is the Google Home script editor?

Google's help page "Create advanced home automations with the script editor" says the script editor lets you program household automations with additional starters, conditions, actions and advanced logic. You write them in YAML, a plain-text format of key-value pairs, using two spaces of indentation for each nested level. Google says you can use it in Google Home for web at home.google.com/automations, or in the Google Home app. The same page says that on an iPhone or iPad you can currently view, edit, deactivate and run scripted automations but not create new ones, so Google recommends the web version there. The page describes the script editor as being in Public Preview.

Every script has a metadata block (a name and description) and an automations list. Each automation has starters (when it begins), an optional condition (restrictions checked each time it begins) and actions (what it does). Google's language guide says the starters and actions fields are required, and devices are named in the format "device name - room name", exactly as they appear in your app.

To create one in the app, Google's steps are: tap Automations, tap Add, then Household, open More options and choose Script editor. Write the script, tap Validate (you cannot activate a script with errors), then tap Save. A valid script activates automatically when saved unless you switch Activate off.

Script editor examples from Google

The examples below are taken from Google's "Example scripted automations" developer page. Each table shows the script line by line; when you type it, indent each nested line by two spaces, as on Google's page. Replace the device and room names with your own.

Example 1: dim the lights and close the blinds at 10 PM.

Script lineWhat it does
metadata:Starts the name and description block
name: Nighttime dim lights and close blindsLabel you see in the app
automations:Starts the list of automations
- starters:First automation; its starter list follows
- type: time.scheduleA clock-time starter
at: 22:00Runs at 10 PM
actions:Starts the action list
- type: device.command.BrightnessAbsoluteSets a light's brightness
devices: Light - Living RoomWhich light
brightness: 5050% brightness
- type: device.command.OpenCloseOpens or closes blinds
devices: blinds1 - Living RoomWhich blinds
openPercent: 0Fully closed

Google's comment in this script notes that setting brightness turns the light on, so no separate on command is needed.

Example 2: when the TV turns on after dark, dim the light and lower the blinds. This one shows a condition. The starter is type device.state.OnOff on "TV - Living Room" with state on and is true. Under condition, Google uses type time.between with after SUNSET and before SUNRISE. The actions set "Light - Living Room" to brightness 5 and "Blind - Living Room" to openPercent 0. Without the condition, it would also run at noon.

Example 3: get a notification when a package is delivered. Google's example uses the starter type device.event.PackageDelivered on a front-door camera, and the action type home.command.Notification with a title, a body and a members list of email addresses for the people who should get the alert.

Google's examples page also shows a useful option called suppressFor. In a motion-triggered "open the blinds in the morning" script, it adds suppressFor: 20 hours to the starter so the automation runs on the first motion of the morning and then ignores further motion for 20 hours.

Why isn't my Google Home automation working?

Google's "Troubleshoot Google Home automations" page suggests checking in this order:

  1. Open the Activity tab and look for "Routine started" events. They show when the routine ran, its name and what started it.
  2. Confirm the routine is activated. A paused or inactive routine will not start.
  3. Test each action on its own, from the device tile in the app or with a voice command. Not all custom actions are supported.
  4. For audio actions, check the chosen playback device is not in Do Not Disturb and its volume is up.
  5. If a device is missing from the starters and actions list, check it is in the same home as the routine. If it is, Google says it may not support routines yet.
  6. For scripts, use Validate, check device names and indentation, and remember Google's warning that manufacturer updates can change device traits and break scripts.

Many failures are really a device dropping off the network. For Matter or Thread gear, our guide to fixing Matter devices that keep going offline covers the network side.

Google also states that automations are for convenience only, not safety or security-critical uses, because they depend on internet, Wi-Fi and services from Google and device makers. Do not rely on one for anything that could cause harm if it fails.

FAQ

Do I need a Google Nest speaker or display to use Google Home automations?

Not for every routine. Google lists starting a routine from the Google Home app or Google Home for web as a starter, and many actions control smart devices directly. Voice starters and audio actions such as announcements need an assistant-enabled speaker or display, like the older speaker covered in our Google Nest Home speaker article.

Can I create Google Home automations on an iPhone?

Yes for regular routines and automations. For the script editor, Google says an iPhone or iPad can view, edit, deactivate and run scripted automations, but cannot currently create new ones, so it recommends Google Home for web for that.

Who can create household automations?

Google says only people in the home with Admin access, or Members with Settings permission, can create and manage household automations. Anyone in the home, including guests, can start most Household Routines.

How do I stop a routine without deleting it?

Pause or deactivate it. In the routines editor, turn off Activate Routine and save; in the new editor, select the automation and tap Inactive. Google notes that deleting a routine is permanent.

Do I need to know how to code to use the script editor?

You need the basics of YAML: key-value pairs, two-space indentation and dashes for lists. Google's help page also mentions an experimental generative AI feature in the script editor that drafts a script from a description for you to review and edit.

Sources

Free download

Get the Smart Home Starter Checklist

A one-page PDF to plan your first devices, plus occasional emails when we publish new guides and deal alerts. Unsubscribe any time.

By subscribing you agree to our Privacy Policy.