Home-AssistantConfig/config/automation/late_night_helper.yaml

52 lines
1.2 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
###################################
## Late Night lights Section
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
###################################
- alias: 'Late Night Helper'
2020-07-20 18:33:03 +00:00
id: acacc9b4-b66d-46d2-bf6d-47b75afddb57
2018-01-02 00:00:45 +00:00
trigger:
- platform: state
entity_id: binary_sensor.downstairs_nest_away
to: 'off'
2018-01-02 00:00:45 +00:00
- platform: state
entity_id: group.family
to: 'home'
2018-01-02 00:00:45 +00:00
condition:
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: group.bed
state: 'off'
action:
- service: light.turn_on
entity_id:
- light.living_room_slider
- light.foyer_door
- light.fridge
- light.M1_front_right
- light.S1
- light.S4
- service: light.turn_on
entity_id:
- light.outdoor_bathroom
data:
brightness: 10
2018-01-02 00:00:45 +00:00
- service: switch.turn_on
entity_id:
2019-08-17 19:18:36 +00:00
- group.kitchen_Accents
2018-01-02 00:00:45 +00:00
- delay: '00:05:00'
- service: light.turn_off
entity_id:
- light.S1
- light.S4
- light.foyer_door
- light.fridge
- light.living_room_slider
- light.M1_front_right