Too many updates to cover

This commit is contained in:
Jeffrey Stone
2019-07-13 21:38:53 -04:00
parent 328ecf126c
commit d90380cc65
73 changed files with 1108 additions and 1171 deletions

151
packages/announcements.yaml Normal file → Executable file
View File

@@ -5,70 +5,48 @@
# @description : Just Normal Announcements.
###############################################################################
script:
#script:
annc_storm_statement:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- service: notify.ios_all
data:
message: Severe Storm Statement Issued for Anchorage House
annc_tstorm_watch:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- service: notify.ios_all
data:
message: Severe Thunderstorm Watch Issued for Anchorage House
annc_tstorm_warning:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- service: notify.ios_all
data:
message: Severe Thunderstorm Warning Issued for Anchorage House
annc_tornado_watch:
sequence:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- service: notify.ios_all
data:
message: Tornado Watch Issued for Anchorage House
annc_security_issue:
sequence:
- condition: state
entity_id: group.family
state: 'on'
- service: tts.google_translate_say
data:
entity_id: media_player.hass_speaker
message: Unauthorized Access
annc_tornado_warning:
sequence:
- condition: state
entity_id: sensor.family_status
state: Home
- service: script.alert_notify
data_template:
message: "Tornado Warning has been Issued"
greeting: "no"
# annc_storm_statement:
# sequence:
# - condition: state
# entity_id: input_boolean.vacation_mode
# state: 'off'
# - service: script.text_notify
# data:
# message: Severe Storm Statement Issued for Anchorage House
# annc_tstorm_watch:
# sequence:
# - condition: state
# entity_id: input_boolean.vacation_mode
# state: 'off'
# - service: script.text_notify
# data:
# message: Severe Thunderstorm Watch Issued for Anchorage House
# annc_tstorm_warning:
# sequence:
# - condition: state
# entity_id: input_boolean.vacation_mode
# state: 'off'
# - service: script.text_notify
# data:
# message: Severe Thunderstorm Warning Issued for Anchorage House
# annc_tornado_watch:
# sequence:
# - condition: state
# entity_id: input_boolean.vacation_mode
# state: 'off'
# - service: script.text_notify
# data:
# message: Tornado Watch Issued for Anchorage House
# annc_tornado_warning:
# sequence:
# - condition: state
# entity_id: sensor.family_status
# state: Home
# - service: script.alert_notify
# data_template:
# message: "Tornado Warning has been Issued"
automation:
- id: prebed_routine
@@ -77,10 +55,6 @@ automation:
trigger:
platform: template
value_template: "{{ states('sensor.time') == (state_attr('input_datetime.skylar_nightly_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action:
- service: script.prebed_routine
- id: nightly_report
@@ -89,22 +63,15 @@ automation:
trigger:
platform: template
value_template: "{{ states('sensor.time') == (state_attr('input_datetime.nightly_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action:
- service: script.nightly_report
- id: good_morning_report
alias: Good Morning Report
initial_state: true
trigger:
platform: template
value_template: "{{ states('sensor.time') == (state_attr('input_datetime.morning_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action:
- service: script.morning_report
- service: script.twitter_notify
@@ -125,39 +92,7 @@ automation:
- wed
- thu
- fri
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action:
- service: script.skylar_morning_greeting
- id: play_weather_report
alias: Play Weather Report
initial_state: true
trigger:
- entity_id: input_boolean.play_weather_report
from: 'Off'
platform: state
to: 'On'
action:
- service: script.turn_on
entity_id: script.weather_report
- service: script.voice_reports_off
- id: guest_mode_feedback
alias: Guest Mode Audio Feedback
trigger:
- platform: state
entity_id:
- input_boolean.guest_mode
from: 'off'
to: 'on'
action:
- service: script.jarvis_voice
data_template:
message: >
{{ [
"Guest Mode has been enabled as you requested.",
"I have switched to the system to guest mode",
"I have enabled guest mode. ",
"System Guest Mode has been enabled."
] | random }}