Hass Fell Apart Today :-(

For some reason, it largely (but not completely) stopped working today. The UI is available, and devices look normal in my dash, but when I try and use them few to none work. This hasn’t ever happened before. I am seeing errors galore, and I have no idea how to fix this. Any help will be so welcome…

2024-10-16 19:50:29.986 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration meross_lan 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
2024-10-16 19:50:29.987 WARNING (SyncWorker_0) [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
2024-10-16 19:50:39.842 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend_experimental", False)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 49: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-10-16 19:50:39.851 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-10-16 19:50:39.860 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-10-16 19:50:40.634 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry RBR50 (Gateway) for upnp
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/upnp/__init__.py", line 87, in async_setup_entry
    device = await async_create_device(hass, location)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 76, in async_create_device
    igd_device = IgdDevice(upnp_device, None)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/async_upnp_client/profiles/igd.py", line 210, in __init__
    super().__init__(device, event_handler)
  File "/usr/local/lib/python3.12/site-packages/async_upnp_client/profiles/profile.py", line 115, in __init__
    self.profile_device = find_device_of_type(device, self.DEVICE_TYPES)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/async_upnp_client/profiles/profile.py", line 43, in find_device_of_type
    raise UpnpError(f"Could not find device of type: {device_types}")
async_upnp_client.exceptions.UpnpError: ("Could not find device of type: ['urn:schemas-upnp-org:device:InternetGatewayDevice:1', 'urn:schemas-upnp-org:device:InternetGatewayDevice:2']", None)
2024-10-16 19:50:41.003 ERROR (SyncWorker_1) [schluter.authenticator] Token has expired.
2024-10-16 19:51:30.784 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('ecobee', '01J24YS5C3QT6CXRQRXSPFHX1B'): 31844.165517483, ('google', 'a008c31ce561b48f67689532d9e5e8c8'): 31847.872629366}
2024-10-16 19:52:30.846 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('ecobee', '01J24YS5C3QT6CXRQRXSPFHX1B'): 31844.165517483, ('google', 'a008c31ce561b48f67689532d9e5e8c8'): 31847.872629366}
2024-10-16 19:53:30.912 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('ecobee', '01J24YS5C3QT6CXRQRXSPFHX1B'): 31844.165517483, ('google', 'a008c31ce561b48f67689532d9e5e8c8'): 31847.872629366}
2024-10-16 19:54:30.990 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('google', 'a008c31ce561b48f67689532d9e5e8c8'): 31847.872629366}
2024-10-16 19:55:19.327 WARNING (MainThread) [homeassistant.helpers.entity] Update of weather.family_room_ecobee is taking over 10 seconds
2024-10-16 19:55:31.070 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('google', 'a008c31ce561b48f67689532d9e5e8c8'): 31847.872629366}
2024-10-16 19:55:32.635 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for google
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 586, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 170, in async_setup_entry
    await session.async_ensure_token_valid()
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 531, in async_ensure_token_valid
    new_token = await self.implementation.async_refresh_token(self.token)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 103, in async_refresh_token
    new_token = await self._async_refresh_token(token)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 193, in _async_refresh_token
    new_token = await self._token_request(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 212, in _token_request
    resp = await session.post(self.token_url, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 581, in _request
    conn = await self._connector.connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect
    proto = await self._create_connection(req, traces, timeout)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 944, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1104, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1007, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 641, in sock_connect
    return await fut
           ^^^^^^^^^
asyncio.exceptions.CancelledError: Global task timeout
2024-10-16 19:55:32.656 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 waiting on {<Task pending name='Task-3960' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-3961' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-3959' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>} - moving forward
2024-10-16 19:55:37.198 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-10-16 19:55:39.327 WARNING (MainThread) [homeassistant.components.weather] Updating ecobee weather took longer than the scheduled update interval 0:00:30
2024-10-16 19:55:52.185 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: wiffi.binary_sensor, mobile_app.sensor, konnected.switch, recorder, zha.sensor, http, homekit_controller.select, zha.climate, tplink.number, lutron_caseta.scene, script, ipp, intent, input_datetime, hue.sensor, panel_custom, zha.binary_sensor, update, dlna_dmr, tplink.light, onboarding, ring.camera, rachio.binary_sensor, logger, lutron_caseta.cover, met, ffmpeg, met.weather, radio_browser, tplink.climate, konnected, synology_dsm.button, button, homekit_controller.climate, network, jewish_calendar.sensor, sun, hacs, schluter.climate, esphome.button, webhook, zone, system_log, cloud.binary_sensor, ecobee.climate, zwave_js.number, zha.number, hue, wiffi, camera, homeassistant, ring.sensor, upnp, esphome, zwave_js.cover, todo, blueprint, hassio.binary_sensor, hue.binary_sensor, synology_dsm, ring.button, select, homeassistant.scene, hue.event, diagnostics, search, ssdp, homekit_controller.light, alarm_control_panel, zha.light, application_credentials, hardware, esphome.sensor, persistent_notification, siren, schedule, esphome.lock, ecobee.humidifier, esphome.binary_sensor, meross_lan, lutron_caseta.light, konnected.sensor, stream, webostv, group.cover, synology_dsm.camera, roku.remote, lutron_caseta.switch, lock, zha, input_select, tag, zwave_js, sonos.sensor, humidifier, cloud, input_number, zha.lock, zwave_js.binary_sensor, scene, number, group, climate, homeassistant_alerts, roku.media_player, webostv.notify, zha.siren, system_health, mobile_app.device_tracker, zha.fan, konnected.binary_sensor, tts, hassio.sensor, stt, hacs.sensor, api, hacs.update, ecobee.number, zha.cover, roku, google_translate.tts, zha.update, ring, tplink, meross_lan.switch, sonos.media_player, image_upload, synology_dsm.update, homekit_controller.sensor, homekit_controller, shopping_list, webostv.media_player, conversation, mobile_app.binary_sensor, mobile_app.notify, upnp.binary_sensor, config, ring.siren, ring.switch, bluetooth_adapters, zwave_js.event, wiffi.sensor, ecobee.sensor, zha.alarm_control_panel, sonos.binary_sensor, hassio.update, roku.binary_sensor, zha.switch, auth, media_source, raspberry_pi, light, binary_sensor, trace, lovelace, input_text, event, lutron_caseta.binary_sensor, tplink.switch, default_config, counter, tplink.button, zwave_js.select, sonos, upnp.sensor, esphome.number, media_player, weather, device_automation, rachio.switch, rpi_power.binary_sensor, backup, ecobee, homekit_controller.number, map, lutron_caseta, zwave_js.sensor, ring.light, synology_dsm.sensor, sensor, samsungtv.media_player, homekit_controller.binary_sensor, websocket_api, ecobee.notify, timer, roku.sensor, my, zha.device_tracker, jewish_calendar, zwave_js.switch, sonos.number, rpi_power, ecobee.binary_sensor, esphome.cover, rachio, logbook, cloud.stt, group.light, bluetooth, tplink.binary_sensor, esphome.light, spotify.media_player, schluter, meross_lan.update, hassio, broadlink, ipp.sensor, meross_lan.sensor, usb, google, frontend, spotify, zwave_js.button, analytics, wake_word, lutron_caseta.button, lutron_caseta.fan, cover, input_button, input_boolean, tplink.sensor, notify, cloud.tts, ecobee.switch, ibeacon, zwave_js.update, repairs, device_tracker, ecobee.weather, synology_dsm.switch, sonos.switch, synology_dsm.binary_sensor, meross_lan.light, file_upload, energy.sensor, ibeacon.device_tracker, remote, switch, homekit_controller.button, history, ibeacon.sensor, person, fan, hue.light, tplink.fan, dlna_dmr.media_player, tplink.select, automation, esphome.switch, shopping_list.todo, sun.sensor, google_translate, roku.select, homekit_controller.fan, zwave_js.light, zeroconf, dhcp, assist_pipeline, energy, samsungtv, ring.binary_sensor, homekit_controller.switch, zha.button, zha.select, hue.scene, hue.switch, samsungtv.remote, mobile_app, jewish_calendar.binary_sensor The system is waiting for tasks: {<Task pending name='Task-4019' coro=<HacsBase.startup_tasks() running at /config/custom_components/hacs/base.py:686> wait_for=<Future pending cb=[BaseSelectorEventLoop._sock_write_done(19, handle=<Handle BaseS..., 443, 0, 0))>)(), Task.task_wakeup()]> cb=[set.remove()]>}
2024-10-16 19:56:09.328 WARNING (MainThread) [homeassistant.components.weather] Updating ecobee weather took longer than the scheduled update interval 0:00:30
2024-10-16 19:56:23.057 ERROR (MainThread) [homeassistant.components.homeassistant_alerts.coordinator] Timeout fetching homeassistant_alerts data
2024-10-16 19:56:39.329 WARNING (MainThread) [homeassistant.components.weather] Updating ecobee weather took longer than the scheduled update interval 0:00:30
2024-10-16 19:57:39.057 ERROR (MainThread) [custom_components.hacs] Could not update template - Timeout of 60s reached
2024-10-16 19:57:39.059 ERROR (MainThread) [custom_components.hacs] Could not update theme - Timeout of 60s reached
2024-10-16 19:57:39.061 ERROR (MainThread) [custom_components.hacs] Could not update plugin - Timeout of 60s reached
2024-10-16 19:58:19.333 WARNING (MainThread) [homeassistant.helpers.entity] Update of weather.family_room_ecobee is taking over 10 seconds
2024-10-16 19:58:39.332 WARNING (MainThread) [homeassistant.components.weather] Updating ecobee weather took longer than the scheduled update interval 0:00:30
2024-10-16 19:59:09.333 WARNING (MainThread) [homeassistant.components.weather] Updating ecobee weather took longer than the scheduled update interval 0:00:30

Hi Jonathan,

2024.5+: Tracking down instability issues caused by integrations Might be a good place to start.

1 Like

Looks like you have two integrations blocking startup

custom_components.hacs

2024-10-16 19:55:52.185 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: wiffi.binary_sensor, mobile_app.sensor, konnected.switch, recorder, zha.sensor, http, homekit_controller.select, zha.climate, tplink.number, lutron_caseta.scene, script, ipp, intent, input_datetime, hue.sensor, panel_custom, zha.binary_sensor, update, dlna_dmr, tplink.light, onboarding, ring.camera, rachio.binary_sensor, logger, lutron_caseta.cover, met, ffmpeg, met.weather, radio_browser, tplink.climate, konnected, synology_dsm.button, button, homekit_controller.climate, network, jewish_calendar.sensor, sun, hacs, schluter.climate, esphome.button, webhook, zone, system_log, cloud.binary_sensor, ecobee.climate, zwave_js.number, zha.number, hue, wiffi, camera, homeassistant, ring.sensor, upnp, esphome, zwave_js.cover, todo, blueprint, hassio.binary_sensor, hue.binary_sensor, synology_dsm, ring.button, select, homeassistant.scene, hue.event, diagnostics, search, ssdp, homekit_controller.light, alarm_control_panel, zha.light, application_credentials, hardware, esphome.sensor, persistent_notification, siren, schedule, esphome.lock, ecobee.humidifier, esphome.binary_sensor, meross_lan, lutron_caseta.light, konnected.sensor, stream, webostv, group.cover, synology_dsm.camera, roku.remote, lutron_caseta.switch, lock, zha, input_select, tag, zwave_js, sonos.sensor, humidifier, cloud, input_number, zha.lock, zwave_js.binary_sensor, scene, number, group, climate, homeassistant_alerts, roku.media_player, webostv.notify, zha.siren, system_health, mobile_app.device_tracker, zha.fan, konnected.binary_sensor, tts, hassio.sensor, stt, hacs.sensor, api, hacs.update, ecobee.number, zha.cover, roku, google_translate.tts, zha.update, ring, tplink, meross_lan.switch, sonos.media_player, image_upload, synology_dsm.update, homekit_controller.sensor, homekit_controller, shopping_list, webostv.media_player, conversation, mobile_app.binary_sensor, mobile_app.notify, upnp.binary_sensor, config, ring.siren, ring.switch, bluetooth_adapters, zwave_js.event, wiffi.sensor, ecobee.sensor, zha.alarm_control_panel, sonos.binary_sensor, hassio.update, roku.binary_sensor, zha.switch, auth, media_source, raspberry_pi, light, binary_sensor, trace, lovelace, input_text, event, lutron_caseta.binary_sensor, tplink.switch, default_config, counter, tplink.button, zwave_js.select, sonos, upnp.sensor, esphome.number, media_player, weather, device_automation, rachio.switch, rpi_power.binary_sensor, backup, ecobee, homekit_controller.number, map, lutron_caseta, zwave_js.sensor, ring.light, synology_dsm.sensor, sensor, samsungtv.media_player, homekit_controller.binary_sensor, websocket_api, ecobee.notify, timer, roku.sensor, my, zha.device_tracker, jewish_calendar, zwave_js.switch, sonos.number, rpi_power, ecobee.binary_sensor, esphome.cover, rachio, logbook, cloud.stt, group.light, bluetooth, tplink.binary_sensor, esphome.light, spotify.media_player, schluter, meross_lan.update, hassio, broadlink, ipp.sensor, meross_lan.sensor, usb, google, frontend, spotify, zwave_js.button, analytics, wake_word, lutron_caseta.button, lutron_caseta.fan, cover, input_button, input_boolean, tplink.sensor, notify, cloud.tts, ecobee.switch, ibeacon, zwave_js.update, repairs, device_tracker, ecobee.weather, synology_dsm.switch, sonos.switch, synology_dsm.binary_sensor, meross_lan.light, file_upload, energy.sensor, ibeacon.device_tracker, remote, switch, homekit_controller.button, history, ibeacon.sensor, person, fan, hue.light, tplink.fan, dlna_dmr.media_player, tplink.select, automation, esphome.switch, shopping_list.todo, sun.sensor, google_translate, roku.select, homekit_controller.fan, zwave_js.light, zeroconf, dhcp, assist_pipeline, energy, samsungtv, ring.binary_sensor, homekit_controller.switch, zha.button, zha.select, hue.scene, hue.switch, samsungtv.remote, mobile_app, jewish_calendar.binary_sensor The system is waiting for tasks: {<Task pending name='Task-4019' coro=<HacsBase.startup_tasks() running at /config/custom_components/hacs/base.py:686> wait_for=<Future pending cb=[BaseSelectorEventLoop._sock_write_done(19, handle=<Handle BaseS..., 443, 0, 0))>)(), Task.task_wakeup()]> cb=[set.remove()]>}

custom_components.meross_lan

2024-10-16 19:55:32.656 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 waiting on {<Task pending name='Task-3960' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-3961' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>, <Task pending name='Task-3959' coro=<MerossDevice._async_polling_callback() running at /config/custom_components/meross_lan/meross_device.py:1541> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>} - moving forward