You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
######################################################################
|
|
# @CCOSTAN - Follow Me on X
|
|
# For more info visit https://www.vcloudinfo.com/click-here
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
# -------------------------------------------------------------------
|
|
# Sunrise and Sunset stuff - Home Assistant automation behavior.
|
|
# Defines the Sunrise and Sunset stuff triggers, conditions, and actions.
|
|
# -------------------------------------------------------------------
|
|
######################################################################
|
|
- alias: 'Sunset Stuff off'
|
|
id: 232b95e8-1354-4f63-8ae4-1063f300f2f0
|
|
mode: single
|
|
trigger:
|
|
- platform: sun
|
|
event: sunrise
|
|
offset: '-02:00:00'
|
|
|
|
action:
|
|
- service: script.interior_off
|
|
- service: homeassistant.turn_off
|
|
entity_id:
|
|
- group.landscaping
|
|
|
|
- delay: '00:{{ range(0,5) | random | int }}{{ range(0,9) | random | int }}:00'
|
|
- service: homeassistant.turn_off
|
|
entity_id:
|
|
- group.exterior_lights
|
|
- light.outdoor_front_lights
|
|
- group.outdoor_seasonal
|
|
|
|
- service: light.turn_off
|
|
entity_id: all
|
|
|
|
- wait_template: >-
|
|
{{ states.sun.sun.state == 'above_horizon' }}
|
|
- service: homeassistant.turn_off
|
|
entity_id:
|
|
- group.master_bathroom_accents
|
|
- group.exterior_lights
|
|
- light.outdoor_front_lights
|
|
- group.outdoor_seasonal
|
|
- group.kitchen_accents
|
|
|
|
- service: input_boolean.turn_off
|
|
entity_id:
|
|
- input_boolean.medicine
|
|
- input_boolean.guest_mode
|