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
|
2016-11-21 20:22:01 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: group.garage_doors
|
|
|
|
state: 'open'
|
2016-12-01 05:06:38 +00:00
|
|
|
for: '00:01:30'
|
2016-11-21 20:22:01 +00:00
|
|
|
|
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:
|
2016-11-20 20:02:58 +00:00
|
|
|
- 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
|
2016-11-20 20:02:58 +00:00
|
|
|
data:
|
|
|
|
brightness: 150
|
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id: switch.kitchen_accents
|
2016-12-08 19:05:02 +00:00
|
|
|
- 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
|
|
|
|