cancel
Showing results for 
Search instead for 
Did you mean: 

starting home automation routines automatically

Andybrad
Community Member

Hello,

I am trying to develop some basic automation routines within google home. I am using the web based script editor.

When i create a routine that works off a switch for example the routine works fine. However i am trying to start it from the humidity sensor in the nest thermostat. my example is below.

automations:
starters:
- type: device.state.TemperatureSetting # Handles temperature points and modes of a thermostat device. # Handles temperature points and modes of a thermostat device.
state: thermostatHumidityAmbient
greaterThanOrEqualTo: 71
device: Hallway(Hall) - Hallway

condition:
type: time.between
after: 07:00 # HH:MM (24 hours format). Adjust time as needed
before: 21:00 # HH:MM (24 hours format). Adjust time as needed # HH:MM (24 hours format). Adjust time as needed
actions:
- type: device.command.OnOff # Turn the device on or off.
on: true
devices: dehumidifier - Front bedroom

 

Now if i click the run routine button it all works fine but it wont automatically start. Could someone please explain why?

3 REPLIES 3

nickfromgoogle
Googler
Googler

Hey @Andybrad - does the automation run if you remove the conditions?  That's the first thing I'd check to see if your humidity starter works and your automation isn't being blocked on the conditions you added.

DonSepeda
Community Member

metadata:
name: Test Scrip
description: Scripted automation

automations:
- starters:
- type: time.schedule
at: 00:00
actions:
- type: time.delay
for: 00sec
# # Start your script below # #
- starters:
- type:
actions:
- type:

Don Sepeda

Andybrad
Community Member

Hi, Thanks for the responses.

I removed the conditions and it did work for several days. Its then stopped...... i dont know why