Hi everyone,
I’m trying to dynamically select an assist satellite in my Home Assistant script and then use it with the assist_satellite.ask_question
action.
My goal is to have a selector in the script editor to choose the specific assist satellite that should ask a question. Here’s what I’ve tried:
Something like this:
sequence:
- action: assist_satellite.ask_question
metadata: {}
data:
question: Shall I play A?
preannounce: true
entity_id: {{ assist_satellite }}
answers:
- id: "yes"
sentences:
- "yes"
response_variable: answer
fields:
assist_satellite:
selector:
select:
options:
- assist_satellite.home_assistant_voice_091713_assist_satellit
- assist_satellite.home_assistant_voice_053425_assist_satellit
name: assist_satellite
alias: test - entity selector
description: ""
The problem is that the select
option in my fields
section returns a string (e.g., assist_satellite.home_assistant_voice_091713_assist_satellit
), but the assist_satellite.ask_question
action seems to expect an entity object or a specific format for the entity_id
that I can’t quite figure out.
I’m struggling to get this to work correctly. Does anyone have an idea how to properly pass the selected assist satellite entity to the action, perhaps by converting the string to the expected object format, or is there a different approach I should take?