Modifying volume of TTS
This commit is contained in:
parent
bdc1922ff1
commit
a3eec548c3
|
@ -666,20 +666,20 @@ script:
|
||||||
volume_level: >
|
volume_level: >
|
||||||
{% if states.input_boolean.audible_notifications.state == 'on' %}
|
{% if states.input_boolean.audible_notifications.state == 'on' %}
|
||||||
{% if who == 'master_bedroom' %}
|
{% if who == 'master_bedroom' %}
|
||||||
.5
|
{{ states('input_number.tts_volume') | float }}
|
||||||
{% elif who == 'theater' %}
|
{% elif who == 'theater' %}
|
||||||
{% if is_state('media_player.tv', 'on') %}
|
{% if is_state('media_player.tv', 'on') %}
|
||||||
.3
|
{{ states('input_number.tts_low_volume') | float }}
|
||||||
{% else %}
|
{% else %}
|
||||||
.5
|
{{ states('input_number.tts_volume') | float }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif who == 'main' %}
|
{% elif who == 'main' %}
|
||||||
.5
|
{{ states('input_number.tts_volume') | float }}
|
||||||
{% else %}
|
{% else %}
|
||||||
.5
|
{{ states('input_number.tts_volume') | float }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
.3
|
{{ states('input_number.tts_low_volume') | float }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- service: tts.amazon_polly_say
|
- service: tts.amazon_polly_say
|
||||||
data_template:
|
data_template:
|
||||||
|
@ -978,7 +978,7 @@ script:
|
||||||
{{ [
|
{{ [
|
||||||
'Pardon me, ',
|
'Pardon me, ',
|
||||||
'Excuse me, ',
|
'Excuse me, ',
|
||||||
'I do not mean to interupt, but,',
|
'I do not mean to interrupt, but,',
|
||||||
'I hate to interrupt, but,',
|
'I hate to interrupt, but,',
|
||||||
'I beg your pardon, ',
|
'I beg your pardon, ',
|
||||||
'I do not mean to intrude, but, ',
|
'I do not mean to intrude, but, ',
|
||||||
|
@ -1137,7 +1137,6 @@ script:
|
||||||
|
|
||||||
{%- macro washer_needs_emptying() -%}
|
{%- macro washer_needs_emptying() -%}
|
||||||
<p>
|
<p>
|
||||||
{%- if is_state('sensor.washer_status','complete') %}
|
|
||||||
The washing machine completed its cycle
|
The washing machine completed its cycle
|
||||||
{% set seconds = now().timestamp() - as_timestamp(states.sensor.washer_status.last_changed) %}
|
{% set seconds = now().timestamp() - as_timestamp(states.sensor.washer_status.last_changed) %}
|
||||||
{% set hours = seconds / 60 %}
|
{% set hours = seconds / 60 %}
|
||||||
|
@ -1174,7 +1173,6 @@ script:
|
||||||
'You might want to move them to the dryer.'
|
'You might want to move them to the dryer.'
|
||||||
] | random }}
|
] | random }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</p>
|
</p>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue