Home-AssistantConfig/config/automation/Timed_Triggers/sunset_turn_on.yaml

58 lines
1.5 KiB
YAML
Raw Normal View History

2018-01-02 00:00:45 +00:00
###################################
## Sunrise and Sunset stuff
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
###################################
- alias: 'Sunset Stuff on'
2020-07-20 00:16:03 +00:00
id: d0db568c-0aa2-42cc-b5be-ba546e39b639
mode: queued
2018-01-02 00:00:45 +00:00
trigger:
- platform: sun
event: sunset
offset: "-00:15:00"
2020-06-30 18:28:05 +00:00
condition:
- condition: template
value_template: "{{ states('binary_sensor.grid_status') == 'on' }}"
2020-06-30 18:28:05 +00:00
2018-01-02 00:00:45 +00:00
action:
- delay: '00:{{ (range(1, 20)|random|int) }}:00'
2018-01-02 00:00:45 +00:00
- service: script.speech_engine
data:
call_dark_outside: 1
call_window_check: 1
- service: homeassistant.turn_on
entity_id:
- switch.front_landscaping
- switch.villaneri
- light.bedroom
2020-10-03 20:07:29 +00:00
- group.outdoor_seasonal
2018-01-02 00:00:45 +00:00
- service: script.monthly_color_scene
- service: light.turn_on
entity_id:
- light.outdoor_bathroom
data:
brightness: >
{% if states.group.family.state == 'home' -%}
10
{% else %}
150
{% endif %}
2018-01-02 00:00:45 +00:00
- wait_template: >-
{{ states.group.family.state == 'home' }}
- service: homeassistant.turn_on
2018-01-02 00:00:45 +00:00
entity_id:
2019-08-17 19:18:36 +00:00
- group.master_bathroom_accents
2018-01-02 00:00:45 +00:00
- switch.back_landscaping
- switch.front_door_outlet
- switch.foyer_outlet
- switch.den_outlet
2023-11-26 21:28:55 +00:00
- switch.front_office_window
- switch.living_room_outlet
- switch.living_room_tv_outlet
2018-01-02 00:00:45 +00:00
- service: light.turn_on
entity_id:
- light.living_room_accents
2024-08-05 17:03:43 +00:00