mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-13 21:38:40 +00:00
49 lines
1.2 KiB
YAML
Executable File
49 lines
1.2 KiB
YAML
Executable File
###################################
|
|
## Late Night lights Section
|
|
###################################
|
|
- alias: 'Late Night Helper'
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- binary_sensor.downstairs_away_mode
|
|
state: 'off'
|
|
- platform: state
|
|
entity_id: group.family
|
|
state: home
|
|
|
|
condition:
|
|
condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: sun.sun
|
|
state: 'below_horizon'
|
|
- condition: time
|
|
after: '20:00:00'
|
|
before: '02: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
|
|
- light.S1
|
|
- light.S4
|
|
- service: switch.turn_on
|
|
entity_id: switch.kitchen_accents
|
|
- service: switch.turn_on
|
|
entity_id: switch.living_room_outlet
|
|
- service: switch.turn_on
|
|
entity_id: switch.foyer_outlet
|
|
- 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
|