From 4cfc88b026f19081c946f43931e981a97881b7b4 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Fri, 2 Dec 2016 03:13:08 +0000 Subject: [PATCH] Super Cool Monthly Scenes thanks to @DALE3H! --- ...mber_front.yaml => monthly_front_colors.yaml} | 16 ++++++++++------ script/monthly_front_house_scene.yaml | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) rename scene/{december_front.yaml => monthly_front_colors.yaml} (57%) create mode 100755 script/monthly_front_house_scene.yaml diff --git a/scene/december_front.yaml b/scene/monthly_front_colors.yaml similarity index 57% rename from scene/december_front.yaml rename to scene/monthly_front_colors.yaml index df68e843..21b8e715 100755 --- a/scene/december_front.yaml +++ b/scene/monthly_front_colors.yaml @@ -1,21 +1,25 @@ -- name: December Front +- name: month_front_12_colors entities: - light.outdoor_scounce_2: + light.outdoor_sconce_2: state: on -# transition: 400 + transition: 400 rgb_color: [206,22,32] brightness: 255 - light.outdoor_scounce_1: + light.outdoor_sconce_1: state: on -# transition: 400 + transition: 400 rgb_color: [61,178,112] brightness: 255 light.outdoor_foyer: state: on -# transition: 400 + transition: 400 rgb_color: [206,22,32] brightness: 255 + light.outdoor_sconce_3: + state: on + brightness: 255 + #Color Table #rgb_color: [61,178,112] #Green #rgb_color: [255,112,242] #Purple #rgb_color: [206,22,32] #red diff --git a/script/monthly_front_house_scene.yaml b/script/monthly_front_house_scene.yaml new file mode 100755 index 00000000..c5452cad --- /dev/null +++ b/script/monthly_front_house_scene.yaml @@ -0,0 +1,14 @@ +###################################################################################################### +###Script to turn on scene for the appropriate month for the front of the house. +# 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: + - service: scene.turn_on + data_template: + entity_id: "scene.month_front_{{ states('sensor.date').split('-')[1] }}_colors" + \ No newline at end of file