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