It didn't like getting the volume values from an input_number

This commit is contained in:
2022-04-18 19:54:03 -04:00
parent c1e31a04c1
commit 00b0b68cb7

View File

@ -566,13 +566,9 @@ script:
{% endif %} {% endif %}
volume_level: > volume_level: >
{% if states.input_boolean.audible_notifications.state == 'on' %} {% if states.input_boolean.audible_notifications.state == 'on' %}
{% if who == 'kallen_bedroom_speaker' %} .7
{{ states('input_number.tts_volume') | float }}
{% else %}
{{ states('input_number.tts_volume') | float }}
{% endif %}
{% else %} {% else %}
{{ states('input_number.tts_low_volume') | float }} .3
{% endif %} {% endif %}
- service: tts.amazon_polly_say - service: tts.amazon_polly_say
data_template: data_template: