mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +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
|
||||
max: 10
|
||||
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"
|
||||
- Sure
|
||||
- Absolutely
|
||||
@ -135,7 +166,8 @@ variables:
|
||||
- Please go ahead
|
||||
- That's what I want
|
||||
- Exactly
|
||||
no_sentences:
|
||||
- id: "no"
|
||||
sentences:
|
||||
- "No"
|
||||
- Nope
|
||||
- Don't
|
||||
@ -185,41 +217,6 @@ variables:
|
||||
- No that's wrong
|
||||
- Let's skip 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
|
||||
- choose:
|
||||
- conditions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user