cancel
Showing results for 
Search instead for 
Did you mean: 

Home/Away Routines only show lights

kinto
Community Member

Hi! I would like to do some of the following automations:

- Turn off TV when everyone leaves

- Start robot vacuum when everyone leaves

 

All other automations allow me to select actions from every device I have. However, for the home/away routines it only lets me select lights. Is this Intentional? It doesn't make sense to me why it would be since I can't imagine a reason triggers wouldn't compose with every action. 

 

387519384_1433191867277845_5078234191555428222_n.jpg

 

7 REPLIES 7

kinto
Community Member

I just found the google home web beta and it's sweet. It lets me do everything I want:

 

```

metadata:
name: Leaving home (non-lights) # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: start the robot vacuum and turn off TV when we are away

automations:

- type: home.state.HomePresence
state: homePresenceMode
is: AWAY

actions:
- type: device.command.StartStop # Start or stop the device.
start: true
devices: robot - Living Room
- type: device.command.OnOff # Turn the device on or off.
on: false
devices: GoogleTV6694 - Living Room

```

stickyrice
Community Member

hi Kinto, are you now able to control/set non-light/switch devices, from Home/Away routines?

(I'd like to switch the arming mode of my ARLO security cameras)

Alex

kinto
Community Member

yeah you can do it in the web UI configuration language

stickyrice
Community Member

thanks but I am new to this.  are you referring to the "public preview"?

 

stickyrice
Community Member

was trying following in the script editor.  The log shows it's "succeeded", but the physical switch didn't get turned on.  Something missing?

 

starters:
- type: home.state.HomePresence
state: homePresenceMode
# [available operators: is, isNot]
is: AWAY

# ---- CONDITIONS ---- #
# Conditions are optional. Delete this section if it’s empty.
# Conditions will prevent an automation from starting if the conditions aren’t met.
# See g.co/home/script-editor-docs for documentation about how to use logical operators like “and”, “or”, and “not”.

# ---- ACTIONS ---- #
# Actions will start when a starter event takes place and all conditions are met.
# Actions will start in the order they appear in the script and with any delay specified.
# To add more than one action, duplicate the "- type" section under "actions".
actions:
- type: device.command.OnOff # Turn the device on or off.
# Whether to turn the device on or off.
on: true
devices: Heated mattress - Dummy

stickyrice
Community Member

oh @kinto  do I need to wait "public preview" is sorted?

Alex

stickyrice
Community Member

all sorted now.  this is so good.  Thanks!