Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Turn off the lights" gives unexpected error with Home Assistant Voice PE #134429

Open
michaelblight opened this issue Jan 2, 2025 · 1 comment

Comments

@michaelblight
Copy link

The problem

I'm on HAOS 2024.12.5 so I expect Year Of The Voice Chapter 5 applies. I received my Voice PE and set the device area to be Kitchen. When I say "turn off the lights", it's saying "Unexpected error" and the log is below.

I'm getting the same error if I say "turn off the lights in the lounge".

Note that in this example I have OpenAI configured but it was processed locally (using the fallback capability introduced in 2024.12). I get the same error using the HA conversation agent (see below).

image

image

What version of Home Assistant Core has the issue?

core-2024.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Conversation

Link to integration documentation on our website

https://www.home-assistant.io/integrations/conversation/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.conversation.default_agent
Source: components/conversation/default_agent.py:441
integration: Conversation (documentation, issues)
First occurred: 17:47:40 (2 occurrences)
Last logged: 17:48:37

Unexpected intent error
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 144, in async_handle
    result = await handler.async_handle(intent)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 981, in async_handle
    match_result = async_match_targets(hass, match_constraints, match_preferences)
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 595, in async_match_targets
    _add_areas(ar, dr, candidates)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 496, in _add_areas
    assert candidate.area is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/conversation/default_agent.py", line 441, in _async_process_intent_result
    intent_response = await intent.async_handle(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<10 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 152, in async_handle
    raise IntentUnexpectedError(f"Error handling {intent_type}") from err
homeassistant.helpers.intent.IntentUnexpectedError: Error handling HassTurnOn

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jan 2, 2025

Hey there @home-assistant/core, @synesthesiam, mind taking a look at this issue as it has been labeled with an integration (conversation) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of conversation can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign conversation Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


conversation documentation
conversation source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants