Change TTS behavior for more versatility in briefings and readouts
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: 363a0a033d...221715c548
@ -274,7 +274,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: common
|
who: "{{ who if who is defined else 'common' }}"
|
||||||
message: !include ../templates/speech/daily_briefing.yaml
|
message: !include ../templates/speech/daily_briefing.yaml
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
@ -285,7 +285,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: common
|
who: "{{ who if who is defined else 'common' }}"
|
||||||
message: !include ../templates/speech/nightly_briefing.yaml
|
message: !include ../templates/speech/nightly_briefing.yaml
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
@ -296,7 +296,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.speech_engine
|
- service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: common
|
who: "{{ who if who is defined else 'common' }}"
|
||||||
message: !include ../templates/speech/morning_briefing.yaml
|
message: !include ../templates/speech/morning_briefing.yaml
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
@ -307,7 +307,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: 'everywhere'
|
who: "{{ who if who is defined else 'everywhere' }}"
|
||||||
call_dinner_is_ready: 1
|
call_dinner_is_ready: 1
|
||||||
|
|
||||||
we_are_leaving:
|
we_are_leaving:
|
||||||
@ -315,7 +315,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: 'everywhere'
|
who: "{{ who if who is defined else 'everywhere' }}"
|
||||||
call_we_are_leaving: 1
|
call_we_are_leaving: 1
|
||||||
|
|
||||||
welcome_home:
|
welcome_home:
|
||||||
@ -402,7 +402,7 @@ script:
|
|||||||
- alias: "Read the announcement"
|
- alias: "Read the announcement"
|
||||||
service: script.speech_engine
|
service: script.speech_engine
|
||||||
data:
|
data:
|
||||||
who: everywhere
|
who: "{{ who if who is defined else 'everywhere' }}"
|
||||||
message: !include ../templates/speech/birthdays.yaml
|
message: !include ../templates/speech/birthdays.yaml
|
||||||
- alias: "Give time for the announcement to complete"
|
- alias: "Give time for the announcement to complete"
|
||||||
delay:
|
delay:
|
||||||
|
@ -1016,7 +1016,7 @@ script:
|
|||||||
name: 'Who'
|
name: 'Who'
|
||||||
description: 'This determines which speaker, or group of speakers, the message is sent to'
|
description: 'This determines which speaker, or group of speakers, the message is sent to'
|
||||||
required: true
|
required: true
|
||||||
example: 'living_room, basement, basement_google, common_areas, master_bedroom, kallen_bedroom, emma_bedroom, kids_bedrooms, all_bedrooms, everywhere'
|
example: 'living_room, basement, basement_google, common_areas, master_bedroom, kallen_bedroom, emma_bedroom, kids_bedrooms, all_bedrooms, alexa_everywhere, everywhere'
|
||||||
selector:
|
selector:
|
||||||
select:
|
select:
|
||||||
options:
|
options:
|
||||||
@ -1029,6 +1029,7 @@ script:
|
|||||||
- emma_bedroom
|
- emma_bedroom
|
||||||
- kids_bedrooms
|
- kids_bedrooms
|
||||||
- all_bedrooms
|
- all_bedrooms
|
||||||
|
- alexa_everywhere
|
||||||
- everywhere
|
- everywhere
|
||||||
message:
|
message:
|
||||||
name: 'Message'
|
name: 'Message'
|
||||||
@ -1146,6 +1147,8 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif who in ['Common Areas','common','common_areas'] %}
|
{% elif who in ['Common Areas','common','common_areas'] %}
|
||||||
script.alexa_voice
|
script.alexa_voice
|
||||||
|
{% elif who in ['alexa_everywhere','Alexa Everywhere'] %}
|
||||||
|
script.alexa_voice
|
||||||
{% elif who in ['Everywhere','everywhere'] %}
|
{% elif who in ['Everywhere','everywhere'] %}
|
||||||
script.alexa_voice
|
script.alexa_voice
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -1191,6 +1194,16 @@ script:
|
|||||||
{% else %}
|
{% else %}
|
||||||
common
|
common
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% elif who in ['alexa_everywhere','Alexa Everywhere'] %}
|
||||||
|
{% if is_state('input_boolean.master_bedroom_sleeping','on') and is_state('input_boolean.studio_quiet','on') %}
|
||||||
|
living_room
|
||||||
|
{% elif is_state('input_boolean.master_bedroom_sleeping','on') %}
|
||||||
|
common
|
||||||
|
{% elif is_state('input_boolean.studio_quiet','on') %}
|
||||||
|
alexa_no_basement
|
||||||
|
{% else %}
|
||||||
|
alexa_everywhere
|
||||||
|
{% endif %}
|
||||||
{% elif who in ['Everywhere','everywhere'] %}
|
{% elif who in ['Everywhere','everywhere'] %}
|
||||||
{% if is_state('input_boolean.studio_quiet','on') %}
|
{% if is_state('input_boolean.studio_quiet','on') %}
|
||||||
alexa_no_basement
|
alexa_no_basement
|
||||||
@ -1331,7 +1344,7 @@ script:
|
|||||||
media_player.basement_echo_dot
|
media_player.basement_echo_dot
|
||||||
{% elif who in ['common','common_areas'] %}
|
{% elif who in ['common','common_areas'] %}
|
||||||
group.common_areas
|
group.common_areas
|
||||||
{% elif who in ['Everywhere','everywhere'] %}
|
{% elif who in ['Everywhere','everywhere','alexa_everywhere','Alexa Everywhere'] %}
|
||||||
group.alexa_everywhere
|
group.alexa_everywhere
|
||||||
{% elif who in ['alexa_no_basement'] %}
|
{% elif who in ['alexa_no_basement'] %}
|
||||||
group.alexa_no_basement
|
group.alexa_no_basement
|
||||||
|
@ -420,10 +420,19 @@ script:
|
|||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.security_armed_home
|
entity_id: input_boolean.security_armed_home
|
||||||
- service: script.status_annc
|
- if:
|
||||||
data:
|
- condition: template
|
||||||
who: living_room
|
value_template: >
|
||||||
call_security_armed: 1
|
{% if silent == 1 %}
|
||||||
|
false
|
||||||
|
{% else %}
|
||||||
|
true
|
||||||
|
{% endif %}
|
||||||
|
then:
|
||||||
|
- service: script.status_annc
|
||||||
|
data:
|
||||||
|
who: living_room
|
||||||
|
call_security_armed: 1
|
||||||
else:
|
else:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
target:
|
target:
|
||||||
@ -473,9 +482,18 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: input_boolean.lockdown_issue
|
entity_id: input_boolean.lockdown_issue
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: and
|
||||||
entity_id: input_boolean.security_armed_home
|
conditions:
|
||||||
state: 'on'
|
- condition: state
|
||||||
|
entity_id: input_boolean.security_armed_home
|
||||||
|
state: 'on'
|
||||||
|
- condition: template
|
||||||
|
value_template: >
|
||||||
|
{% if silent == 1 %}
|
||||||
|
false
|
||||||
|
{% else %}
|
||||||
|
true
|
||||||
|
{% endif %}
|
||||||
then:
|
then:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
|
Reference in New Issue
Block a user