From e10abec5a0601ec562ad44ad77b51a4bc26a8902 Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Sun, 13 Oct 2019 21:12:08 -0400 Subject: [PATCH] Added sunset notification --- automations.yaml | 43 ++++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/automations.yaml b/automations.yaml index 1c322bf..dd6ed11 100755 --- a/automations.yaml +++ b/automations.yaml @@ -91,10 +91,6 @@ trigger: platform: template value_template: "{{ states('sensor.time') == (state_attr('input_datetime.coffee_time', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}" - condition: - condition: state - entity_id: binary_sensor.workday_sensor - state: 'on' action: - service: scene.turn_on entity_id: scene.diminshed_livingroom_lighting @@ -109,15 +105,6 @@ trigger: platform: template value_template: "{{ states('sensor.time') == (state_attr('input_datetime.good_morning', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}" - condition: - condition: or - conditions: - - condition: state - entity_id: binary_sensor.workday_sensor - state: 'on' - - condition: state - entity_id: calendar.skylar_school - state: 'on' action: - service: scene.turn_on entity_id: scene.normal_livingroom_lighting @@ -286,6 +273,21 @@ - service: alarm_control_panel.alarm_arm_away entity_id: alarm_control_panel.ah_base_station +- id: sunset + alias: Sunset + initial_state: true + trigger: + - platform: sun + event: sunset + action: + - service: alarm_control_panel.alarm_arm_away + entity_id: alarm_control_panel.ah_base_station + - service: script.ah_report + data: + call_interuption: 1 + call_dark_outside: 1 + call_garage_door_status: 1 + - id: outside_lights_off_sunrise alias: Outside Lights off at Sunrise initial_state: true @@ -474,7 +476,7 @@ {% elif states.binary_sensor.workday_sensor.state == 'on' %} 06:30 {% else %} - 07:00 + 07:25 {% endif %} - id: upstairs_fan_on @@ -621,20 +623,7 @@ from: 'off' to: 'on' action: - - service: input_boolean.turn_on - entity_id: input_boolean.new_ha_announcement -- id: new_ha_annc - alias: New HA Annc - initial_state: true - trigger: - - entity_id: input_boolean.new_ha_announcement - from: 'Off' - platform: state - to: 'On' - action: - service: script.twitter_new_ha - - service: input_boolean.turn_off - entity_id: input_boolean.new_ha_announcement - service: ifttt.trigger data_template: {"event":"GitPost", "value1":"Home Assistant {{ states.binary_sensor.updater.attributes.newest_version }} is now available.", "value2":"{{ states.binary_sensor.updater.attributes.newest_version }}"} ###########################