From 6719fca9e95dc53c2caf9880a4c81c009792a49d Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 2 Feb 2017 02:11:17 +0000 Subject: [PATCH] Fix sunset trigger. --- automation/sunrise_turnon_and_off.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/automation/sunrise_turnon_and_off.yaml b/automation/sunrise_turnon_and_off.yaml index 049a8a42..118c9b6d 100755 --- a/automation/sunrise_turnon_and_off.yaml +++ b/automation/sunrise_turnon_and_off.yaml @@ -4,9 +4,8 @@ - alias: 'Sunset Stuff on' trigger: - - platform: state - entity_id: sun.sun - state: 'below.horizon' + - platform: sun + event: sunset action: - service: switch.turn_on @@ -17,8 +16,6 @@ - light.outdoor_bathroom - light.tv_light - light.tv_stand_light - data: - transition: 1200 - service: script.holiday_switches_on - delay: '00:{{ (range(1, 59)|random|int) }}:00' - service: script.monthly_front_house_scene