Home-AssistantConfig/automation/sunrise_turnon_and_off.yaml

74 lines
2.0 KiB
YAML
Raw Normal View History

###################################
## Sunrise and Sunset stuff
###################################
- alias: 'Sunset Stuff on'
trigger:
- platform: sun
event: sunset
- platform: time
after: '20:00:00'
2016-11-30 22:40:44 +00:00
#Time trigger is until I replace the stupid switch.
# - platform: event
# event_type: halloween_lights_on
action:
- service: switch.turn_on
entity_id: switch.foyer_outlet
- service: light.turn_on
2016-11-21 23:21:06 +00:00
entity_id: light.outdoor_bathroom
2016-11-07 22:57:26 +00:00
- service: light.turn_on
data:
entity_id: light.outdoor_foyer
2016-11-24 01:16:05 +00:00
brightness: 235
2016-11-20 01:50:56 +00:00
#rgb_color: [61,178,112]
#Green
2016-11-27 18:40:52 +00:00
#rgb_color: [255,112,242]
2016-11-20 01:50:56 +00:00
#Purple
2016-11-27 18:40:52 +00:00
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
2016-11-24 01:16:05 +00:00
######################################################################
- alias: 'Sunset Stuff off'
trigger:
- platform: sun
event: sunrise
offset: '-03:30:00'
# - platform: event
# event_type: halloween_lights_off
action:
- service: switch.turn_off
entity_id: switch.foyer_outlet
2016-11-07 22:57:26 +00:00
- service: light.turn_off
2016-11-27 18:40:52 +00:00
entity_id: group.outdoor_front_lights
2016-11-20 01:50:56 +00:00
data:
transition: 1200
- service: light.turn_off
2016-11-21 23:21:06 +00:00
entity_id: light.outdoor_bathroom
- service: light.turn_off
entity_id: group.outdoor_lights
- service: switch.turn_off
entity_id: switch.kitchen_accents