mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Ask Yes/No Question Blueprint Update (#39804)
This commit is contained in:
parent
5ab8edfa2d
commit
6b32853f6a
@ -7,25 +7,11 @@ blueprint:
|
|||||||
homeassistant:
|
homeassistant:
|
||||||
min_version: 2025.6.99
|
min_version: 2025.6.99
|
||||||
input:
|
input:
|
||||||
voice_assistant:
|
|
||||||
name: Voice assistant
|
|
||||||
description: The voice assistant that will be used for that conversation.
|
|
||||||
selector:
|
|
||||||
entity:
|
|
||||||
multiple: false
|
|
||||||
filter:
|
|
||||||
- domain: assist_satellite
|
|
||||||
question:
|
question:
|
||||||
name: Question
|
name: Question
|
||||||
description: The question that will be asked by the voice assistant.
|
description: The question that will be asked by the voice assistant.
|
||||||
selector:
|
selector:
|
||||||
text:
|
text:
|
||||||
preannounce:
|
|
||||||
name: Preannounce
|
|
||||||
description: Play a sound before the question is asked.
|
|
||||||
default: true
|
|
||||||
selector:
|
|
||||||
boolean:
|
|
||||||
|
|
||||||
yes_section:
|
yes_section:
|
||||||
name: Confirmation ('Yes', 'Of course', ...)
|
name: Confirmation ('Yes', 'Of course', ...)
|
||||||
@ -200,6 +186,24 @@ variables:
|
|||||||
- 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:
|
sequence:
|
||||||
- variables:
|
- variables:
|
||||||
number_of_retries: !input number_of_retries
|
number_of_retries: !input number_of_retries
|
||||||
@ -209,8 +213,8 @@ sequence:
|
|||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
data:
|
data:
|
||||||
question: !input question
|
question: !input question
|
||||||
preannounce: !input preannounce
|
preannounce: "{{preannounce}}"
|
||||||
entity_id: !input voice_assistant
|
entity_id: "{{voice_assistant}}"
|
||||||
answers:
|
answers:
|
||||||
- id: "yes"
|
- id: "yes"
|
||||||
sentences: "{{yes_sentences}}"
|
sentences: "{{yes_sentences}}"
|
||||||
@ -229,7 +233,7 @@ sequence:
|
|||||||
message: !input yes_answer
|
message: !input yes_answer
|
||||||
preannounce: false
|
preannounce: false
|
||||||
target:
|
target:
|
||||||
entity_id: !input voice_assistant
|
entity_id: "{{voice_assistant}}"
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{response.id == 'no'}}"
|
value_template: "{{response.id == 'no'}}"
|
||||||
@ -241,7 +245,7 @@ sequence:
|
|||||||
message: !input no_answer
|
message: !input no_answer
|
||||||
preannounce: false
|
preannounce: false
|
||||||
target:
|
target:
|
||||||
entity_id: !input voice_assistant
|
entity_id: "{{voice_assistant}}"
|
||||||
default:
|
default:
|
||||||
- sequence: !input other_actions
|
- sequence: !input other_actions
|
||||||
- action: assist_satellite.announce
|
- action: assist_satellite.announce
|
||||||
@ -250,7 +254,7 @@ sequence:
|
|||||||
message: !input other_answer
|
message: !input other_answer
|
||||||
preannounce: false
|
preannounce: false
|
||||||
target:
|
target:
|
||||||
entity_id: !input voice_assistant
|
entity_id: "{{voice_assistant}}"
|
||||||
until:
|
until:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ (response is defined and response.id in ['yes','no']) or repeat.index > number_of_retries}}"
|
value_template: "{{ (response is defined and response.id in ['yes','no']) or repeat.index > number_of_retries}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user