From 91176a1eeaad69b768231fed67079ddf1e95ed04 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 21 Dec 2016 17:27:18 +0000 Subject: [PATCH] Who let the dogs out? --- automation/watchdog.yaml | 192 +++++++++++++++++++-------------------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index 5bf963ca..1f50a421 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -1,96 +1,96 @@ -############################################################################## -### Detect when things are on and forgotten about. -############################################################################## - -- alias: Automated Switch WatchDog! - trigger: - - platform: state - entity_id: switch.printer_outlet - state: 'on' - for: '00:35:00' - - platform: state - entity_id: switch.garage_outlet - state: 'on' - for: '03:00:00' - -#Turn it off twice for good measure! - action: - - service: switch.turn_off - data_template: - entity_id: "{{ trigger.entity_id }}" - - delay: 00:01:00 - - service: switch.turn_off - data_template: - entity_id: "{{ trigger.entity_id }}" - - ############################################################################## - -- alias: Automated Light WatchDog! - trigger: - - platform: state - entity_id: light.hallway - state: 'on' - for: '00:20:00' - - platform: state - entity_id: group.foyer_lights - state: 'on' - for: '00:20:00' - -#Turn it off! - action: - - service: light.turn_off - data_template: - entity_id: "{{ trigger.entity_id }}" - -############################################################################## - -- alias: If Outdoor lights are on and it's daytime, TURN THEM OFF!! - hide_entity: True - trigger: - - platform: time - minutes: '/47' - seconds: 0 - - condition: - - condition: state - entity_id: sun.sun - state: 'above_horizon' - - condition: state - entity_id: group.outdoor_lights - state: 'on' - - action: - - service: light.turn_off - entity_id: group.outdoor_lights - -############################################################################## - -- alias: Add some double and triple checking to the 433 RF outlets. - hide_entity: True - trigger: - - platform: time - minutes: '/55' - seconds: 0 - - action: - - service: script.reliability - -############################################################################## - -- alias: "NOTIFY IF IP CHANGES" - hide_entity: True - trigger: - - platform: state - entity_id: sensor.ipchange - from: 'False' - to: 'True' - action: - - service: script.ifttt_notify - data_template: - value1: 'Changed IP address:' - value2: "New IP: {{ states('sensor.exteral_ip') }}" - value3: ' - Be sure to Change DNS!' - -############################################################################## - - +############################################################################## +### Detect when things are on and forgotten about. Like any Good Watchdog. +############################################################################## + +- alias: Automated Switch WatchDog! + trigger: + - platform: state + entity_id: switch.printer_outlet + state: 'on' + for: '00:35:00' + - platform: state + entity_id: switch.garage_outlet + state: 'on' + for: '03:00:00' + +#Turn it off twice for good measure! + action: + - service: switch.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + - delay: 00:01:00 + - service: switch.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + + ############################################################################## + +- alias: Automated Light WatchDog! + trigger: + - platform: state + entity_id: light.hallway + state: 'on' + for: '00:20:00' + - platform: state + entity_id: group.foyer_lights + state: 'on' + for: '00:20:00' + +#Turn it off! + action: + - service: light.turn_off + data_template: + entity_id: "{{ trigger.entity_id }}" + +############################################################################## + +- alias: If Outdoor lights are on and it's daytime, TURN THEM OFF!! + hide_entity: True + trigger: + - platform: time + minutes: '/47' + seconds: 0 + + condition: + - condition: state + entity_id: sun.sun + state: 'above_horizon' + - condition: state + entity_id: group.outdoor_lights + state: 'on' + + action: + - service: light.turn_off + entity_id: group.outdoor_lights + +############################################################################## + +- alias: Add some double and triple checking to the 433 RF outlets. + hide_entity: True + trigger: + - platform: time + minutes: '/55' + seconds: 0 + + action: + - service: script.reliability + +############################################################################## + +- alias: "NOTIFY IF IP CHANGES" + hide_entity: True + trigger: + - platform: state + entity_id: sensor.ipchange + from: 'False' + to: 'True' + action: + - service: script.ifttt_notify + data_template: + value1: 'Changed IP address:' + value2: "New IP: {{ states('sensor.exteral_ip') }}" + value3: ' - Be sure to Change DNS!' + +############################################################################## + +