-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi,
New to HASS. Got windows HASS agent installed on a windows 11 PC and talking to MQTT - all looked normal.
HASS.agent integration detected the PC and seemed to add it.
Showed thePC name under HASS integration but no sensors or actions. When pressing configuration I got the error message above "Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble".
Enabled debug logging.
Found the following warnings and errors:
Log details (WARNING)
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:350
First occurred: 10:08:30 AM (48 occurrences)
Last logged: 10:30:03 AM
Detected that custom integration 'hass_agent' calls device_registry._async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registry_async_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create(. Please create a bug report at https://github.com/LAB02-Research/HASS.Agent-Integration/issues
Detected that custom integration 'octopus_energy' doesn't specify mean_type when calling async_import_statistics at custom_components/octopus_energy/statistics/consumption.py, line 63: async_add_external_statistics(. This will stop working in Home Assistant 2026.11, please create a bug report at https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/issues
Logger: homeassistant.util.logging
Source: util/logging.py:167
First occurred: 10:08:33 AM (44 occurrences)
Last logged: 10:30:03 AM
Exception in updated when handling msg on 'hass.agent/devices/TWSGAME': '{"serial_number":"e1a60743-2cfa-46c6-8e74-fdadd1f45250","device":{"identifiers":"hass.agent-TWSGAME","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.26200.0","name":"TWSGAME","sw_version":"2.2.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 144, in updated update_device_info(hass, entry, payload) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/hass_agent/init.py", line 29, in update_device_info device_registry.async_get_or_create( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ config_entry_id=entry.entry_id, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... sw_version=new_device_info["device"]["sw_version"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 983, in async_get_or_create device = self._async_update_device( device.id, ...<18 lines>... via_device_id=via_device_id, ) File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1283, in _async_update_device self.hass.verify_event_loop_thread("device_registry._async_update_device") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 428, in verify_event_loop_thread frame.report_non_thread_safe_operation(what) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 417, in report_non_thread_safe_operation report_usage( ~~~~~~~~~~~~^ f"calls {what} from a thread other than the event loop, " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... custom_integration_behavior=ReportBehavior.ERROR, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 218, in report_usage future.result() ~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 456, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self.exception File "/usr/src/homeassistant/homeassistant/util/async.py", line 67, in run_callback future.set_result(callback(*args)) ~~~~~~~~^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 266, in _report_usage _report_usage_integration_frame( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ hass, ^^^^^ ...<4 lines>... integration_behavior is ReportBehavior.ERROR, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 366, in _report_usage_integration_frame raise RuntimeError( ...<5 lines>... ) RuntimeError: Detected that custom integration 'hass_agent' calls device_registry._async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registry_async_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create(. Please create a bug report at https://github.com/LAB02-Research/HASS.Agent-Integration/issues
Exception in updated when handling msg on 'hass.agent/devices/TWSGAME': '{"serial_number":"e1a60743-2cfa-46c6-8e74-fdadd1f45250","device":{"identifiers":"hass.agent-TWSGAME","manufacturer":"HASS.Agent Team","model":"Microsoft Windows NT 10.0.26200.0","name":"TWSGAME","sw_version":"2.2.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 144, in updated update_device_info(hass, entry, payload) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/hass_agent/init.py", line 29, in update_device_info device_registry.async_get_or_create( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ config_entry_id=entry.entry_id, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... sw_version=new_device_info["device"]["sw_version"], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 983, in async_get_or_create device = self._async_update_device( device.id, ...<18 lines>... via_device_id=via_device_id, ) File "/usr/src/homeassistant/homeassistant/helpers/device_registry.py", line 1283, in _async_update_device self.hass.verify_event_loop_thread("device_registry._async_update_device") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 428, in verify_event_loop_thread frame.report_non_thread_safe_operation(what) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 417, in report_non_thread_safe_operation report_usage( ~~~~~~~~~~~~^ f"calls {what} from a thread other than the event loop, " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... custom_integration_behavior=ReportBehavior.ERROR, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 218, in report_usage future.result() ~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 449, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result raise self.exception File "/usr/src/homeassistant/homeassistant/util/async.py", line 67, in run_callback future.set_result(callback(*args)) ~~~~~~~~^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 266, in _report_usage _report_usage_integration_frame( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ hass, ^^^^^ ...<4 lines>... integration_behavior is ReportBehavior.ERROR, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 366, in _report_usage_integration_frame raise RuntimeError( ...<5 lines>... ) RuntimeError: Detected that custom integration 'hass_agent' calls device_registry._async_update_device from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#device_registry_async_update_device at custom_components/hass_agent/init.py, line 29: device_registry.async_get_or_create(. Please create a bug report at https://github.com/LAB02-Research/HASS.Agent-Integration/issues