Hey, Google... When I come home after dark, turn on the flood lights

Yeah, but part of the fun is in learning something new.

As I get older it seems that anytime I learn something new, something old seems to leave my memory. I think my brain has reached max capacity. Now I just delegate these tasks to the teenager in exchange for room, board, and being his personal chauffeur.

1 Like

With it’s 1/4 mile range this would definitely do the trick from your car but it does require a hub. One of their hubs is all that is necessary for the myriad of devices they offer. Their stuff works great for me. https://www.amazon.com/FlexFob-4-Button-YoLink-Programmable-Functions/dp/B0978V4WQC/ref=sr_1_5?crid=9SK7NRVINCVT&keywords=yolink%2Bsmart%2Bfob&qid=1677185300&sprefix=yolink%2Bsmart%2Bfo%2Caps%2C128&sr=8-5&th=1

1 Like

Whoohoo! One year later I may finally have a solution!

The Macrodroid macro didn’t pan out for me, so I had settled for just having the floodlights come on every time I came home, day or night. No big deal to tell Google to turn them back off as I walked through the garage.

But now…
Google invited me to use AI to Create custom routines. Here’s how.

  1. On a computer, go to home.google.com, while signed into the Google account you have associated with your Google Home.

  2. Click Automations on the left
    image

  3. You’ll see a list of your current automation. Click Add new in the lower right-hand corner.
    image
    (You may be prompted to join Public Preview)

  4. On the right-hand side, enter a prompt for AI to turn into a script. Just type what you want Google Assistant to do, using natural language.
    I used, “When I come home after dark, turn on the driveway lights.”
    The script it came up with was:

metadata:
  name: Turn on lights when home
  description: Turn on driveway lights when I arrive after dark
automations:
  - starters:
      - type: home.state.HomePresence
        state: HomePresenceMode
        is: HOME
    condition:
      type: time.between
      after: SUNSET
      before: SUNRISE
    actions:
      - type: device.command.OnOff
        devices:
          - Floodlight 1 - Driveway
          - Floodlight 2 - Driveway
        on: true

Finally, the “between sunset and sunrise” restriction is in there!

I haven’t actually been anywhere since I set it up, but when I do a test run during the daytime, the lights don’t come on, and when I test run it at night, they do, so this is looking good.

Has anyone else tried writing a Google Assistant automation using AI?

4 Likes