Skip to main content
Sophia NLU
About
Details
HA Edition
HA Edition
Frequently Asked Questions
Test Studio
Future Plans
Purchase
Affiliates
Documentation
Knowledgebase
Forums
Contact
Login
Edit Post
Forums
General Support
LLM Passthrough not working
Edit Post
Message
Hi, I'm also getting this same error when trying use gemini-2.5-flash as my fallback LLM. Is there any way to enable sophia debug or verbose logging? Sophia NLU 2.2 fails when using Google Gemini as the LLM fallback. **Config** - Provider: Google - Model: `gemini-3.5-flash-lite` - HA Core: 2026.9.4 - Sophia NLU: 2.2 - API key/model confirmed working directly via `curl` **Test** `ask ai what is the capital of france?` **Result** ```text intent HassError: error: Unknown intent HassError The Gemini API key and model have been independently verified to work using a direct curl request to Google's Gemini API. however, when I send: ask ai what is the capital of france? Sophia returns: intent HassError: error: Unknown intent HassError response: error reported: Unknown intent HassError The Home Assistant integration then logs: This error originated from a custom integration. Logger: custom_components.sophia_nlu.conversation Source: custom_components/sophia_nlu/conversation.py:531 Integration: Sophia NLU Engine Failed to handle intent HassError Traceback (most recent call last): File "/config/custom_components/sophia_nlu/conversation.py", line 531, in async_handle_standard_intent intent_result = await intent.async_handle( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ... File "/usr/src/homeassistant/homeassistant/helpers/intent.py", line 116, in async_handle raise UnknownIntent(f"Unknown intent {intent_type}") homeassistant.helpers.intent.UnknownIntent: Unknown intent HassError Assist pipeline trace The Assist debug trace shows Sophia itself returning the error intent: intent: engine: conversation.sophia_nlu language: en intent_input: ask ai what time is the FSU game this weekend? device_id: null satellite_id: null prefer_local_intents: false done: true processed_locally: false intent_output: response: speech: plain: speech: "sorry, i encountered an error: Unknown intent HassError" response_type: action_done data: success: [] failed: [] Additional investigation I inspected conversation.py from Sophia HA integration 2.2. The main result-processing code obtains the intent name from the Sophia/Wyoming response: data = result.get("data", {}) intent_info = data.get("intent", {}) intent_name = intent_info.get("name", "") Later, the standard HA intent path contains: if ( len(devices) == 0 or "Timer" in intent_name or "List" in intent_name or intent_name in ["HassBroadcast", "HassNevermind"] ): intent_entry = await self.async_handle_standard_intent( intent_name, slots, user_input ) Because an LLM failure is returned as HassError, and there are no resolved devices, HassError is passed to: intent.async_handle(...) Home Assistant then correctly rejects it because HassError isn't a registered Home Assistant intent. There also appears to be special response handling elsewhere that only excludes: ("HassRespond", "HassClarification", "HassNevermind") and does not include HassError.
Reason for Edit
(optional)
This will be displayed in the edit history.
Save Changes
Cancel