Expanding on Google Home’s recent redesign, Google has begun offering users a way to build custom automations for their smart homes.
This means you’ll be able to create very specific instructions for your smart home devices, according to a recent Google Nest Community post. For example, someone can instruct Google Home to activate their Roomba and have it begin vacuuming the moment everyone has left home or flash the house’s lights whenever a smoke alarm is active. Things can even get complex as users will be able to string multiple gadgets together to work on a single schedule. Most importantly, automations will work across “Google Home and [third-party] smart home devices,… include many Matter-supported sensors.”
So you may be wondering, what’s the catch? Well, you’ll need a bit of programming experience because creating automations requires you to use Google’s newly available script editor.
How it works
Programming automations doesn’t appear to be all that difficult. Google has made things pretty simple. Each automation requires three things: a starter, the trigger that starts the whole event; a condition, which are the prerequisites that must first be met; and an action, where the devices carry out commands.
Let’s say someone wants to dim the lights and lower the blinds whenever the TV in the living room is turned on after dark. In this example, the starter would be the TV turning on. To meet the condition, the time must be after sunset. Once both are met, the actions activate: the lights go dim and the blinds close.
A full list of supported commands can be found on the Google Home Developer Center – at least it should be there. At the time of this writing, the page is currently down.
Programming help
Realizing programming can be tricky for some, Google is providing resources to help people get started. First, the tech giant has published a detailed, yet easy-to-understand step-by-step guide on how to create a scripted automation (the lesson takes about an hour). Or you can simply take one of the ready-to-use sample scripts and then paste it into the editor.
What if you’re still not comfortable with writing your own script but an appropriate one isn’t available in the premade samples? Ask Google Bard. The AI has the ability to write something for you. As a test, we asked Bard if it could create a script that would activate my outdoor camera whenever motion is detected outside my house after sunset. Sure enough, the AI wrote an appropriate script complete with a starter, condition, and action.