Take Routines to the Next Level with the Google Home Script Editor

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 77

  • @TechWithBrett
    @TechWithBrett  Год назад +4

    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.

  • @Weaselsilent
    @Weaselsilent Год назад +5

    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!

    • @TechWithBrett
      @TechWithBrett  Год назад +1

      Wow, that is awesome!

    • @Adam-fq6vw
      @Adam-fq6vw 8 месяцев назад

      Just let your kids enjoy their shower brah lol

  • @CHADAB34
    @CHADAB34 Год назад +7

    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.

    • @TechWithBrett
      @TechWithBrett  Год назад +3

      It is certainly daunting at first but was rewarding when I would get it to work.

  • @eynermesoneslopez4999
    @eynermesoneslopez4999 Год назад +5

    Been looking for something like these for days! Thank you so much for this video!

  • @Willee64
    @Willee64 11 месяцев назад +4

    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.

  • @ExcuseMeTheAudacity
    @ExcuseMeTheAudacity Год назад +3

    I Love Your Videos, Your are one of the few tech RUclipsrs that are truthful and entertaining, This is my favorite tech channel.

  • @hometechUK
    @hometechUK Год назад +2

    Thank you finally an easy to understand Google Home script video, I thought it looks to difficult but now not so.

  • @Gamen4Bros
    @Gamen4Bros 4 месяца назад +1

    Finally google home is not useless anymore!!

  • @zunkman1
    @zunkman1 Год назад +2

    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!

    • @anurimapal7768
      @anurimapal7768 Год назад

      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)

    • @zunkman1
      @zunkman1 Год назад

      @@anurimapal7768 As far as I know, that is not possible.

  • @davidallred4266
    @davidallred4266 Год назад +2

    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.

    • @TechWithBrett
      @TechWithBrett  Год назад

      Good luck and hopefully you can get most of it put in.

  • @DarrellMee
    @DarrellMee Год назад +1

    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.

    • @TechWithBrett
      @TechWithBrett  Год назад +1

      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.

  • @RockstheSquirrelMobian
    @RockstheSquirrelMobian 10 месяцев назад

    @TechWithBrett The reason it was not auto populating was when you typed "-type:", you needed to add a space "- type:"

  • @KirkandRA
    @KirkandRA Год назад

    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
      @TechWithBrett  Год назад

      After spending a few days testing this out, I can see it has a lot of potential once you figure out what to do.

    • @KirkandRA
      @KirkandRA Год назад

      @@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

  • @Валерий-м1м
    @Валерий-м1м Год назад

    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

    • @TechWithBrett
      @TechWithBrett  Год назад

      For that I used a Shelly Relay. ruclips.net/video/nRtZeyn7ccg/видео.html

  • @mattglandorf9077
    @mattglandorf9077 5 месяцев назад

    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?

  • @MrPattayacitydk
    @MrPattayacitydk Месяц назад

    Hi Brett. Can i use the google nestcam indoor in this and stream the camview. What cans do u use ?

  • @jonhaines242
    @jonhaines242 11 месяцев назад

    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?

    • @jonhaines242
      @jonhaines242 11 месяцев назад

      This 'device not listing' issue is when I'm trying to use Shelly devices as 'a starter' trigger.

    • @jonhaines242
      @jonhaines242 11 месяцев назад

      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.

  • @AndrewJonesMcGuire
    @AndrewJonesMcGuire Год назад +8

    "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:" 👍

    • @TechWithBrett
      @TechWithBrett  Год назад +5

      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.

    • @AndrewJonesMcGuire
      @AndrewJonesMcGuire Год назад +2

      @@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)

    • @TechWithBrett
      @TechWithBrett  Год назад +3

      That is a great tip, thank you!

    • @10pm63
      @10pm63 10 месяцев назад

      Fiddeling with YAML. What's the difference between "- type" and "type"? I noticed that they just write "type" under conditions!?

    • @AndrewJonesMcGuire
      @AndrewJonesMcGuire 10 месяцев назад

      @@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.

  • @BarnBytes
    @BarnBytes Год назад

    Great video - I'm loving the new script editor

  • @BrianFunk
    @BrianFunk 5 месяцев назад

    Is it possible to use familiar face detection as a starter when it sees a specific person 's face?

  • @familiatrois3813
    @familiatrois3813 Год назад

    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.

    • @TechWithBrett
      @TechWithBrett  Год назад +1

      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.

    • @familiatrois3813
      @familiatrois3813 Год назад

      @@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!

    • @TechWithBrett
      @TechWithBrett  Год назад

      That's awesome to hear!

  • @cchien626
    @cchien626 11 месяцев назад

    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.

    • @TechWithBrett
      @TechWithBrett  11 месяцев назад +1

      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.

  • @mikehardy3300
    @mikehardy3300 Год назад +1

    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

  • @zunkman1
    @zunkman1 Год назад +2

    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!

    • @TechWithBrett
      @TechWithBrett  Год назад +2

      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.

  • @jamespinney661
    @jamespinney661 3 месяца назад

    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.

  • @ElTarosa
    @ElTarosa Год назад

    omg thanks for this video... i reallly hope this is nothing thats get anytime soon to google cemetery...its too good

  • @slimcobra
    @slimcobra Год назад

    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?

  • @rauljusti6490
    @rauljusti6490 Год назад

    Is there a way to make our Android phone appear in the device list?

  • @dougcampbell7898
    @dougcampbell7898 Год назад

    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.

    • @TechWithBrett
      @TechWithBrett  Год назад

      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.

    • @dougcampbell7898
      @dougcampbell7898 Год назад

      Thanks got the great advice. Tuning up the Absence Status will help. Thanks again.

    • @dougcampbell7898
      @dougcampbell7898 Год назад

      Well the problem is solved. I switched to using Alexa and it works. The problem seems to be in Google Home. Thanks again.

  • @GilChanelCarrillo
    @GilChanelCarrillo Год назад +1

    Great video!

  • @andreabugatti6792
    @andreabugatti6792 11 месяцев назад

    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

  • @jacktheladfrost
    @jacktheladfrost 10 месяцев назад

    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.

  • @GA0764
    @GA0764 Год назад

    Thanks for the video❤

  • @hankmartinfilms
    @hankmartinfilms 2 месяца назад

    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.

  • @Jensen871
    @Jensen871 Год назад +3

    MOTION DETECTION!!!! FINALLY 🎉

  • @leaperrins8373
    @leaperrins8373 9 месяцев назад

    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!!

    • @peterweyland6824
      @peterweyland6824 6 месяцев назад

      What brought me here... 🙄

    • @leaperrins8373
      @leaperrins8373 6 месяцев назад

      @@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.

  • @clairerovic
    @clairerovic Год назад

    Gotta say - the death of the Samsung eco-system, possibly for the better. Fingers crossed HA lasts through the battle.

  • @eduardocarvalho2517
    @eduardocarvalho2517 Месяц назад

    Idea: when phone is charging and battery reaches 70%, use Google Home to turn off the smart plug. Preserving battery life battery 🔋 🧬

  • @anurimapal7768
    @anurimapal7768 Год назад

    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)