Here is the link to the example scripts: developers.home.google.com/automations/example-scripts Don't forget to Send Feedback when you have issues so they can keep making this better.
I created a couple automations with this today. I have an LED strip around a bathroom mirror. Created an automation that starts with a voice prompt and waits a minute for you to turn the shower water on, turns green for 10 minutes, orange for 3 minutes, red for 2 minutes, and then to white for 5 before turning off. Timer for the kids showers. Second one I made for if the robo-vacuum hasnt run in 3 days, Google home waits between 4p and 7p if my wife or I are home and sends us a notification that we need to run the vacuum. Great video!
Just when I was getting Matter figured out, you throw this one out there. Haha Always something new any more. Thank you for your vids. They are VERY helpful and easily understood.
Fantastic video, as always. I wrote scripts before and it's pretty easy, but your tips made it even easier. Please keep giving tips on the script editor!
Respected sir, Can you please tell me if its possible to do the following automation using script editor : Turn off my smart plug (in which my wall charging adaptor is connected) when charge reaches upto 90% ??? (I own a non-samsung phone, so i cannot use the option of adaptive charging or battery protection feature of oneUI)
Thank you! Google has stepped up their game this year and have made some good improvements in the right direction. I'm confident we will continue to see them make the right improvements.
Interesting. I will check this out. The thing I don’t like when setting up automations is you have to add one item at a time. Back and forth I hope this will eliminate that. Great video. Thanks
@@TechWithBrett after watching this video I wanted to see if Alexa offered anything similar. They don't offer scripting but in their routines section you can start a routine with turning on a switch and associate devices to turn on or off
Thanks for you work and this video! One question: what tipe of smart relay did you use in kitchen hood? I can't find anything which will be compatible with google home and has manual switch and small enough dimensions to fit in hood
I got some recessed lights that have a built in nightlight, to turn on the nightlight you turn the lights on, then off, then on again within 5 seconds. Can you think of a way to automate this, so our nightlights can be turned on at a scheduled time?
Hello and thanks for a really good video. I live in the UK and have many 'Shelly' devices but none of them appear in the script editor 'devices' list! I have linked my Shelly account to google home and can see and use the shelly devices from there but not in script editor. Any ideas?
SOLVED - I have played around using different scripts and have no found that all my shelly devices do appear and have working automation. Thanks again for a great video.
"there you go, no errors". Only because of the magic of editing. You should really have left your errors on show because your errors - will be the most common that other people have to deal with. In this case your repeated failure to add a space after the hyphen. Eg "- type:" not "-type:" 👍
Have better eyes than 99% of people. I had figured out the code, tried to repeat it but couldn't figure out the last error on video in a reasonable amount of time, so I did swap to the working set. The only difference I could see while editing is that things didn't line up the same between the two but nice job finding what caused it.
@@TechWithBrett waaaay to much time with YAML on Home Assistant has taught me to be super vigilant on spacing 😋 (for the future, you should note, it's when you made that error that the editor stopped providing helpful autocomplete options. So in future check what you just wrote when the editor stops being helpful. If you can't see the error go down the validate route to see if it tells you)
@@10pm63the hyphen indicates that this is an item in a list, but YAML is also super picky about indentation. If you have a list item, it should be indented with a 2 spaces from the item above it, and it MUST have a space after the hyphen and before the item in the list. Eg: - type or - entity_id:. Stuff that does not have a hyphen is a dictionary, not a list.
Thanks for setting up this video, Brett! Never thought I would enjoy watching code debugging as much as this! I like the idea of the TWB Community Forum to share Scripting ideas. My setup isn't as complex as yours, but I think the Google Home Script Editor will give me some added flexibility when controlling my lights and switches. Also, I feel less intimidated with the Editor vs. Home Assistant and Hubitat, both of which require additional system administration.
Well thank you. I was asking my brother for some help and he was like, "you know this is how I make scripts in Home Assistant right?" My reply was yeah, but I just feel way more comfortable with Google Home. So it has been a nice slow introduction.
@@TechWithBrett Wanted you to know that, thanks to your tutorial, I wrote my 1st Script today; turns on a Yamaha Musicast Radio! Down the rabbit-hole I GO! Thanks again for providing a teachable framework in order to tackle this challenging environment!
Would you let us know what brand of motion detection sensor you are doing? The reason I asked is that I purchased some Phovolt motion detection sensors but I am having a hard time for Google Home App to know about any. Temperature sensors in the same Smart Life app works with Google Home App just fine. Thanks.
I set up basically the same conditions for a camera today condition: type: and conditions: - type: device.state.OnOff state: on is: false device: Kitchen Light - Kitchen - type: time.between before: 06:30 after: 18:00 This is the script used also ctrl+spacebar will switch to auto populating
Has anyone had trouble with "longer" automations not completing? Both Script Editor and the old way. My longer automations (over 10 steps) run to a random point (changes every time) and then stop. One of my automations, which worked fine for over a year, has only completed one time in the past month. Brett - maybe that's the problem with your "Undercounter, Hood Light" automation!
Very possible. There are definitely a bunch of bugs that still need to be worked out. I am in contact with some people at Google so hopefully I will be able to report directly some of these frustrations.
The problem I'm having is I try to create a script for my garage door opener to notify me when the garage door is open and also notifying when the garage door is closed. I get it to work with lights so I'm assuming it'll work with the garage. The problem is it doesn't seem to get the notifications on the pixel watch and it seems as if my pixel phone is not awake and unlock. I don't get the notifications.
How did you get the FP2 to work with Google Home. When I enter the zone the fan starts. But when I leave the zone the fan doesn't turn off. Tried many different scripts, contacted both Google and Aqara. Aqara did an update for this problem but it didn't fix the turn off problem. Really enjoy your videos.
It is a bit finicky but to finally get things working I reset the Absence Status in the Aqara app when no one in the room. I have had to do that every so often to get it to work if it is stuck.
I've created a script to turn a smart light bulb on and off at various times and it works fine but I don't understand why this automation doesn't show up in the Google Home app
I just can't get anything to work. Even the auto generated code in script editor doesn't work. There's always an error. I tried doing it as at the start of this video but not all of my devices show in the drop down menus. Maybe that's why I'm getting errors? If landing sensor is triggered after 1am but before sunrise then turn on landing, lamp and kitchen light for 5 minutes at 50% brightness.... If anyone can help.
I need the ability to turn on a fan when the outside temperature is below 77 degrees Fahrenheit I have a nest puck however it doesn’t let me select this device as a trigger anyone have any ideas, i would love input.
@@peterweyland6824 I complain about this constantly, as do lots of people online, and on google home threads for YEARS. It's unfathomable to me why this hasn't been addressed.
Can anybody tell me if its possible to do the following automation using script editor : Turn off my smart plug (in which my wall charging adaptor is connected) when charge reaches upto 90% ??? (I own a non-samsung phone, so i cannot use the option of adaptive charging or battery protection feature of oneUI)
Here is the link to the example scripts: developers.home.google.com/automations/example-scripts
Don't forget to Send Feedback when you have issues so they can keep making this better.
I created a couple automations with this today. I have an LED strip around a bathroom mirror. Created an automation that starts with a voice prompt and waits a minute for you to turn the shower water on, turns green for 10 minutes, orange for 3 minutes, red for 2 minutes, and then to white for 5 before turning off. Timer for the kids showers.
Second one I made for if the robo-vacuum hasnt run in 3 days, Google home waits between 4p and 7p if my wife or I are home and sends us a notification that we need to run the vacuum. Great video!
Wow, that is awesome!
Just let your kids enjoy their shower brah lol
I appreciate this. I've wanted to explore this but haven't taken the time to look into it. Now I know what I'm walking into. Thanks.
It is certainly daunting at first but was rewarding when I would get it to work.
Been looking for something like these for days! Thank you so much for this video!
Just when I was getting Matter figured out, you throw this one out there. Haha Always something new any more. Thank you for your vids. They are VERY helpful and easily understood.
I Love Your Videos, Your are one of the few tech RUclipsrs that are truthful and entertaining, This is my favorite tech channel.
Thank you! I'll do my best to keep it that way.
Me too
Thank you finally an easy to understand Google Home script video, I thought it looks to difficult but now not so.
Finally google home is not useless anymore!!
Fantastic video, as always. I wrote scripts before and it's pretty easy, but your tips made it even easier. Please keep giving tips on the script editor!
Respected sir,
Can you please tell me if its possible to do the following automation using script editor :
Turn off my smart plug (in which my wall charging adaptor is connected) when charge reaches upto 90% ???
(I own a non-samsung phone, so i cannot use the option of adaptive charging or battery protection feature of oneUI)
@@anurimapal7768 As far as I know, that is not possible.
Thanks for the info on this, I have a lot to plan for our new home being built. Hope that I can get it approved by the Boss.
Good luck and hopefully you can get most of it put in.
Awesome, I was starting to think maybe I need to jump ship but this is just what I'm looking for from Google. Great video as well, love your channel.
Thank you! Google has stepped up their game this year and have made some good improvements in the right direction. I'm confident we will continue to see them make the right improvements.
@TechWithBrett The reason it was not auto populating was when you typed "-type:", you needed to add a space "- type:"
Interesting. I will check this out. The thing I don’t like when setting up automations is you have to add one item at a time. Back and forth I hope this will eliminate that. Great video. Thanks
After spending a few days testing this out, I can see it has a lot of potential once you figure out what to do.
@@TechWithBrett after watching this video I wanted to see if Alexa offered anything similar. They don't offer scripting but in their routines section you can start a routine with turning on a switch and associate devices to turn on or off
Thanks for you work and this video! One question: what tipe of smart relay did you use in kitchen hood? I can't find anything which will be compatible with google home and has manual switch and small enough dimensions to fit in hood
For that I used a Shelly Relay. ruclips.net/video/nRtZeyn7ccg/видео.html
I got some recessed lights that have a built in nightlight, to turn on the nightlight you turn the lights on, then off, then on again within 5 seconds. Can you think of a way to automate this, so our nightlights can be turned on at a scheduled time?
Hi Brett. Can i use the google nestcam indoor in this and stream the camview. What cans do u use ?
Hello and thanks for a really good video. I live in the UK and have many 'Shelly' devices but none of them appear in the script editor 'devices' list! I have linked my Shelly account to google home and can see and use the shelly devices from there but not in script editor. Any ideas?
This 'device not listing' issue is when I'm trying to use Shelly devices as 'a starter' trigger.
SOLVED - I have played around using different scripts and have no found that all my shelly devices do appear and have working automation. Thanks again for a great video.
"there you go, no errors". Only because of the magic of editing. You should really have left your errors on show because your errors - will be the most common that other people have to deal with. In this case your repeated failure to add a space after the hyphen. Eg "- type:" not "-type:" 👍
Have better eyes than 99% of people. I had figured out the code, tried to repeat it but couldn't figure out the last error on video in a reasonable amount of time, so I did swap to the working set. The only difference I could see while editing is that things didn't line up the same between the two but nice job finding what caused it.
@@TechWithBrett waaaay to much time with YAML on Home Assistant has taught me to be super vigilant on spacing 😋 (for the future, you should note, it's when you made that error that the editor stopped providing helpful autocomplete options. So in future check what you just wrote when the editor stops being helpful. If you can't see the error go down the validate route to see if it tells you)
That is a great tip, thank you!
Fiddeling with YAML. What's the difference between "- type" and "type"? I noticed that they just write "type" under conditions!?
@@10pm63the hyphen indicates that this is an item in a list, but YAML is also super picky about indentation. If you have a list item, it should be indented with a 2 spaces from the item above it, and it MUST have a space after the hyphen and before the item in the list. Eg: - type or - entity_id:. Stuff that does not have a hyphen is a dictionary, not a list.
Great video - I'm loving the new script editor
Is it possible to use familiar face detection as a starter when it sees a specific person 's face?
Thanks for setting up this video, Brett! Never thought I would enjoy watching code debugging as much as this! I like the idea of the TWB Community Forum to share Scripting ideas. My setup isn't as complex as yours, but I think the Google Home Script Editor will give me some added flexibility when controlling my lights and switches. Also, I feel less intimidated with the Editor vs. Home Assistant and Hubitat, both of which require additional system administration.
Well thank you. I was asking my brother for some help and he was like, "you know this is how I make scripts in Home Assistant right?" My reply was yeah, but I just feel way more comfortable with Google Home. So it has been a nice slow introduction.
@@TechWithBrett Wanted you to know that, thanks to your tutorial, I wrote my 1st Script today; turns on a Yamaha Musicast Radio! Down the rabbit-hole I GO! Thanks again for providing a teachable framework in order to tackle this challenging environment!
That's awesome to hear!
Would you let us know what brand of motion detection sensor you are doing? The reason I asked is that I purchased some Phovolt motion detection sensors but I am having a hard time for Google Home App to know about any. Temperature sensors in the same Smart Life app works with Google Home App just fine. Thanks.
In this video I used a Hue Motion Sensor connected to a Hue Hub. I also use an Aqara FP2 that worked ok but certainly could be improved.
I set up basically the same conditions for a camera today
condition:
type: and
conditions:
- type: device.state.OnOff
state: on
is: false
device: Kitchen Light - Kitchen
- type: time.between
before: 06:30
after: 18:00
This is the script used
also ctrl+spacebar will switch to auto populating
Has anyone had trouble with "longer" automations not completing? Both Script Editor and the old way. My longer automations (over 10 steps) run to a random point (changes every time) and then stop. One of my automations, which worked fine for over a year, has only completed one time in the past month. Brett - maybe that's the problem with your "Undercounter, Hood Light" automation!
Very possible. There are definitely a bunch of bugs that still need to be worked out. I am in contact with some people at Google so hopefully I will be able to report directly some of these frustrations.
The problem I'm having is I try to create a script for my garage door opener to notify me when the garage door is open and also notifying when the garage door is closed. I get it to work with lights so I'm assuming it'll work with the garage. The problem is it doesn't seem to get the notifications on the pixel watch and it seems as if my pixel phone is not awake and unlock. I don't get the notifications.
omg thanks for this video... i reallly hope this is nothing thats get anytime soon to google cemetery...its too good
I need a way to trigger an action on for 20 seconds and then turn it back off. Is there a way of doing that?
Is there a way to make our Android phone appear in the device list?
How did you get the FP2 to work with Google Home. When I enter the zone the fan starts. But when I leave the zone the fan doesn't turn off. Tried many different scripts, contacted both Google and Aqara. Aqara did an update for this problem but it didn't fix the turn off problem. Really enjoy your videos.
It is a bit finicky but to finally get things working I reset the Absence Status in the Aqara app when no one in the room. I have had to do that every so often to get it to work if it is stuck.
Thanks got the great advice. Tuning up the Absence Status will help. Thanks again.
Well the problem is solved. I switched to using Alexa and it works. The problem seems to be in Google Home. Thanks again.
Great video!
I've created a script to turn a smart light bulb on and off at various times and it works fine but I don't understand why this automation doesn't show up in the Google Home app
I just can't get anything to work. Even the auto generated code in script editor doesn't work. There's always an error.
I tried doing it as at the start of this video but not all of my devices show in the drop down menus. Maybe that's why I'm getting errors?
If landing sensor is triggered after 1am but before sunrise then turn on landing, lamp and kitchen light for 5 minutes at 50% brightness....
If anyone can help.
Thanks for the video❤
I need the ability to turn on a fan when the outside temperature is below 77 degrees Fahrenheit I have a nest puck however it doesn’t let me select this device as a trigger anyone have any ideas, i would love input.
MOTION DETECTION!!!! FINALLY 🎉
This is a great step forward. However, I cannot believe you still can't turn off voice responses or set a consistent volume for them. It's 2024!!
What brought me here... 🙄
@@peterweyland6824 I complain about this constantly, as do lots of people online, and on google home threads for YEARS. It's unfathomable to me why this hasn't been addressed.
Gotta say - the death of the Samsung eco-system, possibly for the better. Fingers crossed HA lasts through the battle.
Idea: when phone is charging and battery reaches 70%, use Google Home to turn off the smart plug. Preserving battery life battery 🔋 🧬
Can anybody tell me if its possible to do the following automation using script editor :
Turn off my smart plug (in which my wall charging adaptor is connected) when charge reaches upto 90% ???
(I own a non-samsung phone, so i cannot use the option of adaptive charging or battery protection feature of oneUI)