From f83757bd226d1097f500984a801c03a9adf039d6 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Mon, 28 Nov 2016 19:31:57 +0000 Subject: [PATCH] Send me an ifttt_notify alert if the Garage is left open! --- .HA_VERSION | 2 +- README.md | 3 +++ automation/device_status.yaml | 2 +- automation/update_notification.yaml | 2 +- automation/watchdog.yaml | 23 +++++++++++++++++++++++ 5 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.HA_VERSION b/.HA_VERSION index 286cb4dc..b37dc74c 100755 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -0.33.3 \ No newline at end of file +0.33.4 \ No newline at end of file diff --git a/README.md b/README.md index 498231c6..41d2ee32 100755 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt #Todo List * AutoIt script to control lights via REST and also auto light office when I am working on Laptop. +* On motion from Doorbell (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors. * Notifications and Close garage doors if left open after 9 or 10 PM. * Monitor the reflection rates of Garadget and notify when they being to drop too low when closed (indicating a shift in the controller) * Configure the Alexa Component. @@ -75,4 +76,6 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt * http://www.esp8266.nu/index.php/ESPEasy * https://translate.google.com/translate?hl=en&sl=de&tl=en&u=https%3A%2F%2Falexbloggt.com%2Funiversal-infrarot-websteuerung-ueber-esp8266%2F +* https://github.com/thundergreen/home-assistant/wiki/Add-OZWCP-in-HASS + https://community.home-assistant.io/t/voice-controlled-cheap-non-smart-led-strip-with-ok-google-command/5756 diff --git a/automation/device_status.yaml b/automation/device_status.yaml index cdc5c54e..52ef3e86 100755 --- a/automation/device_status.yaml +++ b/automation/device_status.yaml @@ -26,4 +26,4 @@ - sensor.garadget_large action: service: ifttt.trigger - data_template: {"event":"device_status", "value1":"{{ trigger.entity_id.split('.')[1] }}", "value2":"{{ trigger.to_state.state }}"} + data_template: {"event":"ifttt_notify", "value1":"{{ trigger.entity_id.split('.')[1] }}", "value2":"{{ trigger.to_state.state }}"} diff --git a/automation/update_notification.yaml b/automation/update_notification.yaml index 23630e60..de6676d0 100755 --- a/automation/update_notification.yaml +++ b/automation/update_notification.yaml @@ -10,7 +10,7 @@ action: - service: ifttt.trigger - data: {"event":"device_status", "value1":"Home Assistant Update: ", "value2":"Available"} + data: {"event":"ifttt_notify", "value1":"Home Assistant Update: ", "value2":"Available"} - service: notify.html5 data_template: diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index 40261f60..224339ab 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -37,3 +37,26 @@ - service: light.turn_off data_template: entity_id: "{{ trigger.entity_id }}" + +############################################################################## + +- alias: 9pm - is the Garage door Open + trigger: + - platform: time + after: '21:00:00' + - platform: sun + event: sunset + offset: '+01:00:00' + + condition: + - condition: sun + after: 'sunset' + - condition: template + value_template: "{{ states('cover.garadget_large') != 'closed' }}" + - condition: template + value_template: "{{ states('cover.garadget_small') != 'closed' }}" + + action: + - service: ifttt.trigger + data: {"event":"ifttt_notify", "value1":"Check Garage Doors ", "value2":"Small {{ states('cover.garadget_small')}}", "value3":"Large {{ states('cover.garadget_large')}} "} +