Home Assistant crashing on 2024.4.x

HA is repeatedly crashing throughout the day. This seems to have started after upgrading to 2024.4. I am currently on 2024.4.2. The below errors appear to be occurring right before the crash. I attempted to disable some integrations and add-ons that were misbehaving. I have not tried a restore back to 2024.3 yet but that is my next step if I cannot determine the cause soon.

RuntimeError: Leaving task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> does not match the current task <Task pending name="event trigger {'domain': 'automation', 'name': 'Leak detection & notifier', 'home_assistant_start': True, 'variables': {'this': {'entity_id': 'automation.leak_detection_notifier', 'state': 'on', 'attributes': {'id': '1688989839793', 'last_triggered': None, 'mode': 'single', 'current': 0, 'friendly_name': 'Leak detection & notifier'}, 'last_changed': '2024-04-11T09:59:20.591460+00:00', 'last_reported': '2024-04-11T09:59:20.591460+00:00', 'last_updated': '2024-04-11T09:59:20.591460+00:00', 'context': {'id': '01HV69HXRFSEXKDEK0MP09032V', 'parent_id': None, 'user_id': None}}}, 'trigger_data': {'id': '0', 'idx': '0', 'alias': None}}" coro=<AutomationEntity.async_trigger() running at /usr/src/homeassistant/homeassistant/components/automation/__init__.py:657>>.
2024-04-11 06:20:29.641 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff65080760>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)

and then a bunch of these errors:

ERROR (Thread-9) [homeassistant] Error doing job: Task was destroyed but it is pending!
Home Assistant Log details
2024-04-11 05:58:53.370 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration fontawesome 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-04-11 05:58:53.372 WARNING (SyncWorker_3) [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-04-11 05:58:53.373 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration presence_simulation 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-04-11 05:58:53.374 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration sonoff 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-04-11 05:58:53.375 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration smartlife 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-04-11 05:58:53.376 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration daikin_madoka 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-04-11 05:58:53.377 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration tesla_custom 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-04-11 05:58:53.378 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration localtuya 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-04-11 05:58:53.379 WARNING (SyncWorker_3) [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
2024-04-11 05:58:53.381 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration remote_homeassistant 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-04-11 05:58:53.382 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration winix 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-04-11 05:58:53.384 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration keymaster 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-04-11 05:58:53.385 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration bambu_lab 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-04-11 05:58:53.387 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration mydolphin_plus 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-04-11 05:58:53.867 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2024-04-11 05:58:53.966 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=286 from 2024-04-11 08:49:54.304072)
2024-04-11 05:58:59.774 DEBUG (SyncWorker_2) [nuheat.api] Creating NuHeat session
2024-04-11 05:59:04.427 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-04-11 05:59:05.664 WARNING (MainThread) [homeassistant.components.roborock.coordinator] Using the cloud API for device 2pq4qwtEoA2WRCCtCi0UQ3. This is not recommended as it can lead to rate limiting. We recommend making your vacuum accessible by your Home Assistant instance
2024-04-11 05:59:05.746 ERROR (SyncWorker_9) [schluter.authenticator] Token has expired.
2024-04-11 05:59:09.284 ERROR (MainThread) [homeassistant.components.binary_sensor] rpi_power: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 707, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1270, in async_device_update
    await hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/rpi_power/binary_sensor.py", line 53, in update
    value = self._under_voltage.get()
            ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
2024-04-11 05:59:09.318 WARNING (MainThread) [homeassistant.components.light] None (<class 'custom_components.bambu_lab.light.BambuLabChamberLight'>) does not set supported color modes, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/greghesp/ha-bambulab/issues
2024-04-11 05:59:11.931 WARNING (MainThread) [slixmpp.stringprep] Using slower stringprep, consider compiling the faster cython/libidn one.
2024-04-11 05:59:12.289 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.tesla_custom.climate.TeslaCarClimate'>) implements HVACMode(s): heat_cool, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/alandtse/tesla/issues
2024-04-11 05:59:16.622 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for office-temp @ 192.168.1.254: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.254', port=6053))]: [Errno 113] Connect call failed ('192.168.1.254', 6053) (SocketAPIError)
2024-04-11 05:59:18.778 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_moving_human_energy_2 (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:18.778 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_still_human_energy_2 (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:18.840 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_moving_human_energy_3 (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:18.841 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_still_human_energy_3 (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:19.186 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_moving_human_energy (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:19.189 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.unity_still_human_energy (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('energy') it is using; expected one of ['MJ', 'kWh', 'MWh', 'GJ', 'Wh']; 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+esphome%22
2024-04-11 05:59:20.440 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Auto lock pool door' failed to setup actions and has been disabled: Unknown device '210e58fa9b7d232109ebb5c3dd0b352f'
2024-04-11 05:59:22.262 WARNING (MainThread) [homeassistant.components.image] Setup of image platform roborock is taking over 10 seconds.
2024-04-11 05:59:30.763 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/homeassistant_sky_connect/__init__.py", line 26, in _async_usb_scan_done
    serial_number=entry.data["serial_number"].lower(),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
2024-04-11 05:59:35.738 INFO (MainThread) [backoff] Backing off async_request(...) for 0.3s (tesla_wall_connector.exceptions.WallConnectorConnectionTimeoutError: Timeout while connecting to Wall Connector at 192.168.1.173)
2024-04-11 05:59:37.101 INFO (MainThread) [backoff] Backing off async_request(...) for 1.1s (tesla_wall_connector.exceptions.WallConnectorConnectionTimeoutError: Timeout while connecting to Wall Connector at 192.168.1.173)
2024-04-11 05:59:39.205 ERROR (MainThread) [backoff] Giving up async_request(...) after 3 tries (tesla_wall_connector.exceptions.WallConnectorConnectionTimeoutError: Timeout while connecting to Wall Connector at 192.168.1.173)
2024-04-11 06:00:10.441 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.water_flow_rate (gal/min) cannot be converted to the unit of previously compiled statistics (gpm). Generation of long term statistics will be suppressed unless the unit changes back to gpm or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-04-11 06:00:10.441 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.gameroom_stairs_motion_sensor_illuminance (lx) cannot be converted to the unit of previously compiled statistics (lux). Generation of long term statistics will be suppressed unless the unit changes back to lux or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-04-11 06:00:10.441 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.mudroom_hallway_motion_sensor_illuminance (lx) cannot be converted to the unit of previously compiled statistics (lux). Generation of long term statistics will be suppressed unless the unit changes back to lux or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-04-11 06:00:11.834 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2024-04-11 06:04:47.426 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.1.170 data: Unable to connect to the device: 192.168.1.170:9999: 
2024-04-11 06:06:20.931 WARNING (Thread-37) [pychromecast.socket_client] [Pool TV(192.168.1.169):8009] Heartbeat timeout, resetting connection
2024-04-11 06:06:50.965 ERROR (Thread-37) [pychromecast.socket_client] [Pool TV(192.168.1.169):8009] Failed to connect to service MDNSServiceInfo(name='HiSmart-4K-ATV4-31b342e9e6b397c078683bfeac17d32b._googlecast._tcp.local.'), retrying in 5.0s
2024-04-11 06:10:03.675 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:10:04.190 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:10:04.678 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:10:05.183 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:10:06.212 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:15:03.627 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:15:04.173 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:15:04.630 ERROR (MainThread) [homeassistant.components.generic.camera] Error getting new camera image from nexusapi_us1_dropcam_com: Server error '500 Internal Server Error' for url 'https://nexusapi-us1.dropcam.com/get_image?uuid=6e58464b147747eda0a0f37f2a336ca4&width=560&public=nkw9C7fEfk'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
2024-04-11 06:20:04.427 ERROR (MainThread) [homeassistant.components.tplink.coordinator] Error fetching 192.168.1.170 data: Unable to connect to the device: 192.168.1.170:9999: 
2024-04-11 06:20:29.632 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finished result=True>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Leaving task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> does not match the current task <Task pending name="event trigger {'domain': 'automation', 'name': 'Leak detection & notifier', 'home_assistant_start': True, 'variables': {'this': {'entity_id': 'automation.leak_detection_notifier', 'state': 'on', 'attributes': {'id': '1688989839793', 'last_triggered': None, 'mode': 'single', 'current': 0, 'friendly_name': 'Leak detection & notifier'}, 'last_changed': '2024-04-11T09:59:20.591460+00:00', 'last_reported': '2024-04-11T09:59:20.591460+00:00', 'last_updated': '2024-04-11T09:59:20.591460+00:00', 'context': {'id': '01HV69HXRFSEXKDEK0MP09032V', 'parent_id': None, 'user_id': None}}}, 'trigger_data': {'id': '0', 'idx': '0', 'alias': None}}" coro=<AutomationEntity.async_trigger() running at /usr/src/homeassistant/homeassistant/components/automation/__init__.py:657>>.
2024-04-11 06:20:29.641 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff65080760>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:29.645 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finished result=None>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10032' coro=<WebSocketHandler._writer() running at /usr/src/homeassistant/homeassistant/components/websocket_api/http.py:138> wait_for=<Future finished result=None>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:30.039 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finished result=None>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-317' coro=<AsyncioDispatcher.handle_timeout() running at /usr/local/lib/python3.12/site-packages/pysnmp/carrier/asyncio/dispatch.py:62> wait_for=<Future finished result=None>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:30.533 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finished result=None>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-400' coro=<WebSocketMonitor._monitor() running at /usr/local/lib/python3.12/site-packages/pylitterbot/ws_monitor.py:107> wait_for=<Future finished result=None>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:30.701 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finished result=None>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-2025' coro=<UnifiWebsocket.start_websocket.<locals>._websocket_runner() running at /usr/src/homeassistant/homeassistant/components/unifi/hub/websocket.py:80> wait_for=<Future finished result=None>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:30.853 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future finis...ffff637d13a0>>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='debouncer cooldown=10, immediate=False' coro=<HKDevice.async_update() running at /usr/src/homeassistant/homeassistant/components/homekit_controller/connection.py:877> wait_for=<Future finished result=<aiohomekit.h...xffff637d13a0>> cb=[set.remove(), Task.task_wakeup()]> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:31.230 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback Task.task_wakeup(<Future cancelled>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task cancelling name='Task-10869' coro=<RemoteProtocol._async_idle_disconnect() running at /usr/local/lib/python3.12/site-packages/androidtvremote2/remote.py:203> wait_for=<Future cancelled>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:31.233 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff65061ed0>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10894' coro=<RemoteProtocol._async_idle_disconnect() running at /usr/local/lib/python3.12/site-packages/androidtvremote2/remote.py:198>> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:31.312 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff650cbb50>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10895' coro=<Device.try_sending() running at /usr/local/lib/python3.12/site-packages/aiolifx/aiolifx.py:315> cb=[set.discard()]> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:31.347 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff9d722f80>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10896' coro=<Device.try_sending() running at /usr/local/lib/python3.12/site-packages/aiolifx/aiolifx.py:315> cb=[set.discard()]> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:31.354 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff63795660>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10897' coro=<Device.try_sending() running at /usr/local/lib/python3.12/site-packages/aiolifx/aiolifx.py:315> cb=[set.discard()]> while another task <Task cancelling name='Task-10489' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:452> cb=[Task.task_wakeup()]> is being executed.
2024-04-11 06:20:32.199 ERROR (MainThread) [homeassistant] Error doing job: Exception in callback <_asyncio.TaskStepMethWrapper object at 0xffff63801240>()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)

I see mostly the runtime errors repeated right up to the time of the crash.

I’m not great at debugging from logs, but if I were to make a guess it would be that you have a loop in your automation. 2024.4 included some pretty significant improvements in speed which reduced loop times. So when you had a slow dog (pre 2024.4) chasing its tail it would walk around in circles for hours, but now that you have a fast dog chasing its tail (2024.4 and up) it has a heart attack after a few minutes.

The solution isn’t to go back to the slow dog. The solution is to stop telling it to chase its tail.

Share the yaml from automation.leak_detection_notifier

2 Likes

I too suspected it might be that leak detector automation so I have disabled it. It was a blueprint automation that I actually was not even really using. Hopefully that was it! Great call-out in the speed improvements department. Thanks.

HA is running stable now that I disabled that automation. That was definitely the issue that was causing HA to crash. Is there a process for submitting such stability issues to be something that should be identified under System → Repairs?

Hopefully someone else can answer that question. I’m not aware of any methods currently used to detect loops that don’t have interrupts. But I agree if those could be detected and then listed in the repairs section it would be a great feature. Maybe that needs to be a feature request?

Any more thoughts on this? What do you mean by a loop?

I have an automation doing it also

- alias: when outside temp is lower than the aircon setting while cooling
  id: whenoutsidetempislowerthantheairconsettingwhilecooling
  trigger:
    - platform: state
      entity_id: sensor.aarlo_temperature_babymonitor
    - platform: state
      entity_id: sensor.gosford_temp
  condition:
    - condition: state
      entity_id: input_boolean.house_status
      state: 'on'
    - condition: template
      value_template: "{{ states('climate.daikinap20019') == 'cool' }}"
    - condition: template
      value_template: "{{ state_attr('climate.daikinap20019', 'temperature') | float(0) > states('sensor.gosford_temp') | int(0) }}"
    - condition: template
      value_template: "{% if states('sensor.aarlo_temperature_babymonitor') | float(0) >= states('input_number.matthias_max_temp') | float(0) - 3 %}False{%else%}True{% endif %}"
  action:
    - continue_on_error: True
      data:
        message: |-
          It is colder outsider, air con off
        title: "The AirCon"
      service: notify.jurgen
    - service: climate.turn_off
      entity_id: climate.daikinap20019