From 9b5ffa10095d3e2af4b27527b43f39352b1db044 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Fri, 20 Jan 2017 20:20:08 +0000 Subject: [PATCH] Changing stuff up --- README.md | 2 +- automation/sunrise_turnon_and_off.yaml | 5 +- automation/watchdog.yaml | 13 ----- script/Reliability.yaml | 71 -------------------------- 4 files changed, 4 insertions(+), 87 deletions(-) delete mode 100755 script/Reliability.yaml diff --git a/README.md b/README.md index 4311c4ab..293c5d17 100755 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](htt ALL DAY LONG: Check to see if we are away. -SUNRISE minus 3.5 hours +SUNRISE minus 1 hour Turn off ALL SWITCHES Turn off ALL LIGHTS 05:00 AM ** Light Brightness helper 50 Brightness ** diff --git a/automation/sunrise_turnon_and_off.yaml b/automation/sunrise_turnon_and_off.yaml index 65a3dfd1..388b3658 100755 --- a/automation/sunrise_turnon_and_off.yaml +++ b/automation/sunrise_turnon_and_off.yaml @@ -4,8 +4,9 @@ - alias: 'Sunset Stuff on' trigger: - - platform: sun - event: sunset + - platform: state + entity_id: sun.sun + state: 'below.horizon' action: - service: switch.turn_on diff --git a/automation/watchdog.yaml b/automation/watchdog.yaml index ca71fde4..9ac68357 100755 --- a/automation/watchdog.yaml +++ b/automation/watchdog.yaml @@ -69,19 +69,6 @@ - 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 diff --git a/script/Reliability.yaml b/script/Reliability.yaml deleted file mode 100755 index bf04ace4..00000000 --- a/script/Reliability.yaml +++ /dev/null @@ -1,71 +0,0 @@ -###################################################################################################### -###Script to run every 30 minutes to check if 433 RF Switches are in the state they should be. -### connected to [Etekcity Outlets](http://amzn.to/2efNoBP) -## [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2) -### Sample Call -# action: -# - service: script.reliability -###################################################################################################### - -# {% macro swTest(onoff) %} - service: switch.turn_{{ states(onoff) }} - # entity_id: {{ onoff }}{% endmacro %} - -# switch_check: - # sequence: -# {{ swTest("switch.foyer_outlet") }} -# {{ swTest("switch.printer_outlet") }} -# {{ swTest("switch.garage_outlet") }} -# {{ swTest("switch.den_outlet") }} -# {{ swTest("switch.living_room_outlet") }} -# {{ swTest("switch.living_room_amp") }} - -switch_check: - sequence: - - service_template: > - {% if states.switch.foyer_outlet == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.foyer_outlet - - delay: '00:00:30' - - service_template: > - {% if states.switch.printer_outlet == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.printer_outlet - - delay: '00:00:30' - - service_template: > - {% if states.switch.garage_outlet == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.garage_outlet - - delay: '00:00:30' - - service_template: > - {% if states.switch.den_outlet == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.den_outlet - - delay: '00:00:30' - - service_template: > - {% if states.switch.kitchen_Accents == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.kitchen_Accents - - delay: '00:00:30' - - service_template: > - {% if states.switch.living_room_amp == 'on' %} - switch.turn_on - {% else %} - switch.turn_off - {% endif %} - entity_id: switch.living_room_amp -