Updated for #469 - Removed unnecessary Comments - Added in YouTube Video - https://www.vcloudinfo.com/2020/10/simple-example-of-using-yaml-node-anchors-in-home-assistant.html
This commit is contained in:
parent
bb7edc269f
commit
76704610e7
|
@ -8,23 +8,23 @@
|
||||||
state: off
|
state: off
|
||||||
light.m1_back_right:
|
light.m1_back_right:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: &gold [255,223,0] # Gold
|
rgb_color: &gold [255,223,0]
|
||||||
brightness: 50
|
brightness: 50
|
||||||
light.m1_back_left:
|
light.m1_back_left:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *gold # Gold
|
rgb_color: *gold
|
||||||
brightness: 50
|
brightness: 50
|
||||||
light.tv_stand_light:
|
light.tv_stand_light:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *gold # Gold
|
rgb_color: *gold
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.tv_light:
|
light.tv_light:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *gold # Gold
|
rgb_color: *gold
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.couch_1:
|
light.couch_1:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *gold # Gold
|
rgb_color: *gold
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
|
||||||
- name: Red_living_Room
|
- name: Red_living_Room
|
||||||
|
@ -35,25 +35,25 @@
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.m1_front_right:
|
light.m1_front_right:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.m1_back_right:
|
light.m1_back_right:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.m1_back_left:
|
light.m1_back_left:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 150
|
brightness: 150
|
||||||
light.tv_stand_light:
|
light.tv_stand_light:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.tv_light:
|
light.tv_light:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 255
|
brightness: 255
|
||||||
light.couch_1:
|
light.couch_1:
|
||||||
state: on
|
state: on
|
||||||
rgb_color: *red # RED
|
rgb_color: *red
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
|
|
@ -4,13 +4,8 @@
|
||||||
# Youtube Video description of how I use this script
|
# Youtube Video description of how I use this script
|
||||||
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
# https://www.vcloudinfo.com/2018/10/easy-smart-home-gadgets-i-use-for-my.html
|
||||||
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
# https://www.vcloudinfo.com/2019/02/breaking-down-the-flag-sensor-in-home-assistant.html
|
||||||
|
# https://www.vcloudinfo.com/2020/10/simple-example-of-using-yaml-node-anchors-in-home-assistant.html
|
||||||
######################################################################################################
|
######################################################################################################
|
||||||
#Color Table
|
|
||||||
# http://www.colorhexa.com/color-names
|
|
||||||
# service: scene.turn_on
|
|
||||||
# entity_id: scene.month_standard_colors
|
|
||||||
######################################################################################################
|
|
||||||
|
|
||||||
- name: month_standard_colors
|
- name: month_standard_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_front_lights:
|
light.outdoor_front_lights:
|
||||||
|
@ -38,14 +33,12 @@
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Red'
|
rgb_color: *smoke
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: &blue [30,144,255]
|
rgb_color: &blue [30,144,255]
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
@ -55,19 +48,16 @@
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
|
|
||||||
- name: month_valentine_colors
|
- name: month_valentine_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_front_lights:
|
light.outdoor_front_lights:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Crimson'
|
rgb_color: &crimson [220,20,60]
|
||||||
rgb_color: [220,20,60]
|
|
||||||
|
|
||||||
- name: month_mardi_gras_colors
|
- name: month_mardi_gras_colors
|
||||||
entities:
|
entities:
|
||||||
|
@ -76,27 +66,21 @@
|
||||||
rgb_color: *gold
|
rgb_color: *gold
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Purple'
|
|
||||||
rgb_color: &purple [128,0,128]
|
rgb_color: &purple [128,0,128]
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Gold'
|
|
||||||
rgb_color: *gold
|
rgb_color: *gold
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Purple'
|
|
||||||
rgb_color: *purple
|
rgb_color: *purple
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Gold'
|
|
||||||
rgb_color: *gold
|
rgb_color: *gold
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Purple'
|
|
||||||
rgb_color: *purple
|
rgb_color: *purple
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: &green [0,128,0]
|
rgb_color: &green [0,128,0]
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
@ -106,148 +90,117 @@
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
|
|
||||||
- name: month_st_patty_colors
|
- name: month_st_patty_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_front_lights:
|
light.outdoor_front_lights:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
|
|
||||||
- name: month_pi_colors
|
- name: month_pi_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_front_lights:
|
light.outdoor_front_lights:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
rgb_color: [3,14,159]
|
rgb_color: [3,14,159] #Pi Value #Nerd
|
||||||
|
|
||||||
- name: month_easter_colors
|
- name: month_easter_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Lavender'
|
|
||||||
rgb_color: &lavender [244,187,255]
|
rgb_color: &lavender [244,187,255]
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Lavender'
|
|
||||||
rgb_color: *lavender
|
rgb_color: *lavender
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'yellow'
|
|
||||||
rgb_color: &yellow [255,255,0]
|
rgb_color: &yellow [255,255,0]
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Bubble Gum'
|
|
||||||
rgb_color: &bubble_gum [255,193,204]
|
rgb_color: &bubble_gum [255,193,204]
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Lavender'
|
|
||||||
rgb_color: *lavender
|
rgb_color: *lavender
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Bubble Gum'
|
rgb_color: *crimson
|
||||||
rgb_color: [255,193,204]
|
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
|
|
||||||
- name: month_starwars_colors
|
- name: month_starwars_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'yellow'
|
|
||||||
rgb_color: *yellow
|
rgb_color: *yellow
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
|
|
||||||
- name: month_cinco_de_mayo_colors
|
- name: month_cinco_de_mayo_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
# color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'White' Smoke
|
|
||||||
rgb_color: *smoke
|
rgb_color: *smoke
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'white'
|
|
||||||
rgb_color: *white
|
rgb_color: *white
|
||||||
|
|
||||||
- name: month_mothers_day_colors
|
- name: month_mothers_day_colors
|
||||||
|
@ -344,65 +297,51 @@
|
||||||
rgb_color: *white
|
rgb_color: *white
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
|
|
||||||
- name: month_christmas_colors
|
- name: month_christmas_colors
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
effect: green_fade
|
effect: green_fade
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
effect: green_fade
|
effect: green_fade
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
effect: green_fade
|
effect: green_fade
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
effect: green_fade
|
effect: green_fade
|
||||||
|
|
||||||
|
@ -410,39 +349,30 @@
|
||||||
entities:
|
entities:
|
||||||
light.outdoor_foyer:
|
light.outdoor_foyer:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.flood2:
|
light.flood2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'red'
|
|
||||||
rgb_color: *red
|
rgb_color: *red
|
||||||
light.front_door:
|
light.front_door:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'yellow'
|
|
||||||
rgb_color: *yellow
|
rgb_color: *yellow
|
||||||
light.outdoor_sconce_1:
|
light.outdoor_sconce_1:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Blue'
|
|
||||||
rgb_color: *blue
|
rgb_color: *blue
|
||||||
light.outdoor_sconce_2:
|
light.outdoor_sconce_2:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'yellow'
|
|
||||||
rgb_color: *yellow
|
rgb_color: *yellow
|
||||||
light.outdoor_sconce_3:
|
light.outdoor_sconce_3:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'orange'
|
|
||||||
rgb_color: *orange
|
rgb_color: *orange
|
||||||
light.led_garage_large:
|
light.led_garage_large:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_snip:
|
light.led_garage_snip:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'Green'
|
|
||||||
rgb_color: *green
|
rgb_color: *green
|
||||||
light.led_garage_small:
|
light.led_garage_small:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
#color_name: 'purple'
|
|
||||||
rgb_color: *purple
|
rgb_color: *purple
|
||||||
light.led_outdoor_den:
|
light.led_outdoor_den:
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
|
|
@ -268,6 +268,9 @@ tweet_youtube_engine_setup:
|
||||||
],
|
],
|
||||||
"CuckooClock": [
|
"CuckooClock": [
|
||||||
"Building a digital Cuckoo Clock with Home Assistant (https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)"
|
"Building a digital Cuckoo Clock with Home Assistant (https://www.vcloudinfo.com/2017/11/building-digital-cuckoo-clock-with-home.html)"
|
||||||
|
],
|
||||||
|
"NodeAnchors": [
|
||||||
|
"Simple Example of using YAML Node Anchors in Home Assistant (https://www.vcloudinfo.com/2020/10/simple-example-of-using-yaml-node-anchors-in-home-assistant.html)"
|
||||||
]
|
]
|
||||||
|
|
||||||
} %}
|
} %}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Binary file not shown.
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Binary file not shown.
After Width: | Height: | Size: 428 KiB |
Loading…
Reference in New Issue