From a002e342d5957f891b59a5414a082e14c5dd6be3 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sat, 14 Jan 2017 02:18:13 +0000 Subject: [PATCH] Some Housekeeping for my new Hue Light. --- scene/monthly_front_colors.yaml | 3 +++ script/monthly_front_house_scene.yaml | 33 ++++++++++++++------------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/scene/monthly_front_colors.yaml b/scene/monthly_front_colors.yaml index 62a40c17..fe4edcd8 100755 --- a/scene/monthly_front_colors.yaml +++ b/scene/monthly_front_colors.yaml @@ -21,6 +21,7 @@ brightness: 255 light.outdoor_sconce_3: state: on + color_name: 'Gold' brightness: 255 light.garage_left: state: on @@ -52,6 +53,7 @@ brightness: 255 light.outdoor_sconce_3: state: on + color_name: 'Blue' brightness: 255 light.garage_left: state: on @@ -82,6 +84,7 @@ brightness: 255 light.outdoor_sconce_3: state: on + color_name: 'White' brightness: 255 light.garage_left: state: on diff --git a/script/monthly_front_house_scene.yaml b/script/monthly_front_house_scene.yaml index 0b5e3882..71795f53 100755 --- a/script/monthly_front_house_scene.yaml +++ b/script/monthly_front_house_scene.yaml @@ -1,17 +1,18 @@ -###################################################################################################### -###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down. -# action: -# - service: script.monthly_front_house_scene -# -# scenes should be named month_front_[1-12]_colors (month_front_6_colors) -###################################################################################################### - -monthly_front_house_scene: - sequence: - - condition: sun - before: 'sunrise' - - - service: scene.turn_on - data_template: - entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors" +###################################################################################################### +###Script to turn on scene for the appropriate month for the front of the house but only when the sun is down. +# action: +# - service: script.monthly_front_house_scene +# +# scenes should be named month_front_[1-12]_colors (month_front_6_colors) +###################################################################################################### + +monthly_front_house_scene: + sequence: + - condition: state + entity_id: sun.sun + state: 'below.horizon' + + - service: scene.turn_on + data_template: + entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors" \ No newline at end of file