mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-20 16:21:58 +00:00
42 lines
991 B
YAML
Executable File
42 lines
991 B
YAML
Executable File
###################################
|
|
## Sunrise and Sunset stuff
|
|
###################################
|
|
|
|
- alias: 'Sunset Stuff on'
|
|
trigger:
|
|
- platform: state
|
|
entity_id: sun.sun
|
|
state: 'below_horizon'
|
|
|
|
action:
|
|
- service: switch.turn_on
|
|
entity_id:
|
|
- switch.front_door_outlet
|
|
- service: light.turn_on
|
|
entity_id:
|
|
- light.outdoor_bathroom
|
|
- light.tv_light
|
|
- light.tv_stand_light
|
|
- service: script.holiday_switches_on
|
|
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
|
|
- service: script.monthly_front_house_scene
|
|
######################################################################
|
|
|
|
- alias: 'Sunset Stuff off'
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: '-01:00:00'
|
|
|
|
action:
|
|
- service: light.turn_off
|
|
entity_id:
|
|
- group.all_lights
|
|
- light.outfoor_front
|
|
- group.outdoor_lights
|
|
- service: script.interior_off
|
|
|
|
|
|
|
|
|
|
|