Added new voice notifications to use for status reports trigger via alexa routine
This commit is contained in:
parent
6bb1cf6975
commit
f93cff2558
|
@ -11,7 +11,7 @@
|
||||||
# key: !secret IFTTT_API_KEY
|
# key: !secret IFTTT_API_KEY
|
||||||
|
|
||||||
tts:
|
tts:
|
||||||
- platform: google
|
- platform: google_translate
|
||||||
cache: true
|
cache: true
|
||||||
cache_dir: /tmp/tts
|
cache_dir: /tmp/tts
|
||||||
time_memory: 300
|
time_memory: 300
|
||||||
|
@ -29,6 +29,10 @@ notify:
|
||||||
services:
|
services:
|
||||||
- service: ios_jeffreystonesiphone
|
- service: ios_jeffreystonesiphone
|
||||||
- service: ios_jeffreystonesipad
|
- service: ios_jeffreystonesipad
|
||||||
|
- name: kat_ios
|
||||||
|
platform: group
|
||||||
|
services:
|
||||||
|
- service: ios_katherinestonesiphone
|
||||||
- name: 'Master Bedroom Echo'
|
- name: 'Master Bedroom Echo'
|
||||||
platform: command_line
|
platform: command_line
|
||||||
command: "/home/homeassistant/bin/alexa_wrapper -d 'Master Bedroom'"
|
command: "/home/homeassistant/bin/alexa_wrapper -d 'Master Bedroom'"
|
||||||
|
@ -94,7 +98,7 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.vacation_mode
|
entity_id: input_boolean.vacation_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- service: tts.google_say
|
- service: tts.google_translate_say
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: media_player.hass_speaker
|
entity_id: media_player.hass_speaker
|
||||||
message: >
|
message: >
|
||||||
|
@ -121,25 +125,11 @@ script:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: media_player.hass_speaker
|
entity_id: media_player.hass_speaker
|
||||||
state: 'idle'
|
state: 'idle'
|
||||||
- service: tts.google_say
|
- service: tts.google_translate_say
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: media_player.hass_speaker
|
entity_id: media_player.hass_speaker
|
||||||
message: >
|
message: >
|
||||||
{% set msg = "" %}
|
{{message }}
|
||||||
{% macro getGreeting() %}
|
|
||||||
{% if greeting | default('yes', true ) == "yes" %}
|
|
||||||
{% if now().hour|int < 12 %}
|
|
||||||
Good morning.
|
|
||||||
{% elif now().hour|int < 18 %}
|
|
||||||
Good afternoon.
|
|
||||||
{% else %}
|
|
||||||
Good evening.
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% endmacro %}
|
|
||||||
{% set msg = msg + getGreeting() %}
|
|
||||||
{% set msg = msg + " " + message %}
|
|
||||||
{{ msg }}
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -218,6 +208,42 @@ script:
|
||||||
data_template:
|
data_template:
|
||||||
message: !include ../templates/nightly_report.yaml
|
message: !include ../templates/nightly_report.yaml
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Weather Report
|
||||||
|
###############################################################################
|
||||||
|
weather_report:
|
||||||
|
sequence:
|
||||||
|
- service: script.voice_notify
|
||||||
|
data_template:
|
||||||
|
message: !include ../templates/weather_report.yaml
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Traffic Report
|
||||||
|
###############################################################################
|
||||||
|
traffic_report:
|
||||||
|
sequence:
|
||||||
|
- service: script.voice_notify
|
||||||
|
data_template:
|
||||||
|
message: !include ../templates/traffic_report.yaml
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Jeff ETA Report
|
||||||
|
###############################################################################
|
||||||
|
jeff_eta_report:
|
||||||
|
sequence:
|
||||||
|
- service: script.voice_notify
|
||||||
|
data_template:
|
||||||
|
message: !include ../templates/jeff_eta.yaml
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Kat ETA Report
|
||||||
|
###############################################################################
|
||||||
|
kat_eta_report:
|
||||||
|
sequence:
|
||||||
|
- service: script.voice_notify
|
||||||
|
data_template:
|
||||||
|
message: !include ../templates/kat_eta.yaml
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Prebed Routing
|
# Prebed Routing
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -225,5 +251,6 @@ script:
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.voice_notify
|
- service: script.voice_notify
|
||||||
data_template:
|
data_template:
|
||||||
message: >
|
message: !include ../templates/skylar_night.yaml
|
||||||
Bed time is in 30 mins. If you are taking a bath now is the time to get in the tub, otherwise time to put on pajamas and brush teeth.
|
# message: >
|
||||||
|
# Bed time is in 30 mins. If you are taking a bath now is the time to get in the tub, otherwise time to put on pajamas and brush teeth.
|
||||||
|
|
Loading…
Reference in New Issue