Moved back to main house speaker for TTS

This commit is contained in:
Jeffrey Stone 2019-10-05 20:08:02 -04:00
parent 896db171c9
commit a898551ba1
1 changed files with 24 additions and 21 deletions

View File

@ -214,8 +214,8 @@ script:
# - service: switch.turn_on # - service: switch.turn_on
# entity_id: switch.ha_speaker # entity_id: switch.ha_speaker
# - condition: state # - condition: state
entity_id: media_player.guest_tv # entity_id: media_player.guest_tv
state: 'idle' # state: 'idle'
- service: tts.google_translate_say - service: tts.google_translate_say
data_template: data_template:
entity_id: media_player.guest_tv entity_id: media_player.guest_tv
@ -237,30 +237,31 @@ script:
- condition: state - condition: state
entity_id: input_boolean.vacation_mode entity_id: input_boolean.vacation_mode
state: 'off' state: 'off'
# - service: switch.turn_on - service: switch.turn_on
# entity_id: switch.ha_speaker entity_id: switch.ha_speaker
# - service: media_player.turn_on - service: media_player.turn_on
# entity_id: media_player.guest_tv entity_id: media_player.theater
# - service: media_player.volume_set - service: media_player.volume_set
# data_template: data_template:
# entity_id: media_player.guest_tv entity_id: media_player.theater
# volume_level: > volume_level: >
# {% if states.input_boolean.audible_notifications.state == 'on' %} {% if states.input_boolean.audible_notifications.state == 'on' %}
# .65 .65
# {% else %} {% else %}
# .4 .4
# {% endif %} {% endif %}
# media_player.googlehome0715, media_player.googlehomehub3492, media_player.upstairs_speaker # media_player.googlehome0715, media_player.googlehomehub3492, media_player.upstairs_speaker
- service: tts.amazon_polly_say - service: tts.amazon_polly_say
data_template: data_template:
entity_id: > entity_id: >
{% if states.input_boolean.audible_notifications.state == 'on' %} {% if states.input_boolean.audible_notifications.state == 'on' %}
media_player.house media_player.theater
{% else %} {% else %}
media_player.house media_player.house
{% endif %} {% endif %}
message: >- message: >-
<speak> <speak>
<break time="5.0s" />
{{ message }} {{ message }}
<break time="1.0s" /> <break time="1.0s" />
</speak> </speak>
@ -465,14 +466,16 @@ script:
"I'll be going as HAL 9000. The Pod Bay Doors are being installed today." "I'll be going as HAL 9000. The Pod Bay Doors are being installed today."
] | random }} ] | random }}
{% elif states.sensor.holiday_halloween.state | int < 30 %} {% elif states.sensor.holiday_halloween.state | int < 30 %}
{{ [ "There are only {{states.sensor.holiday_halloween.state}} days until Halloween.", There are only {{states.sensor.holiday_halloween.state}} days
"Halloween is only {{states.sensor.holiday_halloween.state}} days away. It might not be enough time. ", {{ [ "until Halloween.",
"Halloween is coming. {{states.sensor.holiday_halloween.state}} days and counting.", "until Halloween. It might not be enough time. ",
"Only {{states.sensor.holiday_halloween.state}} days until Halloween.", "and counting until the best holiday ever.",
"You have {{states.sensor.holiday_halloween.state}} days until you need a costume." "until you need a costume."
] | random }} ] | random }}
{% else %} {% else %}
{% endif %} {% endif %}
{% if states.sensor.holiday_christmas.state | int == 1 %} {% if states.sensor.holiday_christmas.state | int == 1 %}
Tomorrow is Christmas. It's practically here! Santa is coming tonight! Don't forget the cookies! Tomorrow is Christmas. It's practically here! Santa is coming tonight! Don't forget the cookies!
{% elif states.sensor.holiday_christmas.state | int < 25 %} {% elif states.sensor.holiday_christmas.state | int < 25 %}