Constant rewrites to use scenes, scripts and templates now.

This commit is contained in:
CCOSTAN 2016-12-01 06:28:20 +00:00
parent a9c4408202
commit ef656ee792
4 changed files with 31 additions and 50 deletions

View File

@ -17,36 +17,8 @@
entity_id: switch.foyer_outlet
- service: light.turn_on
entity_id: light.outdoor_bathroom
- service: light.turn_on
data:
entity_id: light.outdoor_foyer
brightness: 235
#rgb_color: [61,178,112]
#Green
#rgb_color: [255,112,242]
#Purple
rgb_color: [206,22,32]
#red
- service: light.turn_on
data:
entity_id: light.outdoor_scounce_1
brightness: 235
rgb_color: [61,178,112]
#Green
#rgb_color: [255,112,242]
#Purple
#rgb_color: [206,22,32]
#red
- service: light.turn_on
data:
entity_id: light.outdoor_scounce_2
brightness: 235
#rgb_color: [61,178,112]
#Green
#rgb_color: [255,112,242]
#Purple
rgb_color: [206,22,32]
#red
- service: scene.turn_on
entity_id: scene.december_front
######################################################################
- alias: 'Sunset Stuff off'
@ -58,8 +30,6 @@
# event_type: halloween_lights_off
action:
- service: switch.turn_off
entity_id: switch.foyer_outlet
- service: light.turn_off
entity_id: group.outdoor_front_lights
data:
@ -68,7 +38,8 @@
entity_id: light.outdoor_bathroom
- service: light.turn_off
entity_id: group.outdoor_lights
- service: switch.turn_off
entity_id: switch.kitchen_accents
- service: script.switch_turn_off_all

22
scene/december_front.yaml Executable file
View File

@ -0,0 +1,22 @@
- name: December Front
entities:
light.outdoor_scounce_2:
state: on
transition: 400
rgb_color: [206,22,32]
brightness: 255
light.outdoor_scounce_1:
state: on
transition: 400
rgb_color: [61,178,112]
brightness: 255
light.outdoor_foyer:
state: on
transition: 400
rgb_color: [206,22,32]
brightness: 255
#rgb_color: [61,178,112] #Green
#rgb_color: [255,112,242] #Purple
#rgb_color: [206,22,32] #red

View File

@ -1,20 +1,5 @@
- name: Living Room TV Time
entities:
group.foyer_lights:
state: off
transition: 100
group.office_lights:
state: off
transition: 10
group.dinette_lights:
state: off
transition: 100
group.kitchen_lights:
state: off
transition: 100
group.dining_room_lights:
state: off
transition: 100
light.M1_front_left:
state: off
transition: 10

View File

@ -1,5 +1,8 @@
######################################################################################################
###Script to shut switches with a 30 second delay to not trample codes
### Sample Call
# action:
# - service: script.switch_turn_off_all
######################################################################################################
switch_turn_off_all: