Home-AssistantConfig/automation/late_night_helper.yaml

59 lines
1.4 KiB
YAML
Raw Normal View History

2016-10-19 17:47:13 +00:00
###################################
## Late Night lights Section
###################################
2016-10-13 16:45:10 +00:00
- alias: 'Late Night Helper'
trigger:
2016-10-13 16:47:38 +00:00
- platform: state
2016-10-13 16:45:10 +00:00
entity_id: binary_sensor.upstairs_away_mode
2016-10-13 16:47:38 +00:00
state: 'off'
2016-10-13 16:45:10 +00:00
- platform: state
entity_id: binary_sensor.downstairs_away_mode
2016-10-13 16:47:38 +00:00
state: 'off'
2016-10-13 16:45:10 +00:00
- platform: state
entity_id: group.family
state: home
- platform: state
entity_id: group.garage_doors
state: 'open'
2016-12-01 05:06:38 +00:00
for: '00:01:30'
2016-10-13 16:45:10 +00:00
condition:
2016-10-18 01:09:31 +00:00
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
after: '20:00:00'
before: '02:00:00'
2016-10-13 16:45:10 +00:00
action:
- service: light.turn_on
entity_id:
- group.living_room_accents
- light.living_room_slider
- light.foyer_door
- light.fridge
- light.M1_front_right
2016-11-27 18:40:52 +00:00
- light.S1
- light.S4
data:
brightness: 150
- service: switch.turn_on
entity_id: switch.kitchen_accents
2016-12-11 20:23:24 +00:00
- delay: '00:00:30'
- service: switch.turn_on
2016-12-11 20:24:35 +00:00
entity_id: switch.living_room_outlet
2016-12-11 20:23:24 +00:00
- delay: '00:00:30'
- service: switch.turn_on
entity_id: switch.foyer_outlet
- delay: '00:08:00'
2016-11-27 18:40:52 +00:00
- service: light.turn_off
entity_id:
- light.S1
- light.S4
- light.foyer_door
- light.fridge
2016-10-13 16:45:10 +00:00