mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-11-07 01:52:11 +00:00
Starting to build out Holiday color programs
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
- group.living_room_accents
|
- group.living_room_accents
|
||||||
- service: script.holiday_switches_on
|
- service: script.holiday_switches_on
|
||||||
- delay: '00:{{ (range(1, 30)|random|int) }}:00'
|
- delay: '00:{{ (range(1, 30)|random|int) }}:00'
|
||||||
- service: script.monthly_front_house_scene
|
- service: script.monthly_color_scene
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data:
|
data:
|
||||||
value1: 'Sunset has occurred. I will turn on the outside lights now.'
|
value1: 'Sunset has occurred. I will turn on the outside lights now.'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
###################################
|
###################################
|
||||||
scene.front_full_brightness:
|
scene.front_full_brightness:
|
||||||
friendly_name: 'Front Full Brightness'
|
friendly_name: 'Front Full Brightness'
|
||||||
emulated_hue: False
|
emulated_hue: True
|
||||||
hidden: false
|
hidden: false
|
||||||
|
|
||||||
scene.living_room_tv_time:
|
scene.living_room_tv_time:
|
||||||
@@ -11,17 +11,17 @@ scene.living_room_tv_time:
|
|||||||
emulated_hue: True
|
emulated_hue: True
|
||||||
hidden: false
|
hidden: false
|
||||||
|
|
||||||
scene.month_front_12_colors:
|
scene.month_12_colors:
|
||||||
friendly_name: 'Month Front 12 Colors'
|
friendly_name: 'Month 12 Colors'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: true
|
hidden: true
|
||||||
|
|
||||||
scene.month_front_01_colors:
|
scene.month_01_colors:
|
||||||
friendly_name: 'Month Front 01 Colors'
|
friendly_name: 'Month 01 Colors'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: true
|
hidden: true
|
||||||
|
|
||||||
scene.month_front_02_colors:
|
scene.month_02_colors:
|
||||||
friendly_name: 'Month Front 02 Colors'
|
friendly_name: 'Month 02 Colors'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: true
|
hidden: true
|
||||||
@@ -37,7 +37,7 @@ script.interior_off:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
script.monthly_front_house_scene:
|
script.monthly_color_scene:
|
||||||
friendly_name: 'Monthly Front House Scene'
|
friendly_name: 'Monthly Front House Scene'
|
||||||
emulated_hue: False
|
emulated_hue: False
|
||||||
hidden: False
|
hidden: False
|
||||||
|
|||||||
@@ -2,20 +2,17 @@
|
|||||||
# http://www.colorhexa.com/color-names
|
# http://www.colorhexa.com/color-names
|
||||||
|
|
||||||
# service: scene.turn_on
|
# service: scene.turn_on
|
||||||
# entity_id: scene.month_front_01_colors
|
# entity_id: scene.month_01_colors
|
||||||
|
|
||||||
|
|
||||||
- name: month_front_01_colors
|
- name: month_01_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
|
||||||
color_name: 'Gold'
|
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
|
||||||
color_name: 'Gold'
|
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color_name: 'Gold'
|
color_name: 'Gold'
|
||||||
|
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color_name: 'Gold'
|
color_name: 'Gold'
|
||||||
@@ -30,7 +27,7 @@
|
|||||||
color_name: 'Yellow'
|
color_name: 'Yellow'
|
||||||
# brightness: 150
|
# brightness: 150
|
||||||
|
|
||||||
- name: month_front_02_colors
|
- name: month_02_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
@@ -55,7 +52,7 @@
|
|||||||
# color_name: 'Pink'
|
# color_name: 'Pink'
|
||||||
# brightness: 150
|
# brightness: 150
|
||||||
|
|
||||||
- name: month_front_12_colors
|
- name: month_12_colors
|
||||||
entities:
|
entities:
|
||||||
|
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
@@ -34,7 +34,7 @@ front_house_motion:
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: group.outdoor_front_lights
|
entity_id: group.outdoor_front_lights
|
||||||
- delay: '00:00:10'
|
- delay: '00:00:10'
|
||||||
- service: script.monthly_front_house_scene
|
- service: script.monthly_color_scene
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
38
script/monthly_colors_scene.yaml
Executable file
38
script/monthly_colors_scene.yaml
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
######################################################################################################
|
||||||
|
###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_color_scene
|
||||||
|
#
|
||||||
|
# scenes should be named month_[01-12]_colors (month_06_colors)
|
||||||
|
######################################################################################################
|
||||||
|
|
||||||
|
monthly_color_scene:
|
||||||
|
sequence:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sun.sun
|
||||||
|
state: 'below_horizon'
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.alert_mode
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
|
- service: logbook.log
|
||||||
|
data_template:
|
||||||
|
name: "Launching Scene:"
|
||||||
|
message: >
|
||||||
|
"scene.month_
|
||||||
|
{%- if now().strftime("%m%d")|int > 202 and now().strftime("%m%d")|int < 206 -%}
|
||||||
|
valentines_day
|
||||||
|
{%- else -%}
|
||||||
|
{{ states('sensor.date').split('-')[1] }}
|
||||||
|
{%- endif -%}_colors"
|
||||||
|
|
||||||
|
- service: scene.turn_on
|
||||||
|
data_template:
|
||||||
|
entity_id: >
|
||||||
|
"scene.month_
|
||||||
|
{%- if now().strftime("%m%d")|int > 202 and now().strftime("%m%d")|int < 206 -%}
|
||||||
|
valentines_day
|
||||||
|
{%- else -%}
|
||||||
|
{{ states('sensor.date').split('-')[1] }}
|
||||||
|
{%- endif -%}_colors"
|
||||||
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
######################################################################################################
|
|
||||||
###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_[01-12]_colors (month_front_06_colors)
|
|
||||||
######################################################################################################
|
|
||||||
|
|
||||||
monthly_front_house_scene:
|
|
||||||
sequence:
|
|
||||||
- condition: state
|
|
||||||
entity_id: sun.sun
|
|
||||||
state: 'below_horizon'
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.alert_mode
|
|
||||||
state: 'off'
|
|
||||||
|
|
||||||
- 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"
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user