added scripts et al
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# Youtube Video description of how I use this script
|
||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||
# http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html
|
||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||
######################################################################################################
|
||||
###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)
|
||||
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
|
||||
######################################################################################################
|
||||
|
||||
andreas_color_scene:
|
||||
sequence:
|
||||
# - condition: state
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
|
||||
- service: script.turn_on
|
||||
data_template:
|
||||
entity_id: >
|
||||
script.andreas_
|
||||
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||
new_years_day
|
||||
{%- elif now().strftime("%m%d")|int >= 210
|
||||
and now().strftime("%m%d")|int <= 214 -%}
|
||||
valentine
|
||||
{%- elif now().strftime("%m%d")|int == 305 -%}
|
||||
mardi_gras
|
||||
{%- elif now().strftime("%m%d")|int == 314 -%}
|
||||
pi
|
||||
{%- elif now().strftime("%m%d")|int >= 315
|
||||
and now().strftime("%m%d")|int <= 317 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 324
|
||||
and now().strftime("%m%d")|int <= 330 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 401
|
||||
and now().strftime("%m%d")|int <= 413 -%}
|
||||
easter
|
||||
{%- elif now().strftime("%m%d")|int == 504 -%}
|
||||
starwars
|
||||
{%- elif now().strftime("%m%d")|int == 505 -%}
|
||||
cinco_de_mayo
|
||||
{%- elif now().strftime("%m%d")|int == 510 -%}
|
||||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 605 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 1029
|
||||
and now().strftime("%m%d")|int <= 1031 -%}
|
||||
halloween
|
||||
{%- elif now().strftime("%m%d")|int >= 1128
|
||||
and now().strftime("%m%d")|int <= 1130 -%}
|
||||
thanksgiving
|
||||
{%- elif now().strftime("%m%d")|int >= 1125
|
||||
and now().strftime("%m%d")|int <= 1230 -%}
|
||||
christmas
|
||||
{%- elif now().strftime("%m%d")|int == 1231 -%}
|
||||
new_years_day
|
||||
{%- else -%}
|
||||
standard
|
||||
{%- endif -%}_colors
|
||||
|
||||
|
||||
# http://www.calendar-365.com/holidays/2020.html
|
||||
# Updated for 2020
|
||||
@@ -0,0 +1,210 @@
|
||||
andreas_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_valentine_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_mardi_gras_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Purple'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_pi_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_st_patty_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_easter_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_starwars_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_cinco_de_mayo_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_mothers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_fathers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_halloween_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_thanksgiving_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_christmas_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Red'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
andreas_new_years_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.andreas_lysstrip
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
# transition: 30
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# Youtube Video description of how I use this script
|
||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||
# http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html
|
||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||
######################################################################################################
|
||||
###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)
|
||||
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
|
||||
######################################################################################################
|
||||
|
||||
bed_color_scene:
|
||||
sequence:
|
||||
# - condition: state
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
|
||||
- service: script.turn_on
|
||||
data_template:
|
||||
entity_id: >
|
||||
script.bed_
|
||||
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||
new_years_day
|
||||
{%- elif now().strftime("%m%d")|int >= 210
|
||||
and now().strftime("%m%d")|int <= 214 -%}
|
||||
valentine
|
||||
{%- elif now().strftime("%m%d")|int == 305 -%}
|
||||
mardi_gras
|
||||
{%- elif now().strftime("%m%d")|int == 314 -%}
|
||||
pi
|
||||
{%- elif now().strftime("%m%d")|int >= 315
|
||||
and now().strftime("%m%d")|int <= 317 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 324
|
||||
and now().strftime("%m%d")|int <= 330 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 401
|
||||
and now().strftime("%m%d")|int <= 413 -%}
|
||||
easter
|
||||
{%- elif now().strftime("%m%d")|int == 504 -%}
|
||||
starwars
|
||||
{%- elif now().strftime("%m%d")|int == 505 -%}
|
||||
cinco_de_mayo
|
||||
{%- elif now().strftime("%m%d")|int == 510 -%}
|
||||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 605 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 1001
|
||||
and now().strftime("%m%d")|int <= 1031 -%}
|
||||
halloween
|
||||
{%- elif now().strftime("%m%d")|int >= 1128
|
||||
and now().strftime("%m%d")|int <= 1130 -%}
|
||||
thanksgiving
|
||||
{%- elif now().strftime("%m%d")|int >= 1125
|
||||
and now().strftime("%m%d")|int <= 1230 -%}
|
||||
christmas
|
||||
{%- elif now().strftime("%m%d")|int == 1231 -%}
|
||||
new_years_day
|
||||
{%- else -%}
|
||||
standard
|
||||
{%- endif -%}_colors
|
||||
|
||||
|
||||
# http://www.calendar-365.com/holidays/2020.html
|
||||
# Updated for 2020
|
||||
@@ -0,0 +1,210 @@
|
||||
bed_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_valentine_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_mardi_gras_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Purple'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_pi_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_st_patty_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_easter_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [255,193,204]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_starwars_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_cinco_de_mayo_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_mothers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_fathers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_halloween_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
rgb_color: [96,0,128]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_thanksgiving_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_christmas_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Red'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
bed_new_years_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.anne
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.claus
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# Youtube Video description of how I use this script
|
||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||
# http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html
|
||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||
######################################################################################################
|
||||
###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)
|
||||
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
|
||||
######################################################################################################
|
||||
|
||||
daniel_color_scene:
|
||||
sequence:
|
||||
# - condition: state
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
|
||||
- service: script.turn_on
|
||||
data_template:
|
||||
entity_id: >
|
||||
script.daniel_
|
||||
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||
new_years_day
|
||||
{%- elif now().strftime("%m%d")|int >= 210
|
||||
and now().strftime("%m%d")|int <= 214 -%}
|
||||
valentine
|
||||
{%- elif now().strftime("%m%d")|int == 305 -%}
|
||||
mardi_gras
|
||||
{%- elif now().strftime("%m%d")|int == 314 -%}
|
||||
pi
|
||||
{%- elif now().strftime("%m%d")|int >= 315
|
||||
and now().strftime("%m%d")|int <= 317 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 324
|
||||
and now().strftime("%m%d")|int <= 330 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 401
|
||||
and now().strftime("%m%d")|int <= 413 -%}
|
||||
easter
|
||||
{%- elif now().strftime("%m%d")|int == 504 -%}
|
||||
starwars
|
||||
{%- elif now().strftime("%m%d")|int == 505 -%}
|
||||
cinco_de_mayo
|
||||
{%- elif now().strftime("%m%d")|int == 510 -%}
|
||||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 605 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 1029
|
||||
and now().strftime("%m%d")|int <= 1031 -%}
|
||||
halloween
|
||||
{%- elif now().strftime("%m%d")|int >= 1128
|
||||
and now().strftime("%m%d")|int <= 1130 -%}
|
||||
thanksgiving
|
||||
{%- elif now().strftime("%m%d")|int >= 1125
|
||||
and now().strftime("%m%d")|int <= 1230 -%}
|
||||
christmas
|
||||
{%- elif now().strftime("%m%d")|int == 1231 -%}
|
||||
new_years_day
|
||||
{%- else -%}
|
||||
standard
|
||||
{%- endif -%}_colors
|
||||
|
||||
|
||||
# http://www.calendar-365.com/holidays/2020.html
|
||||
# Updated for 2020
|
||||
@@ -0,0 +1,294 @@
|
||||
daniel_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_valentine_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_mardi_gras_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Purple'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_pi_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_st_patty_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_easter_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [255,193,204]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_starwars_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_cinco_de_mayo_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_mothers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_fathers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_halloween_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
rgb_color: [127,14,0]
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_thanksgiving_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_christmas_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Red'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
daniel_new_years_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.daniel_lysstrip
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.bamse
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# Youtube Video description of how I use this script
|
||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||
# http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html
|
||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||
######################################################################################################
|
||||
###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.have_color_scene
|
||||
#
|
||||
# scenes should be named month_[01-12]_colors (month_06_colors)
|
||||
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
|
||||
######################################################################################################
|
||||
|
||||
have_color_scene:
|
||||
sequence:
|
||||
# - condition: state
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
|
||||
- service: script.turn_on
|
||||
data_template:
|
||||
entity_id: >
|
||||
script.have_
|
||||
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||
new_years_day
|
||||
{%- elif now().strftime("%m%d")|int >= 210
|
||||
and now().strftime("%m%d")|int <= 214 -%}
|
||||
valentine
|
||||
{%- elif now().strftime("%m%d")|int == 305 -%}
|
||||
mardi_gras
|
||||
{%- elif now().strftime("%m%d")|int == 314 -%}
|
||||
pi
|
||||
{%- elif now().strftime("%m%d")|int >= 315
|
||||
and now().strftime("%m%d")|int <= 317 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 324
|
||||
and now().strftime("%m%d")|int <= 330 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 401
|
||||
and now().strftime("%m%d")|int <= 413 -%}
|
||||
easter
|
||||
{%- elif now().strftime("%m%d")|int == 504 -%}
|
||||
starwars
|
||||
{%- elif now().strftime("%m%d")|int == 505 -%}
|
||||
cinco_de_mayo
|
||||
{%- elif now().strftime("%m%d")|int == 510 -%}
|
||||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 605 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 1001
|
||||
and now().strftime("%m%d")|int <= 1031 -%}
|
||||
halloween
|
||||
{%- elif now().strftime("%m%d")|int >= 1128
|
||||
and now().strftime("%m%d")|int <= 1130 -%}
|
||||
thanksgiving
|
||||
{%- elif now().strftime("%m%d")|int >= 1125
|
||||
and now().strftime("%m%d")|int <= 1230 -%}
|
||||
christmas
|
||||
{%- elif now().strftime("%m%d")|int == 1231 -%}
|
||||
new_years_day
|
||||
{%- else -%}
|
||||
standard
|
||||
{%- endif -%}_colors
|
||||
|
||||
|
||||
# http://www.calendar-365.com/holidays/2020.html
|
||||
# Updated for 2020
|
||||
@@ -0,0 +1,294 @@
|
||||
have_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
have_valentine_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_mardi_gras_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Purple'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_pi_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_st_patty_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_easter_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [255,193,204]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_starwars_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_cinco_de_mayo_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_mothers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_fathers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_halloween_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_thanksgiving_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_christmas_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Red'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
have_new_years_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_1
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_2
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.hue_outdoor_spot_3
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
#-------------------------------------------
|
||||
# @CCOSTAN
|
||||
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||
# Youtube Video description of how I use this script
|
||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||
# http://www.vmwareinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html
|
||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||
######################################################################################################
|
||||
###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)
|
||||
# Color help - http://www.esbnyc.com/explore/tower-lights/calendar
|
||||
######################################################################################################
|
||||
|
||||
monthly_color_scene:
|
||||
sequence:
|
||||
# - condition: state
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
|
||||
- service: script.turn_on
|
||||
data_template:
|
||||
entity_id: >
|
||||
script.monthly_
|
||||
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||
new_years_day
|
||||
{%- elif now().strftime("%m%d")|int >= 210
|
||||
and now().strftime("%m%d")|int <= 214 -%}
|
||||
valentine
|
||||
{%- elif now().strftime("%m%d")|int == 305 -%}
|
||||
mardi_gras
|
||||
{%- elif now().strftime("%m%d")|int == 314 -%}
|
||||
pi
|
||||
{%- elif now().strftime("%m%d")|int >= 315
|
||||
and now().strftime("%m%d")|int <= 317 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 324
|
||||
and now().strftime("%m%d")|int <= 330 -%}
|
||||
st_patty
|
||||
{%- elif now().strftime("%m%d")|int >= 401
|
||||
and now().strftime("%m%d")|int <= 413 -%}
|
||||
easter
|
||||
{%- elif now().strftime("%m%d")|int == 504 -%}
|
||||
starwars
|
||||
{%- elif now().strftime("%m%d")|int == 505 -%}
|
||||
cinco_de_mayo
|
||||
{%- elif now().strftime("%m%d")|int == 510 -%}
|
||||
mothers_day
|
||||
{%- elif now().strftime("%m%d")|int == 605 -%}
|
||||
fathers_day
|
||||
{%- elif now().strftime("%m%d")|int >= 1020
|
||||
and now().strftime("%m%d")|int <= 1031 -%}
|
||||
halloween
|
||||
{%- elif now().strftime("%m%d")|int >= 1128
|
||||
and now().strftime("%m%d")|int <= 1130 -%}
|
||||
thanksgiving
|
||||
{%- elif now().strftime("%m%d")|int >= 1125
|
||||
and now().strftime("%m%d")|int <= 1230 -%}
|
||||
christmas
|
||||
{%- elif now().strftime("%m%d")|int == 1231 -%}
|
||||
new_years_day
|
||||
{%- else -%}
|
||||
standard
|
||||
{%- endif -%}_colors
|
||||
|
||||
|
||||
# http://www.calendar-365.com/holidays/2020.html
|
||||
# Updated for 2020
|
||||
@@ -0,0 +1,294 @@
|
||||
monthly_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 80
|
||||
transition: 300
|
||||
|
||||
monthly_valentine_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Crimson'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_mardi_gras_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Purple'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_pi_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [3,14,159]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_st_patty_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Green'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_easter_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [255,193,204]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_starwars_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_cinco_de_mayo_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
rgb_color: [204,0,0]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [245,245,245]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_mothers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [244,187,255]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_fathers_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_halloween_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
rgb_color: [235,97,35]
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_thanksgiving_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Orange'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_christmas_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Red'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Green'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
monthly_new_years_day_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stue
|
||||
color_name: 'Gold'
|
||||
brightness_pct: 50
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.raket
|
||||
color_name: 'Blue'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
- service: light.turn_on
|
||||
data:
|
||||
entity_id: light.stol
|
||||
color_name: 'Yellow'
|
||||
brightness_pct: 80
|
||||
transition: 900
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#https://github.com/arsaboo/homeassistant-config/blob/master/scripts.yaml
|
||||
sonos_announce:
|
||||
alias: "Sonos announce script"
|
||||
sequence:
|
||||
# - service: scene.create
|
||||
# data:
|
||||
# scene_id: before
|
||||
# snapshot_entities:
|
||||
# - light.hue_lightstrip_plus_1
|
||||
# - light.hue_lightstrip_plus_1_2
|
||||
# - service: light.turn_on
|
||||
# data:
|
||||
# entity_id: light.hue_lightstrip_plus_1
|
||||
# brightness: 255
|
||||
# rgb_color: [255, 0, 0]
|
||||
# flash: long
|
||||
# - service: light.turn_on
|
||||
# data:
|
||||
# entity_id: light.hue_lightstrip_plus_1_2
|
||||
# brightness: 255
|
||||
# rgb_color: [255, 0, 0]
|
||||
# flash: long
|
||||
# - delay: 2
|
||||
# - service: scene.turn_on
|
||||
# entity_id: scene.before
|
||||
- service: sonos.snapshot
|
||||
data:
|
||||
entity_id:
|
||||
- media_player.andreas
|
||||
- media_player.daniel
|
||||
with_group: yes
|
||||
- service: sonos.unjoin
|
||||
data:
|
||||
entity_id: media_player.andreas
|
||||
- service: sonos.unjoin
|
||||
data:
|
||||
entity_id: media_player.daniel
|
||||
- service: sonos.join
|
||||
data:
|
||||
master: media_player.daniel
|
||||
entity_id: media_player.andreas
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.daniel
|
||||
volume_level: 0.4
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
entity_id: media_player.andreas
|
||||
volume_level: 0.4
|
||||
- service: tts.google_translate_say
|
||||
data_template:
|
||||
entity_id: media_player.daniel
|
||||
message: "Vi skal spise nu"
|
||||
- delay: '00:00:10'
|
||||
- service: sonos.restore
|
||||
data:
|
||||
entity_id:
|
||||
- media_player.andreas
|
||||
- media_player.daniel
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#https://github.com/arsaboo/homeassistant-config/blob/master/scripts.yaml
|
||||
sonos_say:
|
||||
alias: "Sonos TTS script"
|
||||
sequence:
|
||||
- service: sonos.snapshot
|
||||
data_template:
|
||||
entity_id: "{{ sonos_entity|default('media_player.alrum') }}"
|
||||
- service: sonos.unjoin
|
||||
data_template:
|
||||
entity_id: "{{ sonos_entity|default('media_player.alrum') }}"
|
||||
- service: media_player.volume_set
|
||||
data_template:
|
||||
entity_id: "{{ sonos_entity|default('media_player.alrum') }}"
|
||||
volume_level: "{{ volume|default(0.5) }}"
|
||||
- service: tts.google_translate_say
|
||||
data_template:
|
||||
entity_id: "{{ sonos_entity|default('media_player.alrum') }}"
|
||||
message: "{{ message }}"
|
||||
- delay: "{{ delay|default('00:00:00') }}"
|
||||
- wait_template: "{{ is_state(sonos_entity|default('media_player.alrum'), 'playing') }}"
|
||||
timeout: '00:00:05'
|
||||
- service: sonos.restore
|
||||
data_template:
|
||||
entity_id: "{{ sonos_entity|default('media_player.alrum') }}"
|
||||
Reference in New Issue
Block a user