From a6c01f8902a64944ca02596c7bb922e401fb3f99 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 2 Feb 2017 02:15:33 +0000 Subject: [PATCH] Fix Stupid horizon typo! --- automation/sunrise_turnon_and_off.yaml | 5 +++-- script/front_house_motion.yaml | 2 +- script/monthly_front_house_scene.yaml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/automation/sunrise_turnon_and_off.yaml b/automation/sunrise_turnon_and_off.yaml index 118c9b6d..0d7d337a 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/script/front_house_motion.yaml b/script/front_house_motion.yaml index 35a9df32..dd079a4e 100755 --- a/script/front_house_motion.yaml +++ b/script/front_house_motion.yaml @@ -14,7 +14,7 @@ front_house_motion: - condition: state entity_id: sun.sun - state: 'below.horizon' + state: 'below_horizon' - service: scene.turn_on entity_id: scene.front_full_brightness - delay: '00:{{ (range(5, 20)|random|int) }}:00' diff --git a/script/monthly_front_house_scene.yaml b/script/monthly_front_house_scene.yaml index 3610b386..29ff84c7 100755 --- a/script/monthly_front_house_scene.yaml +++ b/script/monthly_front_house_scene.yaml @@ -10,7 +10,7 @@ monthly_front_house_scene: sequence: - condition: state entity_id: sun.sun - state: 'below.horizon' + state: 'below_horizon' - service: logbook.log data_template: