Change TTS behavior for more versatility in briefings and readouts

This commit is contained in:
2023-03-09 13:46:13 -05:00
parent fba4ea3baa
commit 6c884d6966
4 changed files with 47 additions and 16 deletions

View File

@ -420,10 +420,19 @@ script:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.security_armed_home
- service: script.status_annc
data:
who: living_room
call_security_armed: 1
- if:
- condition: template
value_template: >
{% if silent == 1 %}
false
{% else %}
true
{% endif %}
then:
- service: script.status_annc
data:
who: living_room
call_security_armed: 1
else:
- service: input_boolean.turn_on
target:
@ -473,9 +482,18 @@ script:
target:
entity_id: input_boolean.lockdown_issue
- if:
- condition: state
entity_id: input_boolean.security_armed_home
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.security_armed_home
state: 'on'
- condition: template
value_template: >
{% if silent == 1 %}
false
{% else %}
true
{% endif %}
then:
- service: script.status_annc
data: