Aamir Siddiqui / Android Authority
While customization and remote control are part of the appeal of a smart home, the thing most people tend to be interested in is automation — having their home run itself as much as possible. To that end Google recently launched a preview of a script editor for Google Home.
What is the Google Home script editor?
The Google Home script editor is an addition to the home.google.com web interface, which until now has been reserved for watching Google Nest camera feeds and launching automations created in the Google Home mobile app. It enables automation routines with more complex conditions than those possible within the Home app, including almost 100 starters and actions. Once a script is complete on the web, however, its routine can also be triggered in the app.
The script editor is currently available only to people in the Google Home Public Preview program. Be warned that it’s not designed for casual users — it requires the YAML scripting language and a thorough understanding of how Google Home routines work.
What can you do with the Google Home script editor?
Perhaps the key addition is the ability to tie automations to multiple, very specific starters and other conditions. You could for instance have your living room smart bulbs activate a movie scene when the TV is on, but only between 5 and 10PM, and you might further require that motion sensors detect people in the room.
The editor can also make it easier to trigger multiple actions. To help with cooling, say, you might have shades close, fans turn on, and a thermostat turn down whenever sensors pick up hot indoor temperatures.
On that note, something unique to the script editor is support for Matter-based sensors. Those aren’t yet supported in the Google Home app, despite Google enabling Matter pairing for Android users with compatible Nest speakers or displays. The change should open up more sensor-based starters, including not just motion or temperature activity but brightness levels. Imagine your blinds opening earlier or closing later based on sunlight, for example.
How to access and use the Google Home script editor
![The Google Home script editor on the web The Google Home script editor on the web](https://www.androidauthority.com/wp-content/uploads/2023/06/The-Google-Home-script-editor-on-the-web.jpg)
At the moment, you’ll have to go to home.google.com as a member of the Public Preview program. If you’re not already in the Preview, an easy way to join is opening the Google Home mobile app and going to Settings > Public Preview.
Google says the script editor should also be available directly through the Android app, but it wasn’t showing on a Preview-enabled test device as of this writing.
To use the web-based script editor:
- Select the Automations tab and click on Add new.
- On the right, click the Documentation link to read what you need to get going.
- Start typing in the main pane to write a script. With certain variables like type, clicking on them may bring up a list of prefill options.
- Make sure you fill out the name and description fields under metadata before finishing.
- When the script is complete, hit Save. Use the Validate button to make sure your code is sound.
For further help, including learning YAML, check out Google’s script editor guide.