2019-11-10 00:11:03 +00:00
###############################################################################
# @author : Jeffrey Stone
2020-06-12 20:02:42 +00:00
# @date : 06/12/2020
2019-11-10 00:11:03 +00:00
# @package : Daily
2020-06-12 20:02:42 +00:00
# @description : Package for handling daily automations and scripts.
2019-11-10 00:11:03 +00:00
###############################################################################
2020-06-12 20:02:42 +00:00
2019-11-10 00:11:03 +00:00
automation :
2020-06-12 20:02:42 +00:00
2020-12-04 06:01:28 +00:00
- id : 3a0175f8-9caf-45fb-a461-585474f73e6b
2020-06-12 20:02:42 +00:00
alias : Coffee Time
initial_state : true
trigger :
2021-01-19 01:47:44 +00:00
platform : time
at : input_datetime.coffee_time
2020-06-12 20:02:42 +00:00
action :
- service : scene.turn_on
entity_id : scene.diminshed_livingroom_lighting
- service : scene.turn_on
entity_id : scene.diminished_kitchen_lighting
- service : scene.turn_on
entity_id : scene.jeff_night_light
- service : alarm_control_panel.aarlo_set_mode
data :
entity_id : alarm_control_panel.aarlo_ah_base_station
mode : 'home'
2020-12-04 06:01:28 +00:00
- id : ce3d7e63-3eaa-4cc5-959b-1334e6c5c4e6
2020-06-12 20:02:42 +00:00
alias : Good Morning
initial_state : true
trigger :
2021-01-19 01:47:44 +00:00
platform : time
at : input_datetime.good_morning
2019-11-10 00:11:03 +00:00
action :
2020-06-12 20:02:42 +00:00
- service : scene.turn_on
entity_id : scene.normal_livingroom_lighting
- service : scene.turn_on
entity_id : scene.normal_kitchen_lighting
- service : scene.turn_on
entity_id : scene.jeff_light_on
- service : script.twitter_notify_image
data_template :
tweet : >-
{{ [
"Good Morning! Time to rise and shine at Anchorage House. " ,
"Good Morning from Anchorage House. Glad to see everyone made it. " ,
"Birds are awake, and so is Anchorage House. Good morning everyone!" ,
"Good morning. Anchorage House is up and online."
] | random }}
{% if is_state('calendar.holidays_in_united_states', 'on') %}
Today is {{states.calendar.holidays_in_united_states.attributes.message}}.
{% endif %}
image : >-
{{ [ "/config/www/tweet_images/coffee.jpg" ,
"/config/www/tweet_images/coffee2.jpg" ] | random }}
2019-11-16 02:41:10 +00:00
2020-12-04 06:01:28 +00:00
- id : ff00b2a6-be6a-4f1f-ac14-84de9d42bb6a
2020-06-12 20:02:42 +00:00
alias : Skylar Bedtime
initial_state : true
trigger :
2021-01-19 01:47:44 +00:00
platform : time
at : input_datetime.skylar_nightly_report
2020-06-12 20:02:42 +00:00
condition :
- condition : state
entity_id : input_boolean.vacation_mode
state : 'off'
action :
- service : scene.turn_on
entity_id : scene.skylar_room_prebed
2020-12-04 06:01:28 +00:00
- id : 745ee642-26ef-4818-8068-67f8ffccb29f
2020-11-07 16:20:26 +00:00
alias : Master Bedroom lights dim
2020-06-12 20:02:42 +00:00
initial_state : true
trigger :
2020-04-10 17:38:28 +00:00
- platform : time
2020-11-07 16:20:26 +00:00
at : '22:30:00'
2020-06-12 20:02:42 +00:00
condition :
- condition : state
entity_id : input_boolean.vacation_mode
state : 'off'
action :
- service : scene.turn_on
2020-11-07 16:20:26 +00:00
entity_id : scene.master_bedroom_dim
2020-10-05 16:04:04 +00:00
2020-12-04 06:01:28 +00:00
- id : 68891fc2-b631-4195-ae63-b660e04f1615
2020-10-05 16:04:04 +00:00
alias : Master Bedroom lights out
2020-06-12 20:02:42 +00:00
initial_state : true
trigger :
2020-06-07 23:32:41 +00:00
- platform : time
2020-11-07 16:20:26 +00:00
at : '23:00:00'
2020-06-12 20:02:42 +00:00
condition :
- condition : state
entity_id : input_boolean.vacation_mode
state : 'off'
action :
- service : scene.turn_on
2020-11-07 16:20:26 +00:00
entity_id : scene.master_bedroom_off
2020-10-05 16:04:04 +00:00
2020-12-04 06:01:28 +00:00
- id : 27b83e67-b509-427a-aa2f-1ce4bb7ad0ab
2020-10-05 16:04:04 +00:00
alias : Master Bedroom Lights On
2020-06-12 20:02:42 +00:00
initial_state : true
trigger :
- platform : time
2020-10-05 16:04:04 +00:00
at : '20:00:00'
2020-06-12 20:02:42 +00:00
condition :
- condition : state
entity_id : input_boolean.vacation_mode
state : 'off'
action :
- service : scene.turn_on
2020-10-05 16:04:04 +00:00
entity_id : scene.master_bedroom_on
2020-06-12 20:02:42 +00:00
2020-12-04 06:01:28 +00:00
- id : 0d5cea61-f295-4e5d-87a9-f12dfb5b67d6
2020-06-12 20:02:42 +00:00
alias : Good Night
initial_state : true
trigger :
- platform : time
at : '22:30:00'
action :
- service : scene.turn_on
entity_id : scene.night_time_livingroom_lighting
- service : script.theater_lights_out
- service : switch.turn_off
entity_id : switch.incense
- service : switch.turn_off
entity_id : switch.artemis
- service : switch.turn_off
entity_id : switch.forest
- service : switch.turn_off
entity_id : switch.livingroom_fan
2020-06-15 00:48:52 +00:00
- service : switch.turn_off
2020-06-12 20:02:42 +00:00
data :
2020-06-15 00:48:52 +00:00
entity_id : switch.ha_speaker
2021-01-02 18:23:19 +00:00
- service : scene.turn_on
entity_id : scene.kitchen_lighting_off
2020-06-12 20:02:42 +00:00
- service : script.good_night_loft
2020-12-04 06:01:28 +00:00
- service : input_boolean.turn_off
entity_id : input_boolean.audible_notifications
2020-12-03 03:55:11 +00:00
- service : script.reset_annc_switches
2020-06-12 20:02:42 +00:00
- service : script.twitter_notify_image
data_template :
tweet : >-
{{ [
"Good Night from Anchorage House. " ,
"Time to shut down this party. Good Night from Anchorage House. " ,
"I'm feeling tired. Think I'll take a quick nap. Good Night!" ,
"Things are getting quiet. Time to say Good Night." ,
"We have come to the end of our broadcast day. Oh, who am I kidding. I''ll be up all night watching over Anchorage House. "
] | random }}
image : >-
{{ [ "/config/www/tweet_images/off.jpg" ,
"/config/www/tweet_images/clock.jpg" ] | random }}
2020-12-04 06:01:28 +00:00
- id : 79886677 -4fdb-4cec-ad46-92a9c3c75681
2020-06-12 20:02:42 +00:00
alias : Outside Lights on at Sunset
initial_state : true
trigger :
- platform : sun
event : sunset
offset : -00 : 30 : 00
action :
- service : switch.turn_on
data :
entity_id : switch.front_porch_light
2020-06-15 00:48:52 +00:00
- service : scene.turn_on
entity_id : scene.normal_livingroom_lighting
2020-06-12 20:02:42 +00:00
- service : script.sunset_garage_open
2020-12-04 06:01:28 +00:00
- service : script.sundown_briefing
2020-06-12 20:02:42 +00:00
- service : script.twitter_notify_image
data_template :
tweet : >-
{{ [
2020-06-15 00:48:52 +00:00
"Its getting dark at Anchorage House, so Im turning on the outside and inside lights. " ,
"When the Sun goes down, I help out by turning on the lights. Its the little things. " ,
"Switching to dark mode! The outuisde and inside lights are on." ,
2020-06-12 20:02:42 +00:00
"It is time to turn on the outside lights. You know...so bugs know where to die." ,
"Anchorage House is switching to night mode!" ,
2020-06-15 00:48:52 +00:00
"Anchorage House is going to the darkside. Of the planet that is. So the lights are on."
2020-06-12 20:02:42 +00:00
] | random }}
image : >-
{{ [ "/config/www/tweet_images/lamp.jpg" ,
"/config/www/tweet_images/bright.jpg" ,
"/config/www/tweet_images/light.jpg" ,
"/config/www/tweet_images/lamp2.jpg" ] | random }}
2020-12-04 06:01:28 +00:00
- id : a01624c1-1222-4d53-a9b3-95eee9a6a4b0
2020-06-12 20:02:42 +00:00
alias : Sunset
initial_state : true
trigger :
- platform : sun
event : sunset
action :
- service : alarm_control_panel.aarlo_set_mode
data :
entity_id : alarm_control_panel.aarlo_ah_base_station
mode : 'Armed'
2020-12-04 06:01:28 +00:00
- id : 18656c32-65ab-4578-9cc0-2de5820290de
2020-06-12 20:02:42 +00:00
alias : Outside Lights off at Sunrise
initial_state : true
trigger :
- platform : sun
event : sunrise
action :
2020-09-23 15:00:30 +00:00
- service : homeassistant.turn_off
entity_id : group.outside_lights
2020-06-12 20:02:42 +00:00
- service : script.twitter_notify_image
data_template :
tweet : >-
{{ [
"The sun is up at Anchorage House, so Im turning off the outside lights. " ,
"I see the sun! Time to turn off the outside lights at Anchorage House. " ,
"Dawn has broken at Anchorage House. Turning off the outside lights." ,
"Anchorage house has converted to the lightside after a few hours on the darkside. I think its safe to turn off the lights." ,
2020-08-22 03:46:43 +00:00
"Light mode activated! So that means I'm turning off the outside lights." ,
"Hooray you live to drink another day. I guess I will get the lights since the sun is up."
2020-06-12 20:02:42 +00:00
] | random }}
image : >-
{{ [ "/config/www/tweet_images/sunrise.jpg" ,
"/config/www/tweet_images/sunrise3.jpg" ,
"/config/www/tweet_images/sunrise2.jpg" ] | random }}
2020-10-05 16:04:04 +00:00
# - id: inside_on_sunset
# alias: Inside on at Sunset
# initial_state: true
# trigger:
# - platform: sun
# event: sunset
# offset: -02:00:00
# condition:
# - condition: template
# value_template: >
# {%- if states.weather.klzu_hourly.state != "sunny" or states.weather.klzu_hourly.state != "partlycloudy" or states.weather.klzu_hourly.state != "clear" -%}
# true
# {%- endif -%}
# action:
# - service: scene.turn_on
# entity_id: scene.normal_livingroom_lighting
# - service: scene.turn_on
# entity_id: scene.normal_kitchen_lighting
# - service: script.twitter_notify
# data:
# message: >-
# {{ [ "It is dark inside the house due to the conditions outside the house so I am turning on the inside lights.",
# "When it gets dark enough outside I turn on the inside lights. ",
# "Since I monitor the conditions inside and outside the Anchorage House I know all the things. Like it is time to turn on the inside lights."
# ] | random }}
2020-06-15 00:48:52 +00:00
2020-12-04 06:01:28 +00:00
- id : 9c4e0720-6496-49a9-ad49-fe59b52fc056
2020-06-15 00:48:52 +00:00
alias : Inside off after Sunrise
2020-06-12 20:02:42 +00:00
initial_state : true
trigger :
- platform : sun
event : sunrise
2020-09-23 15:00:30 +00:00
offset : 01 : 30 : 00
2020-08-22 03:46:43 +00:00
condition :
- condition : template
value_template : >
{%- if states.weather.klzu_hourly.state == "sunny" or states.weather.klzu_hourly.state == "partlycloudy" or states.weather.klzu_hourly.state == "clear" -%}
true
{%- endif -%}
2020-06-12 20:02:42 +00:00
action :
2020-09-23 15:00:30 +00:00
- service : scene.turn_on
entity_id : scene.skylar_room_day
2020-12-13 01:55:40 +00:00
2020-10-05 16:04:04 +00:00
2020-06-15 00:48:52 +00:00
2020-12-04 06:01:28 +00:00
- id : 86fd5de9-3136-4d86-aef9-268f097eae35
2020-06-12 20:02:42 +00:00
alias : HA Startup
initial_state : true
trigger :
- platform : homeassistant
event : start
action :
service : frontend.set_theme
data :
name : midnight-AH
2020-06-15 00:48:52 +00:00
2020-12-04 06:01:28 +00:00
- id : 82b96b73-2407-49d7-8ea2-1f78a69e025b
2020-06-12 20:02:42 +00:00
alias : Jeff eta home
initial_state : true
trigger :
- platform : state
entity_id : sensor.jeff_destination
to : Home
condition :
- condition : state
entity_id : sensor.notification_mode
state : Normal
action :
- service : input_boolean.turn_on
entity_id : input_boolean.jeff_travel_monitor
- id : enable_bad_traffic_home_jeff
alias : Notify Jeff - Bad Traffic
initial_state : true
trigger :
- platform : numeric_state
entity_id : sensor.jeff_ett_home
above : 59
condition :
- condition : state
entity_id : sensor.jeff_location
state : Summit
- condition : state
entity_id : input_boolean.jeff_traffic_alerts
state : 'on'
action :
- service : input_boolean.turn_on
entity_id : input_boolean.jeff_traffic_alert_home
- service : script.twitter_notify_image
data_template :
tweet : >-
{{ [
"Looks like traffic is bad out there so I let @thejeffreystone know. " ,
"I dont think todays traffic is the worst I''ve seen, but its bad. Letting my residents know they need to plan their trips. " ,
"Oh great...traffic cannot get any worse. Maybe everyone should stay where they are. "
] | random }}
image : >-
{{ [
"/config/www/tweet_images/road.jpg" ,
"/config/www/tweet_images/traffic.jpg" ,
"/config/www/tweet_images/traffic-jam.jpg"
] | random }}
2020-12-04 06:01:28 +00:00
- id : 49fcdf4f-5cb1-442a-9a1a-16eefc3da503
2020-06-12 20:02:42 +00:00
alias : set soffee time
trigger :
- platform : time
at : '00:02:15'
action :
- service : input_datetime.set_datetime
entity_id : input_datetime.coffee_time
data_template :
time : >
{% if states.binary_sensor.workday_sensor.state == 'on' %}
06 : 00
{% else %}
07 : 15
{% endif %}
2020-12-04 06:01:28 +00:00
- id : 7ad448b3-f2f0-4dfc-9549-732fa6396bc5
2020-06-12 20:02:42 +00:00
alias : set skylar nightly report time
trigger :
- platform : time
at : '18:30:00'
action :
- service : input_datetime.set_datetime
entity_id : input_datetime.skylar_nightly_report
data_template :
time : >
{% if states.sensor.school_tomorrow.state == 'on' %}
2020-12-03 03:55:11 +00:00
19 : 45
2020-11-28 01:47:30 +00:00
{% else %}
20 : 15
2020-06-12 20:02:42 +00:00
{% endif %}
2020-12-04 06:01:28 +00:00
- id : bd8e4e20-f138-49ec-a9f6-d23ab1450b98
2020-06-12 20:02:42 +00:00
alias : set good morning time
trigger :
- platform : time
at : '05:55:00'
2020-06-07 23:32:41 +00:00
action :
2020-06-12 20:02:42 +00:00
- service : input_datetime.set_datetime
entity_id : input_datetime.good_morning
data_template :
time : >
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
2020-09-23 15:00:30 +00:00
06 : 45
2020-06-12 20:02:42 +00:00
{% elif states.binary_sensor.workday_sensor.state == 'on' %}
2020-09-23 15:00:30 +00:00
07 : 00
2020-06-12 20:02:42 +00:00
{% else %}
2020-09-23 15:00:30 +00:00
07 : 30
2020-11-07 16:20:26 +00:00
{% endif %}
script :
sunset_garage_open :
sequence :
- condition : state
entity_id : group.garage_doors
state : 'on'
2021-01-19 01:47:44 +00:00
- service : script.turn_on
entity_id : script.driveway_on