mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 16:44:46 +00:00
49 lines
1.2 KiB
YAML
Executable File
49 lines
1.2 KiB
YAML
Executable File
###################################
|
|
## Sunrise and Sunset stuff
|
|
###################################
|
|
|
|
- alias: 'Sunset Stuff on'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sun.sun
|
|
state: 'below_horizon'
|
|
from: 'above_horizon'
|
|
|
|
action:
|
|
- service: switch.turn_on
|
|
entity_id:
|
|
- switch.front_door_outlet
|
|
- switch.living_room_outlet
|
|
- switch.den_outlet
|
|
- switch.foyer_outlet
|
|
- service: light.turn_on
|
|
entity_id:
|
|
- light.outdoor_bathroom
|
|
- group.living_room_accents
|
|
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
|
- service: script.monthly_color_scene
|
|
- service: script.Voice_notify
|
|
data_template:
|
|
value1: >
|
|
!include voice.macros
|
|
{{ dark_outside() }}
|
|
######################################################################
|
|
|
|
- alias: 'Sunset Stuff off'
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: '-01:00:00'
|
|
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id:
|
|
- group.all_lights
|
|
- light.outdoor_front
|
|
- group.outdoor_lights
|
|
- service: script.interior_off
|
|
|
|
|
|
|
|
|
|
|