From 857751547c781d0eda3490c58358ae2907c4b7e2 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Wed, 30 Nov 2016 22:40:44 +0000 Subject: [PATCH] Housekeeping --- automation/sunrise_turnon_and_off.yaml | 3 ++ automation/switch_reliability.yaml | 63 -------------------------- 2 files changed, 3 insertions(+), 63 deletions(-) delete mode 100755 automation/switch_reliability.yaml diff --git a/automation/sunrise_turnon_and_off.yaml b/automation/sunrise_turnon_and_off.yaml index 63811f75..cd1d9b97 100755 --- a/automation/sunrise_turnon_and_off.yaml +++ b/automation/sunrise_turnon_and_off.yaml @@ -6,6 +6,9 @@ trigger: - platform: sun event: sunset + - platform: time + after: 20:00:00 +#Time trigger is until I replace the stupid switch. # - platform: event # event_type: halloween_lights_on diff --git a/automation/switch_reliability.yaml b/automation/switch_reliability.yaml deleted file mode 100755 index 0bb4d185..00000000 --- a/automation/switch_reliability.yaml +++ /dev/null @@ -1,63 +0,0 @@ -############################################################################## -### 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' - -#Turn it off! - action: - - service: light.turn_off - data_template: - entity_id: "{{ trigger.entity_id }}" - -############################################################################## - -- alias: Is the Garage door Open at night - Checks every 60 minutes or 5 minutes after we drive away. - trigger: - - platform: time - minutes: '/60' - - platform: state - entity_id: group.family - state: not_home - for: 00:05:00 - - condition: - - condition: sun - after: 'sunset' - - condition: template - value_template: "{{ states('cover.garadget_large') == 'opened' }}" - - condition: template - value_template: "{{ states('cover.garadget_small') == 'opened' }}" - - action: - - service: ifttt.trigger - data: {"event":"ifttt_notify", "value1":"Check Garage Doors: ", "value2":"Small: {{ states('cover.garadget_small')}}", "value3":"Large: {{ states('cover.garadget_large')}} "} -