Change TTS behavior for more versatility in briefings and readouts
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user