Who let the dogs out?

This commit is contained in:
CCOSTAN 2016-12-21 17:27:18 +00:00
parent ae40e608df
commit 91176a1eea

View File

@ -1,96 +1,96 @@
############################################################################## ##############################################################################
### Detect when things are on and forgotten about. ### Detect when things are on and forgotten about. Like any Good Watchdog.
############################################################################## ##############################################################################
- alias: Automated Switch WatchDog! - alias: Automated Switch WatchDog!
trigger: trigger:
- platform: state - platform: state
entity_id: switch.printer_outlet entity_id: switch.printer_outlet
state: 'on' state: 'on'
for: '00:35:00' for: '00:35:00'
- platform: state - platform: state
entity_id: switch.garage_outlet entity_id: switch.garage_outlet
state: 'on' state: 'on'
for: '03:00:00' for: '03:00:00'
#Turn it off twice for good measure! #Turn it off twice for good measure!
action: action:
- service: switch.turn_off - service: switch.turn_off
data_template: data_template:
entity_id: "{{ trigger.entity_id }}" entity_id: "{{ trigger.entity_id }}"
- delay: 00:01:00 - delay: 00:01:00
- service: switch.turn_off - service: switch.turn_off
data_template: data_template:
entity_id: "{{ trigger.entity_id }}" entity_id: "{{ trigger.entity_id }}"
############################################################################## ##############################################################################
- alias: Automated Light WatchDog! - alias: Automated Light WatchDog!
trigger: trigger:
- platform: state - platform: state
entity_id: light.hallway entity_id: light.hallway
state: 'on' state: 'on'
for: '00:20:00' for: '00:20:00'
- platform: state - platform: state
entity_id: group.foyer_lights entity_id: group.foyer_lights
state: 'on' state: 'on'
for: '00:20:00' for: '00:20:00'
#Turn it off! #Turn it off!
action: action:
- service: light.turn_off - service: light.turn_off
data_template: data_template:
entity_id: "{{ trigger.entity_id }}" entity_id: "{{ trigger.entity_id }}"
############################################################################## ##############################################################################
- alias: If Outdoor lights are on and it's daytime, TURN THEM OFF!! - alias: If Outdoor lights are on and it's daytime, TURN THEM OFF!!
hide_entity: True hide_entity: True
trigger: trigger:
- platform: time - platform: time
minutes: '/47' minutes: '/47'
seconds: 0 seconds: 0
condition: condition:
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'above_horizon' state: 'above_horizon'
- condition: state - condition: state
entity_id: group.outdoor_lights entity_id: group.outdoor_lights
state: 'on' state: 'on'
action: action:
- service: light.turn_off - service: light.turn_off
entity_id: group.outdoor_lights entity_id: group.outdoor_lights
############################################################################## ##############################################################################
- alias: Add some double and triple checking to the 433 RF outlets. - alias: Add some double and triple checking to the 433 RF outlets.
hide_entity: True hide_entity: True
trigger: trigger:
- platform: time - platform: time
minutes: '/55' minutes: '/55'
seconds: 0 seconds: 0
action: action:
- service: script.reliability - service: script.reliability
############################################################################## ##############################################################################
- alias: "NOTIFY IF IP CHANGES" - alias: "NOTIFY IF IP CHANGES"
hide_entity: True hide_entity: True
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.ipchange entity_id: sensor.ipchange
from: 'False' from: 'False'
to: 'True' to: 'True'
action: action:
- service: script.ifttt_notify - service: script.ifttt_notify
data_template: data_template:
value1: 'Changed IP address:' value1: 'Changed IP address:'
value2: "New IP: {{ states('sensor.exteral_ip') }}" value2: "New IP: {{ states('sensor.exteral_ip') }}"
value3: ' - Be sure to Change DNS!' value3: ' - Be sure to Change DNS!'
############################################################################## ##############################################################################