Google introduced a new one script editor with improved automation control for At home users. This means users can now use a scripting tool to create more advanced automation for their smart home devices.
The script editor provides users with nearly 100 assumptions and actions to help them come up with ideas for their automation. For example, Google gives an example of custom automation where a specific song plays when a designated sensor detects motion or the lights turn on when you get home at a specific time. However, users need basic programming skills to use this editor as it uses the YAML data serialization language for configuration files.
While YAML is typically used for configuration files, it can be used as a scripting language for defining conditions and actions for smart devices in your home.
How to create a script for Google home devices
To create automation, you need three main components: launchers, conditions, and actions. A starter activates the automation, such as turning on the TV. Conditions are requirements that must be met before the automation can run, for example between sunset and sunrise. Finally, actions specify which devices are activated, such as lowering the blinds and turning off the lights.
You can access the script editor through a preview build of the Google Home app or on the web. It comes with several examples of scripted automation, and Google has provided a detailed guide to get you started.
To opt in to the Preview, go to the Google Home app settings menu and choose the Public Preview option. After you’ve been accepted, you’ll receive a notification and see a flask icon.
The script editor can be used with Google Home and third-party smart home devices, and is compatible with popular sensors, including Matter-supported ones.
FacebookTwitterLinkedIn
end of article