From 3c8e5e9d66dd372ee3e404902a71d99d370eb70f Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sat, 21 Jan 2017 05:51:18 +0000 Subject: [PATCH] Monthly Scene code uses 2 digits for 1 through 9 months. --- scene/monthly_front_colors.yaml | 4 ++-- script/front_house_motion.yaml | 2 +- script/monthly_front_house_scene.yaml | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/scene/monthly_front_colors.yaml b/scene/monthly_front_colors.yaml index 51d8f1d4..5a785772 100755 --- a/scene/monthly_front_colors.yaml +++ b/scene/monthly_front_colors.yaml @@ -2,10 +2,10 @@ # http://www.w3schools.com/colors/colors_hex.asp # service: scene.turn_on -# entity_id: scene.month_front_1_colors +# entity_id: scene.month_front_01_colors -- name: month_front_1_colors +- name: month_front_01_colors entities: light.outdoor_sconce_2: state: 'on' diff --git a/script/front_house_motion.yaml b/script/front_house_motion.yaml index 55f55bfa..35a9df32 100755 --- a/script/front_house_motion.yaml +++ b/script/front_house_motion.yaml @@ -1,5 +1,5 @@ ###################################################################################################### -###[SkyBell HD](http://amzn.to/2dcexIB) Script to turn on Front light FULL bright for 15m when motion is detected and then return to the normal colors. +###[SkyBell HD](http://amzn.to/2dcexIB) Script to turn on Front light FULL bright for 5 to 20m when motion is detected and then return to the normal colors. # action: # - service: script.front_house_motion # diff --git a/script/monthly_front_house_scene.yaml b/script/monthly_front_house_scene.yaml index 71795f53..3610b386 100755 --- a/script/monthly_front_house_scene.yaml +++ b/script/monthly_front_house_scene.yaml @@ -3,7 +3,7 @@ # action: # - service: script.monthly_front_house_scene # -# scenes should be named month_front_[1-12]_colors (month_front_6_colors) +# scenes should be named month_front_[01-12]_colors (month_front_06_colors) ###################################################################################################### monthly_front_house_scene: @@ -12,6 +12,11 @@ monthly_front_house_scene: entity_id: sun.sun state: 'below.horizon' + - service: logbook.log + data_template: + name: "Launching Scene:" + message: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors" + - service: scene.turn_on data_template: entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors"