mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Rainy day code fixed. and started downthe oliday path for colored front lights.
This commit is contained in:
@@ -50,8 +50,8 @@
|
|||||||
- alias: 'Rain is over'
|
- alias: 'Rain is over'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
entity_id: sensor.dark_sky_cloud_coverage
|
entity_id: sensor.dark_sky_precip_intensity
|
||||||
above: 90
|
below: 1
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
@@ -7,113 +7,23 @@
|
|||||||
|
|
||||||
- name: month_01_colors
|
- name: month_01_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
group.outdoor_front_lights:
|
||||||
light.outdoor_sconce_1:
|
|
||||||
light.outdoor_sconce_2:
|
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color_name: 'Gold'
|
color_name: 'Gold'
|
||||||
|
|
||||||
light.outdoor_sconce_3:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Gold'
|
|
||||||
light.garage_left:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Yellow'
|
|
||||||
light.garage_small:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Yellow'
|
|
||||||
light.outdoor_den:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Yellow'
|
|
||||||
# brightness: 150
|
|
||||||
|
|
||||||
- name: month_02_colors
|
- name: month_02_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_sconce_1:
|
group.outdoor_front_lights:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color_name: 'Hot Pink'
|
color_name: 'Hot Pink'
|
||||||
light.outdoor_sconce_2:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Hot Pink'
|
|
||||||
light.outdoor_sconce_3:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Hot Pink'
|
|
||||||
light.outdoor_foyer:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Hot Pink'
|
|
||||||
# light.garage_left:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'Pink'
|
|
||||||
# light.garage_small:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'Pink'
|
|
||||||
# light.outdoor_den:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'Pink'
|
|
||||||
# brightness: 150
|
|
||||||
|
|
||||||
- name: month_12_colors
|
|
||||||
entities:
|
|
||||||
|
|
||||||
light.outdoor_foyer:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Blue'
|
|
||||||
# brightness: 255
|
|
||||||
light.outdoor_sconce_1:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Gold'
|
|
||||||
# brightness: 255
|
|
||||||
light.outdoor_sconce_2:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Blue'
|
|
||||||
# brightness: 255
|
|
||||||
light.outdoor_sconce_3:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Blue'
|
|
||||||
# brightness: 255
|
|
||||||
light.garage_left:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Royal Blue'
|
|
||||||
# brightness: 255
|
|
||||||
light.garage_small:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Royal Blue'
|
|
||||||
# brightness: 255
|
|
||||||
light.outdoor_den:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'Royal Blue'
|
|
||||||
# brightness: 255
|
|
||||||
|
|
||||||
- name: front_full_brightness
|
- name: front_full_brightness
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
group.outdoor_front_lights:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
color_name: 'White'
|
color_name: 'White'
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.outdoor_sconce_1:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'White'
|
|
||||||
brightness: 255
|
|
||||||
light.outdoor_sconce_2:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'White'
|
|
||||||
brightness: 255
|
|
||||||
light.outdoor_sconce_3:
|
|
||||||
state: 'on'
|
|
||||||
color_name: 'White'
|
|
||||||
brightness: 255
|
|
||||||
# light.garage_left:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'White'
|
|
||||||
# brightness: 255
|
|
||||||
# light.garage_small:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'White'
|
|
||||||
# brightness: 255
|
|
||||||
# light.outdoor_den:
|
|
||||||
# state: 'on'
|
|
||||||
# color_name: 'White'
|
|
||||||
# brightness: 255
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -30,9 +30,55 @@ monthly_color_scene:
|
|||||||
data_template:
|
data_template:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
"scene.month_
|
"scene.month_
|
||||||
{%- if now().strftime("%m%d")|int > 202 and now().strftime("%m%d")|int < 206 -%}
|
{%- if now().strftime("%m%d")|int == 101 -%}
|
||||||
valentines_day
|
new_years_day
|
||||||
|
{%- elif now().strftime("%m%d")|int == 212
|
||||||
|
or now().strftime("%m%d")|int == 220
|
||||||
|
or now().strftime("%m%d")|int == 520
|
||||||
|
or now().strftime("%m%d")|int == 529
|
||||||
|
or now().strftime("%m%d")|int == 614
|
||||||
|
or now().strftime("%m%d")|int == 704
|
||||||
|
or now().strftime("%m%d")|int == 904
|
||||||
|
or now().strftime("%m%d")|int == 911
|
||||||
|
or now().strftime("%m%d")|int == 1111
|
||||||
|
-%}
|
||||||
|
RWB
|
||||||
|
{%- elif now().strftime("%m%d")|int >= 210
|
||||||
|
and now().strftime("%m%d")|int <= 214-%}
|
||||||
|
valentine
|
||||||
|
{%- elif now().strftime("%m%d")|int == 228 -%}
|
||||||
|
marti_gras
|
||||||
|
{%- elif now().strftime("%m%d")|int >= 314
|
||||||
|
and now().strftime("%m%d")|int <= 317-%}
|
||||||
|
st_patty
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ states('sensor.date').split('-')[1] }}
|
{{ states('sensor.date').split('-')[1] }}
|
||||||
{%- endif -%}_colors"
|
{%- endif -%}_colors"
|
||||||
|
|
||||||
|
|
||||||
|
# http://www.calendar-365.com/holidays/2017.html
|
||||||
|
# 101 New_years_day (colorloop)
|
||||||
|
# RWB 212 Lincoln's Birthday
|
||||||
|
# 214 Valentine's Day (pink, red)
|
||||||
|
# RWB 220 President's Day
|
||||||
|
# 228 Mardi Gras (purple, green, gold )
|
||||||
|
# 317 st Patty (green)
|
||||||
|
# 414 Good Friday
|
||||||
|
# 416 Easter
|
||||||
|
# 422 Earth Day
|
||||||
|
# 505 Cinco de Mayo
|
||||||
|
# 514 Mother's Day
|
||||||
|
# RWB 520 Armed Forces Day
|
||||||
|
# RWB 529 Memorial Day
|
||||||
|
# RWB 614 Flag Day
|
||||||
|
# 618 Fathers day
|
||||||
|
# RWB 704 July 4th
|
||||||
|
# RWB 904 Labor Day
|
||||||
|
# RWB 911 Patriots day
|
||||||
|
# 1009 columbus day
|
||||||
|
# 1031 halloween
|
||||||
|
# RWB 1111 veterans day
|
||||||
|
# 1123 Thanksgiving
|
||||||
|
# 1212 Hanukkah start 8 days.
|
||||||
|
# 1225 Chrismas
|
||||||
|
# 1231 New years eve
|
Reference in New Issue
Block a user