Home-AssistantConfig/automation/late_night_helper.yaml

44 lines
1.0 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-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
2016-10-30 21:31:48 +00:00
after: '20:00'
before: '02: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.sink
- light.M1_front_right
data:
brightness: 150
- service: switch.turn_on
entity_id: switch.kitchen_accents
2016-10-13 16:45:10 +00:00