From 948192f3ec75c02c8cdb0375dbde5d9ce8e8311d Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 12 Oct 2016 00:56:40 +0000 Subject: [PATCH] Using Nest and IFTTT to turn lights on/off --- Todo.md | 3 ++- automation/upstairs_motion_ifttt.yaml | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Todo.md b/Todo.md index a8546f27..0a88058b 100755 --- a/Todo.md +++ b/Todo.md @@ -1,6 +1,7 @@ #Todo List -* AUTOMATE LAMP UPSTAIRS using Nest thermostat. +* AUTOMATE LAMP UPSTAIRS using Nest thermostat. +* (Using IFTTT for now - Need to switch over to native HA) * Put Dash Buttons out there. * Put door sensor on garage door diff --git a/automation/upstairs_motion_ifttt.yaml b/automation/upstairs_motion_ifttt.yaml index 8172af07..2b0e43ea 100755 --- a/automation/upstairs_motion_ifttt.yaml +++ b/automation/upstairs_motion_ifttt.yaml @@ -1,6 +1,6 @@ # Uses the Nest thermostat to turn on lights and turn them off. -- alias: 'Upstairs Light Turn' +- alias: 'Upstairs Light Turn on' trigger: - platform: event event_type: upstairs_light_on @@ -13,3 +13,12 @@ action: service: light.turn_on entity_id: group.upstairs + +- alias: 'Upstairs Light Turn off' + trigger: + - platform: event + event_type: upstairs_light_off + + action: + service: light.turn_off + entity_id: group.upstairs \ No newline at end of file