
Rita El Khoury / Android Authority
TL;DR
- Google Residence’s net script editor is getting a brand new “Assist me script” characteristic.
- The generative AI characteristic creates all of the code for you from scratch whenever you inform it what routine you need.
- It’s at the moment rolling out as an experimental characteristic in Public Preview on Google Residence net.
The Google Residence script editor has been out for just a few months now, however I haven’t dared contact it with a ten-foot pole regardless of my love of sensible residence automations and routines. The extent of my coding skills might be resumed in “I perceive a little bit of HTML” so you possibly can think about that I’ve been reticent to mess with YAML, break my current sensible residence setup, and intrude with current automations from my Philips Hue lights, Tado thermostats, and different sensible residence units.
However throughout its Pixel fall occasion, Google additionally introduced a bunch of latest generative AI capabilities coming to its companies, together with a brand new “Assist me script” characteristic to assist semi-nerdy individuals like me write script code from scratch. That is now starting to roll out and I went hands-on with it.
How one can get “Assist me script” in Google Residence

Rita El Khoury / Android Authority
After a month’s wait, Google says that “Assist me script” is rolling out beginning at the moment, November 7, as a “limited-time experimental characteristic in Public Preview” within the net interface for Google Residence. All of the automations you create with it can nonetheless be accessible within the cell app however as view-only.
To allow it, you must go to residence.google.com in your desktop pc and log in along with your Google account. Click on the blue + Add new button on the underside proper, after which Strive it under the Assist me script column on the best. Learn the phrases and circumstances then click on I agree (and optionally comply with let Google use your interactions to enhance its AI fashions), and also you’re good.
Any longer, every time the script editor is open, the script helper will present up within the rightmost column, able to reply your prompts with all the required code.
Script assist is a superb begin if you happen to don’t know what you’re doing
I’ve had entry to the generative AI script helper in Google Residence for a few days now. In my expertise, it may possibly get you 80% of the way in which to a functioning script, but it surely nonetheless makes errors and messes up easy instructions or system names. In a manner, it’s fairly harking back to Google Bard: the solutions look completely excellent till you actually take a look at them and uncover some apparent cracks. However that is nonetheless an experimental characteristic, so we’ve all already been warned. Simply don’t go in anticipating excellent code and also you’ll be good.
Once I’m away, remind me that I ought to vacuum
The primary command I requested for is one thing I’ve needed to automate for years now. I’ve a Roborock S7 MaxV Extremely vacuum ($1399 at Amazon) that I usually wish to begin after I’m away from residence however I all the time neglect to — like 19-times-out-of-20 neglect. Then I come again residence and I’m irritated on the still-dirty flooring. Since I work at home and don’t have a preset away schedule, scheduling a routine is fairly difficult. Actually, I simply need a notification that jogs my memory, “Hey, you’re away, do you wish to vacuum?” The default Google Residence cell app’s Away routine can’t management something moreover lights — no vacuum, no notification — so scripts it’s.

Rita El Khoury / Android Authority
I instructed the script generator what I needed and it gave me the code instantly. A fast look, although, reveals that it selected the motion of beginning the vacuum (which isn’t one thing I wish to do each time I’m away) as a substitute of sending me a notification to ask if I needed that. I had no concept if the script generator supported notifications, so I reformulated it with a much less complicated notification request and hoped for the perfect.

Rita El Khoury / Android Authority
This time, it received the notification code proper — and seems that’s supported! All I needed to do was edit among the textual content to make it work for me. I renamed the script, clarified the outline, picked the precise notification textual content I needed, and added myself because the recipient of the notification. I examined it out and voilà! Now, every time Google Residence detects that the residence is empty, it’ll floor a notification to remind me about beginning the vacuum. Ideally, I’d need a button that opens the Roborock app so I can choose the mop or vacuum mode (one thing I can’t do with Google Residence), however for now, this solves my massive forgetfulness downside.

Rita El Khoury / Android Authority
The code wasn’t foolproof, but it surely received me 80% there with out me figuring out how one can write the script, which parameters had been required, and even whether or not or not I might ship notifications or increase the house/away performance. I didn’t should learn the documentation to get these components proper. So let’s name it a win.
Activate the ambiance lights after I watch sports activities on my TV
At any time when I open the RMC Sports activities app on my Xiaomi TV, it signifies that I’m watching sports activities — normally soccer (the true one). I would like my Hue Play lights to activate behind the TV and my front room’s Nanoleaf Canvas on as effectively, with the common gentle dimmed out. However once more, since there’s no automation, I usually get lazy and don’t do it. An ideal waste of sensible lights.
Generally, it’s a must to use a number of prompts and piece the code collectively.
It took a little bit of trial and error to get the best code for this automation, but it surely lastly labored. I needed to rephrase my request just a few instances and piece collectively the bits of code it received proper every time (situation, opening the best app on the TV, completely different lights dimmed versus on), however right here’s the consequence.

Rita El Khoury / Android Authority
Watch out for the incorrect instructions and system names
As I used to be testing out completely different scripts and instructions, I got here throughout a number of situations the place the generated code had errors, and ones that Google ought to’ve undoubtedly gotten proper. Whenever you attempt to Validate the code (backside left) earlier than saving it, you’ll see all of the errors and must troubleshoot your manner via them.
Mistaken command codes

Rita El Khoury / Android Authority
On this first occasion above, I requested the script author to put in writing me a command that performs music on a Nest speaker (i.e. subject a Google Assistant “play some music” command) after I activate the lights throughout a selected time interval. It received nearly every part proper, besides the command kind: system.command.OkGoogle. After studying the interminable error pop-up, I spotted the right kind is assistant.command.OkGoogle. Fixing that one phrase fastened the error, however Google ought to’ve recognized the best command.

Rita El Khoury / Android Authority
Mistaken system names and attributes

Rita El Khoury / Android Authority
On this different instance, the script generator gave me an invalid system title. After taking a look at it for some time, I spotted it had doubled up the title of the system: Levoit Levoit Air Air purifier as a substitute of Levoit Air Air purifier. Since Google is aware of my units’ names (as evidenced by the pop-up), it shouldn’t put the incorrect ones within the code it generates.

Rita El Khoury / Android Authority
The identical goes for the air air purifier’s velocity. I’d specified I needed it set to three in my immediate, however the code determined it’ll set it to speed_high, which isn’t supported. The error pop-up instructed me three is a legitimate alternative, so I simply changed it. And ta-da, the automation works!

Rita El Khoury / Android Authority
“Assist me script” is the gateway to Google’s highly effective sensible residence script editor

Rita El Khoury / Android Authority
Look, I’m beneath no phantasm that this script generator is ideal in its present experimental section. A few days of tinkering have already revealed to me a lot of its shortcomings, however I nonetheless think about that as a internet optimistic as a result of I did, certainly, spend a few days tinkering with it.
With out the script generator, I don’t assume I might’ve ever “wasted” hours making an attempt to know how one can write instructions in YAML and studying all of the capabilities of the characteristic. It acted as a wonderful gateway for me to get into script writing and begin discovering all of the highly effective issues I can automate. Options and circumstances which are nowhere close to accessible within the Google Residence cell app’s common Routines all of the sudden turn into an open playground right here.
The script generator is a internet optimistic. I spent hours tinkering with automations I by no means would’ve tried alone.
I now know I can arrange way more highly effective residence and away modes, notifications when issues occur, intricate and/or/not circumstances for every set off, a number of actions with delays, and automations between units from completely different manufacturers that usually don’t converse to one another. That’s way more than I believed was potential, and it’s all a few prompts away.
All Google actually must do is to make it higher and extra foolproof earlier than releasing it to the general public. Not everybody can have the vitality or time to troubleshoot these misguided system names and instructions that ought to’ve been proper from the beginning.