Skip to content

A hidden device named in full is not swapped for an exposed one - #30

Merged
AboveColin merged 1 commit into
feature/1.16from
unexposed-name
Sep 24, 2026
Merged

AboveColin merged 1 commit into
feature/1.16from
unexposed-name

Conversation

@AboveColin

Copy link
Copy Markdown
Owner

With an unexposed "Desk lamp" and an exposed "Lamp", "turn on the desk lamp" came back from the model as Lamp and turned it on, 3 of 3 times on a development instance. The model can only pick from what it was shown, and Lamp was the closest option.

The snapshot now keeps the names of entities the model is not shown: not exposed, a lock or entrance cover, or past the cap. The names stay in Home Assistant and do not go into the request. When the command says one of them in more words than it says the chosen device, the agent falls back and records "named a device that is not exposed". The same check runs before the ask-back, so a hidden "Desk lamp" is not asked about as a choice between two exposed lamps.

Tests: test_a_hidden_device_named_in_full_is_not_swapped_for_an_exposed_one, test_a_hidden_name_is_not_asked_about_as_a_shared_one.

Local gate: ruff, ruff format, mypy --strict, pytest (438 passed, 12 skipped), config_flow 100%, mkdocs --strict, hassfest. EXIT 0.

Stacked on #22: the base is voice-ask-back and it moves to feature/1.16 when #22 merges.

With an unexposed "Desk lamp" and an exposed "Lamp", "turn on the desk
lamp" came back from the model as Lamp and turned it on, 3 of 3 times on a
development instance. The model can only pick from what it was shown, and
Lamp was the closest option.

The snapshot now keeps the names of entities the model is not shown: not
exposed, a lock or entrance cover, or past the cap. They stay in Home
Assistant. When the command says one of them in more words than it says
the chosen device, the agent falls back and records "named a device that
is not exposed".
@AboveColin
AboveColin changed the base branch from voice-ask-back to feature/1.16 September 24, 2026 09:49
@AboveColin
AboveColin merged commit 1cd006e into feature/1.16 Sep 24, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant