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'
|
|
|
|
trigger:
|
2019-08-24 20:14:27 -04:00
|
|
|
- platform: sun
|
|
|
|
event: sunset
|
|
|
|
offset: "-00:20: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-03-17 00:56:57 -04:00
|
|
|
- service: script.tweet_engine_image
|
2018-01-01 19:00:45 -05:00
|
|
|
data_template:
|
2018-03-17 00:56:57 -04:00
|
|
|
tweet: >-
|
2018-01-01 19:00:45 -05:00
|
|
|
{{ [
|
|
|
|
"Right before sunset, I turn on the outdoor lights.",
|
2019-11-25 00:33:13 -05:00
|
|
|
"The sun is offical down. Exterior Cameras are now motion activated.",
|
2018-01-17 11:39:08 -05:00
|
|
|
"Since it gets dark around sunset, I will turn on the landscaping lights.",
|
2019-10-14 12:44:07 -04:00
|
|
|
"The sun has been ushered off the stage. Activate the perimiter cameras.",
|
2019-04-08 19:01:50 -04:00
|
|
|
"When the Sun goes down, I help out by turning on the outside lights. It is the little things in life.",
|
2018-01-12 17:50:45 -05:00
|
|
|
"Time to turn on the Landscaping lights.",
|
|
|
|
"Daytime is over, Time to turn on the exterior lights.",
|
2018-01-17 11:39:08 -05:00
|
|
|
"Once the Sun goes down, we turn on the exterior lights.",
|
2019-10-14 12:44:07 -04:00
|
|
|
"Switching to night mode!",
|
2019-11-24 12:14:12 -05:00
|
|
|
"Since it is sunset, I will turn on the exterior lights.",
|
|
|
|
"The outside world has switched to dark mode.",
|
|
|
|
"If you have not looked outside lately the light of the day is gone."
|
2018-01-01 19:00:45 -05:00
|
|
|
] | random + [
|
2018-01-12 11:13:55 -05:00
|
|
|
" #Sunset",
|
|
|
|
" #HomeAutomation",
|
|
|
|
" #AccentLighting",
|
2019-10-10 00:39:10 -04:00
|
|
|
" (https://www.vcloudinfo.com/2017/08/diy-outdoor-smart-home-led-strips.html)",
|
2018-10-01 16:24:24 -04:00
|
|
|
" (https://youtu.be/FcBVu_yk2iY)",
|
|
|
|
" (https://www.vcloudinfo.com/2018/09/unboxing-philips-hue-calla-landscape.html)"
|
2018-01-01 19:00:45 -05:00
|
|
|
] | random }}
|
2018-03-17 00:56:57 -04:00
|
|
|
image: >-
|
|
|
|
{{ [
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light2.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light3.png",
|
2018-03-17 20:11:11 -04:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light4.png",
|
2020-02-13 12:10:13 -05:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light5.png",
|
2018-04-06 21:46:54 -04:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/landscape_light.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/sunset.png"
|
2018-03-17 00:56:57 -04:00
|
|
|
] | random }}
|
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
|
2018-10-10 21:38:18 -04:00
|
|
|
- light.bedroom
|
2019-12-01 17:43:35 -05:00
|
|
|
- group.outdoor_xmas_lights
|
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
|
2018-10-10 21:38:18 -04:00
|
|
|
data_template:
|
|
|
|
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
|
|
|
|
- switch.living_room_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
|
2018-01-01 19:00:45 -05:00
|
|
|
- wait_template: >-
|
2020-06-08 21:51:27 -04:00
|
|
|
{{ is_state('group.garage_doors', 'closed') }}
|
2018-01-01 19:00:45 -05:00
|
|
|
- wait_template: >-
|
|
|
|
{{ is_state('group.entry_points', 'off') }}
|
|
|
|
- service: script.speech_engine
|
|
|
|
data:
|
|
|
|
call_garage_check: 1
|
|
|
|
call_window_check: 1
|