Listing all entities exposed to voice

Is there a way of listing all entities that are exposed to voice. I’ve seen this question asked before, but not seen anyone give a definitive answer.

I’m trying to create an LLM instruction for my voice assistant and found this template

{% for entity in exposed_entities -%}
{{ entity.entity_id }},{{ entity.name }},{{ entity.state }},{{entity.aliases | join('/')}}
{% endfor -%}

However, when I try it in the template editor I get

exposed_entities is undefined

So how do I define exposed_entities?

3 Likes

I’ve been in the same boat for months, and haven’t found a solution.
I don’t know why “exposed_entities” is part of some default templates for assistant agents, but it doesn’t seem to work. I thought that “exposed_entities” would be maybe defined only when rendering a prompt template, but according to my ollama logs, that is not the case.

I’m keeping an eye out though!

4 Likes