From 17040d545b79eaf3aefbef4915a911d51df6df66 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 27 Oct 2016 23:59:51 +0000 Subject: [PATCH] Guest Mode Via Alexa and IFTTT. --- README.md | 8 +++++--- automation/ifttt_guest_mode.yaml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100755 automation/ifttt_guest_mode.yaml diff --git a/README.md b/README.md index db3943a7..882a3a00 100755 --- a/README.md +++ b/README.md @@ -24,16 +24,19 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt * Emulated Hue to try and get Alexa to see my switches.Not working yet http://carlo-pi:8300/api/12345678901234567890/lights **Automations:** -* SMS and IFTTT Notifications for Offline Devices, BadLogins, HA Startups, new HA versions. +* Guest mode to disable certain interior automations. Trigger via Alexa & IFTTT. +* IFTTT Notifications for Offline Devices, BadLogins, HA Startups, new HA versions. * (IFTTT) Logging entries in Logbooks for Rachio, Doorbell * Auto Heal ZWave at 2:30am * Turn on TV Time Lights (dim and color) at Sunset (if home and TV is on) * Turn on Upstaris light if Nest detects people and it's nighttime. * Turn off lights when Nest detects we are away. (Upstairs and Downstairs) * Turn on some lights when we get home +* Turn on Holiday Lights at Sunset, Turn off 4 hours before sunrise. Turn off interior Holiday lights when we go to sleep. * (IFTTT) Blink ALL lights at 9:30 to remind me to take medicine. (also Alexa Alert) * (IFTTT) Blink Office lights 15 minutes before ANY meeting on my calendar (using IFTTT) * (IFTTT) Stop watering grass via Rachio if winds are greater than 20 MPH. +* (IFTTT) Blink ALL lights if Winds get to 70MPH - Hurricance warning. ![Screenshot of Home View](https://i.imgur.com/Exz32fr.png) ![Screenshot of Lights](https://i.imgur.com/rPm5wgJ.png) @@ -42,11 +45,10 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt #Todo List * Put Dash Buttons out there. -* Put door sensor on garage door +* Put door sensor on garage door ([Garadget](garadget.com) is on the way!) * Put Door Sensor in Mailbox * Put Door Sensor in Attic trap door to trigger light (GE LINK) * Add Pi-Hole (Ad blocking) to the network with the Pi Zero. (Add to Home Assistant) -* Add IFTTT to Set Guest MODE via Alexa. * Add LetsEncrypt and [CertBot](https://certbot.eff.org/#debianjessie-other) for auto renewals. (or buy cheapo SSL cert) for advanced Alexa stuff. * This : http://groundp.in/2016/10/18/step-by-step-guide-to-setting-up-esp-easy-with-home-assistant/ * http://www.pibakery.org/ diff --git a/automation/ifttt_guest_mode.yaml b/automation/ifttt_guest_mode.yaml new file mode 100755 index 00000000..3f81d2ee --- /dev/null +++ b/automation/ifttt_guest_mode.yaml @@ -0,0 +1,22 @@ +################################### +## Turn on/off Guest Mode via ALexa/IFTTT event. +################################### + +- alias: 'IFTTT Flip Guest Mode on' + trigger: + - platform: event + event_type: guest_mode_on + + action: + - service: input_boolean.turn_on + entity_id: input_boolean.guest_mode + + +- alias: 'IFTTT Flip Guest Mode off' + trigger: + - platform: event + event_type: guest_mode_off + + action: + - service: input_boolean.turn_off + entity_id: input_boolean.guest_mode \ No newline at end of file