Conversation integration not working

Hi all,

Not sure this is properly tagged.

I am getting “Oops, an error occured” when I try to use the Conversation integration. I am not getting anything in the system logs, and I am at a loss at where to look for a fault in my installation.

I recently activated it in my Configuration.yaml, after updating to 2023.5, I am running on the following versions:
Home Assistant 2023.5.3
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

Has anyone had similar troubles with the Conversation integration?

I tried to take an example from the “Assist - Custom Sentences” page but it gives the same error

Configuration

1 Like

Can you share the error message in the logs?

I tried to run the “how is the year of voice going” assist again and then triggered a light that I knew would result in a warning to make sure the log had updated data:

2023-05-24 07:33:59.975 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration fuelprices_dk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.977 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.978 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration nordpool which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.979 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.980 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration met_next_6_hours_forecast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.981 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration edgeos which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.982 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.983 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration garmin_connect which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:33:59.984 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-05-24 07:34:12.985 WARNING (MainThread) [homeassistant.components.sensor] Platform rest not ready yet: All connection attempts failed; Retrying in background in 30 seconds
2023-05-24 07:34:14.464 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Media' for glances integration not ready yet; Retrying in background
2023-05-24 07:34:15.364 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 68, in _handle
    return await self._handle_websocket(request, token, path)
  File "/usr/src/homeassistant/homeassistant/components/hassio/ingress.py", line 101, in _handle_websocket
    await ws_server.prepare(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_ws.py", line 138, in prepare
    payload_writer = await super().prepare(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_response.py", line 421, in prepare
    return await self._start(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_response.py", line 429, in _start
    await self._write_headers()
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_response.py", line 502, in _write_headers
    await writer.write_headers(status_line, self._headers)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_writer.py", line 130, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2023-05-24 07:34:24.201 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform nordpool is taking over 10 seconds.
2023-05-24 07:35:09.548 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode 'xy' received for entity light.livingroom_lamp_1_1
2023-05-24 07:35:10.408 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_q (var) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.418 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_qo (var) cannot be converted to the unit of previously compiled statistics (W). Generation of long term statistics will be suppressed unless the unit changes back to W or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.419 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_tqi (kvarh) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.420 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_tqo (kvarh) cannot be converted to the unit of previously compiled statistics (kWh). Generation of long term statistics will be suppressed unless the unit changes back to kWh or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.436 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_pf (%) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.437 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_pf1 (%) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:10.438 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.ams_cf58_pf3 (%) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-24 07:35:13.838 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.ams_cf58_temp (<class 'homeassistant.components.mqtt.sensor.MqttSensor'>) is using native unit of measurement 'C' which is not a valid unit for the device class ('temperature') it is using; expected one of ['°C', '°F', 'K']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22
2023-05-24 07:43:37.818 WARNING (MainThread) [custom_components.edgeos.component.api.websocket] Failed to store partial message for later processing
2023-05-24 12:03:22.383 ERROR (MainThread) [homeassistant.components.shelly] Error fetching TV-Plug data: Error fetching data: DeviceConnectionError()
2023-05-24 17:03:08.334 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode 'xy' received for entity light.livingroom_lamp_1_1
2023-05-24 17:03:13.174 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode 'xy' received for entity light.livingroom_lamp_1_1

I am normally accessing through my own domain over Cloudflare with Nginx proxy manager, but I just accessed through the local IP address at home, but I got the same error message.

I had something like this happen to my install, but I was using Piper/Whisper and a custom assistant. What ended up happening to me was that somehow my Whisper disappeared and my Piper install was corrupt (I had moved my system to proxmox and restored a full backup, so guessing something went wrong with that). Anyway, I uninstalled and reinstalled Piper/Whisper and updated Wyoming protocol with the new ones, and it started working again.
That all said, have you gone into the Voice Assistant settings page and looked over what is in there? It should define a STT and TTS engine there; If those are missing I have seen it have this behavior.

1 Like

I think the setup of the configuration is okey.

I have however migrated this year from a Raspberry Pi 4B to a VM running in Unraid on an Intel NUC. It could be the migration that somehow got screwed.

I will try and start up a Home Assistant VM on my other Unraid server to see if a fresh install has the same issue.

So I noticed myself that if you set the tts/stt to none it causes this error as well. Try setting them to the default cloud ones and see if your error goes away?

1 Like

It works :sweat_smile:

I had to create a trial user for Nabu Casa in order to get Home Assistant Cloud, as I had no TTS/STT options otherwise.

Never crossed my mind that I would need TTS/STT for the initial conversation part.

I guess this is a good point in my Home Assistant journey to switch to using Nabu Casa and supporting the project :slight_smile:

3 Likes

You also have the option of using piper and whisper add-ons if you want things local, but it’s also good to support the devs and community via nabu :blush:

1 Like

I will most likely be playing around with them during June, still think it’s time to support the team though :grin:
Thanks for the help!

1 Like