mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 02:46:53 +00:00
Ask Yes/No Question Blueprint Update (#39811)
This commit is contained in:
parent
88f498cc93
commit
a8566af65d
@ -83,8 +83,39 @@ blueprint:
|
|||||||
min: 0
|
min: 0
|
||||||
max: 10
|
max: 10
|
||||||
mode: slider
|
mode: slider
|
||||||
variables:
|
|
||||||
yes_sentences:
|
fields:
|
||||||
|
voice_assistant:
|
||||||
|
name: Voice assistant
|
||||||
|
description: The voice assistant that will be used for that conversation.
|
||||||
|
required: true
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
multiple: false
|
||||||
|
filter:
|
||||||
|
- domain: assist_satellite
|
||||||
|
preannounce:
|
||||||
|
name: Preannounce
|
||||||
|
description: Play a sound before the question is asked.
|
||||||
|
required: true
|
||||||
|
default: true
|
||||||
|
selector:
|
||||||
|
boolean:
|
||||||
|
|
||||||
|
sequence:
|
||||||
|
- variables:
|
||||||
|
number_of_retries: !input number_of_retries
|
||||||
|
- repeat:
|
||||||
|
sequence:
|
||||||
|
- action: assist_satellite.ask_question
|
||||||
|
continue_on_error: true
|
||||||
|
data:
|
||||||
|
question: !input question
|
||||||
|
preannounce: "{{preannounce}}"
|
||||||
|
entity_id: "{{voice_assistant}}"
|
||||||
|
answers:
|
||||||
|
- id: "yes"
|
||||||
|
sentences:
|
||||||
- "Yes"
|
- "Yes"
|
||||||
- Sure
|
- Sure
|
||||||
- Absolutely
|
- Absolutely
|
||||||
@ -135,7 +166,8 @@ variables:
|
|||||||
- Please go ahead
|
- Please go ahead
|
||||||
- That's what I want
|
- That's what I want
|
||||||
- Exactly
|
- Exactly
|
||||||
no_sentences:
|
- id: "no"
|
||||||
|
sentences:
|
||||||
- "No"
|
- "No"
|
||||||
- Nope
|
- Nope
|
||||||
- Don't
|
- Don't
|
||||||
@ -185,41 +217,6 @@ variables:
|
|||||||
- No that's wrong
|
- No that's wrong
|
||||||
- Let's skip that
|
- Let's skip that
|
||||||
- I'm not comfortable with that
|
- I'm not comfortable with that
|
||||||
|
|
||||||
fields:
|
|
||||||
voice_assistant:
|
|
||||||
name: Voice assistant
|
|
||||||
description: The voice assistant that will be used for that conversation.
|
|
||||||
required: true
|
|
||||||
selector:
|
|
||||||
entity:
|
|
||||||
multiple: false
|
|
||||||
filter:
|
|
||||||
- domain: assist_satellite
|
|
||||||
preannounce:
|
|
||||||
name: Preannounce
|
|
||||||
description: Play a sound before the question is asked.
|
|
||||||
required: true
|
|
||||||
default: true
|
|
||||||
selector:
|
|
||||||
boolean:
|
|
||||||
|
|
||||||
sequence:
|
|
||||||
- variables:
|
|
||||||
number_of_retries: !input number_of_retries
|
|
||||||
- repeat:
|
|
||||||
sequence:
|
|
||||||
- action: assist_satellite.ask_question
|
|
||||||
continue_on_error: true
|
|
||||||
data:
|
|
||||||
question: !input question
|
|
||||||
preannounce: "{{preannounce}}"
|
|
||||||
entity_id: "{{voice_assistant}}"
|
|
||||||
answers:
|
|
||||||
- id: "yes"
|
|
||||||
sentences: "{{yes_sentences}}"
|
|
||||||
- id: "no"
|
|
||||||
sentences: "{{no_sentences}}"
|
|
||||||
response_variable: response
|
response_variable: response
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user