My HA becomes completely unavailable in the night, please help to debug

My HA is installed on a Raspberry PI3, so no VMs or docker containers. Home Assistant 2022.11.4, Supervisor 2022.11.2, Operating System 9.3, Frontend 20221108.0 - latest

Since yesterday I noticed some weirdness going on, I’ve made another thread about it in the context of a lamp automation triggered unwanted: Lamps have been turning on and off in the night, please help to troubleshoot - #6 by makai

Today it happened again in the night. What I can see in the logs is a whole lot of entities, probably all really, becoming unavailable and then becoming available again. Some of them stay in the unavailable state (like some room thermostates) which I can only get back by completely restarting HA. I’m not even sure what logs to give you to debug
here’s how the hardware looks like:

Settings > System > Logs

would be A good start.

But have a look at long term “history” data (E.g. the last month) to see if it is happening at regular times?

My first guess is that your “Supervisor” is crashing for some reason. so you need to find the time/s it is happening & have a look at what is logged under “supervisor”
You may need to alter your log settings

So I looked in the logs and can’t find much that immidiately jumps out as an error

when I look into the logbook from midnight to this morning, here are some interesting events:
image
image
image

so at 02:04 a light bulb became unavailable, then at 05:17 some update entites became unavailable and came back on at 05:22 and at 08:21 almost all my entities became unavailable (it’s a big log) and came back 20 seconds later. Not all though, my room thermostates still didn’t report and data and I had to restart HA to get them back.

Here are some System->Logs. This was after I restarted HA… is there any way to let HA also load older log entries?


Here’s what seems relevant from the log file at the 05:17 timestamp:

2022-12-18 05:17:55.022 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/info request
2022-12-18 05:17:55.110 DEBUG (Thread-1049) [custom_components.dahua] Keep alive
2022-12-18 05:17:55.128 DEBUG (Thread-10) [custom_components.dahua] Event data 192.168.1.108: 'b' \x00\x00\x00DHIPUn\xff\x7f\x17\x04\x00\x00G\x00\x00\x00\x00\x00\x00\x00G\x00\x00\x00\x00\x00\x00\x00{"id":1047,"params":{"timeout":55},"result":true,"session":2147446357}\n''
2022-12-18 05:17:55.413 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for core_configurator: 
2022-12-18 05:17:55.416 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_samba/info request
2022-12-18 05:17:55.418 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for core_samba: 
2022-12-18 05:17:55.420 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_zwave_js/info request
2022-12-18 05:17:55.422 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for core_zwave_js: 
2022-12-18 05:17:55.424 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_nodered/info request
2022-12-18 05:17:55.426 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for a0d7b954_nodered: 
2022-12-18 05:17:55.429 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_ssh/info request
2022-12-18 05:17:55.432 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for a0d7b954_ssh: 
2022-12-18 05:17:55.434 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_grafana/info request
2022-12-18 05:17:55.436 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for a0d7b954_grafana: 
2022-12-18 05:17:55.437 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_logviewer/info request
2022-12-18 05:17:55.439 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for a0d7b954_logviewer: 
2022-12-18 05:17:55.441 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_influxdb/info request
2022-12-18 05:17:55.442 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for a0d7b954_influxdb: 
2022-12-18 05:17:55.444 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/cebe7a76_hassio_google_drive_backup/info request
2022-12-18 05:17:55.445 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for cebe7a76_hassio_google_drive_backup: 
2022-12-18 05:17:55.447 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/info request
2022-12-18 05:17:55.448 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch info for core_mosquitto: 
2022-12-18 05:17:55.451 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /info request
2022-12-18 05:17:55.453 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /host/info request
2022-12-18 05:17:55.459 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /store request
2022-12-18 05:17:55.461 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/info request
2022-12-18 05:17:55.463 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/info request
2022-12-18 05:17:55.464 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /os/info request
2022-12-18 05:17:55.467 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [1450301400] Disconnected: Received non-Text message.
2022-12-18 05:17:55.750 WARNING (influxdb) [homeassistant.components.influxdb] Catching up, dropped 12 old events.
2022-12-18 05:17:57.168 DEBUG (MainThread) [zigpy_znp.api] Sending request: AF.DataRequestExt.Req(DstAddrModeAddress=AddrModeAddress(mode=<AddrMode.NWK: 2>, address=0xB6D3), DstEndpoint=1, DstPanId=0x0000, SrcEndpoint=1, ClusterId=8, TSN=65, Options=<TransmitOptions.SUPPRESS_ROUTE_DISC_NETWORK|ACK_REQUEST: 48>, Radius=0, Data=b'\x18\x41\x0B\x0A\x00')
2022-12-18 05:17:57.305 DEBUG (MainThread) [zigpy_znp.uart] Opened /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0 serial port
2022-12-18 05:17:57.822 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-18 05:17:57.901 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-18 05:17:57.984 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-18 05:17:58.026 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-18 05:17:58.028 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-18 05:17:59.154 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 1037, in request_callback_rsp
    await self.request(request, timeout=timeout, **response_params)
  File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 991, in request
    self._uart.send(frame)
AttributeError: 'NoneType' object has no attribute 'send'

Do you by any chance are using a FritzBox and have nightly power save activated?

Nope, using Ubiquiti router and managed switch

And how is that RPI3 connected to the LAN, through cable or through WiFi?

LAN cable directly to the managed switch

So another day, another eventful night for HA it seems:
image
image

Here’s what I can see in the logs:

2022-12-19 05:10:18.589 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for light.innr_lampew_arbeitszimmer (<class 'homeassistant.components.zha.light.Light'>) took 0.806 seconds. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22
2022-12-19 05:10:34.647 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:10:36.553 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:10:44.795 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://192.168.1.108:80/cgi-bin/configManager.cgi?action=getConfig&name=Lighting[0][0]
2022-12-19 05:10:44.808 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://192.168.1.108:80/cgi-bin/configManager.cgi?action=getConfig&name=DisableLinkage
2022-12-19 05:10:58.163 WARNING (MainThread) [custom_components.dahua] Failed to sync device state for 192.168.1.108. See README to enable debug logs to get full exception
2022-12-19 05:10:58.588 ERROR (MainThread) [custom_components.dahua] Error fetching dahua data: 
2022-12-19 05:11:12.862 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:11:13.373 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:11:13.376 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:11:14.527 ERROR (MainThread) [homeassistant.components.ipp.coordinator] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
2022-12-19 05:11:17.387 WARNING (MainThread) [homeassistant.components.automation.temperatur_warnung_wenn_15_5deg] Temperatur Warnung wenn 16°: Already running
2022-12-19 05:11:19.064 ERROR (MainThread) [custom_components.localtuya.common] [423...456] Connect to 192.168.1.51 failed
Traceback (most recent call last):
File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
self._interface = await pytuya.connect(
File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
_, protocol = await loop.create_connection(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
return await fut
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.51', 6668)
2022-12-19 05:11:26.641 WARNING (MainThread) [homeassistant.components.automation.temperatur_warnung_wenn_15_5deg] Temperatur Warnung wenn 16°: Already running
2022-12-19 05:11:26.715 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Error sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1: ClientConnectorError(ConnectionKey(host='mobile-apps.home-assistant.io', port=443, is_ssl=True, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=1981006311), gaierror(-3, 'Try again'))
2022-12-19 05:12:09.966 WARNING (Thread-8) [pychromecast.socket_client] [SONY XR-65A83J(192.168.1.113):8009] Heartbeat timeout, resetting connection
2022-12-19 05:12:17.614 INFO (Thread-8) [pychromecast.controllers] Receiver:channel_disconnected
2022-12-19 05:12:24.481 INFO (Thread-8) [pychromecast.socket_client] [SONY XR-65A83J(192.168.1.113):8009] Connection reestablished!
2022-12-19 05:12:27.454 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://192.168.1.108:80/cgi-bin/configManager.cgi?action=getConfig&name=MotionDetect
2022-12-19 05:12:31.215 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://192.168.1.108:80/cgi-bin/configManager.cgi?action=getConfig&name=Lighting[0][0]
2022-12-19 05:12:35.237 WARNING (MainThread) [custom_components.dahua] TimeoutError fetching information from http://192.168.1.108:80/cgi-bin/configManager.cgi?action=getConfig&name=DisableLinkage
2022-12-19 05:12:43.083 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:12:44.065 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:12:44.068 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:12:44.071 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:12:44.074 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-19 05:12:44.077 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPush/android/v1
2022-12-19 05:12:55.109 WARNING (MainThread) [custom_components.dahua] Failed to sync device state for 192.168.1.108. See README to enable debug logs to get full exception
2022-12-19 05:12:55.383 ERROR (MainThread) [zigpy_znp.zigbee.application] Watchdog check failed
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 998, in request
response = await response_future
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/zigbee/application.py", line 650, in _watchdog_loop
await self._znp.request(c.SYS.Ping.Req())
File "/usr/local/lib/python3.10/site-packages/zigpy_znp/api.py", line 994, in request
async with async_timeout.timeout(
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 129, in __aexit__
self._do_exit(exc_type)
File "/usr/local/lib/python3.10/site-packages/async_timeout/__init__.py", line 212, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
2022-12-19 05:13:00.150 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/info request
2022-12-19 05:13:00.483 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /os/info request
2022-12-19 05:13:00.486 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /info request
2022-12-19 05:13:00.489 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /store request
2022-12-19 05:13:00.492 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /host/info request
2022-12-19 05:13:00.495 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/info request
2022-12-19 05:13:01.575 WARNING (MainThread) [homeassistant.components.hassio] Can't read Supervisor data: 
2022-12-19 05:13:13.142 INFO (MainThread) [zigpy.device] [0x0000] Requesting 'Node Descriptor'
2022-12-19 05:13:13.237 INFO (MainThread) [zigpy.device] [0x0000] Got Node Descriptor: NodeDescriptor(logical_type=<LogicalType.Coordinator: 0>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice|AlternatePanCoordinator: 143>, manufacturer_code=0, maximum_buffer_size=80, maximum_incoming_transfer_size=160, server_mask=11265, maximum_outgoing_transfer_size=160, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=True, *is_coordinator=True, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=False, *is_security_capable=False)
2022-12-19 05:13:13.239 INFO (MainThread) [zigpy.device] [0x0000] Discovering endpoints
2022-12-19 05:13:13.257 INFO (MainThread) [zigpy.device] [0x0000] Discovered endpoints: [2, 1]
2022-12-19 05:13:13.257 INFO (MainThread) [zigpy.device] [0x0000] Initializing endpoints [<Endpoint id=2 in=[] out=[] status=<Status.NEW: 0>>, <Endpoint id=1 in=[] out=[] status=<Status.NEW: 0>>]
2022-12-19 05:13:13.258 INFO (MainThread) [zigpy.endpoint] [0x0000:2] Discovering endpoint information
2022-12-19 05:13:13.278 INFO (MainThread) [zigpy.endpoint] [0x0000:2] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=2, profile=49246, device_type=2080, device_version=0, input_clusters=[0], output_clusters=[])
2022-12-19 05:13:13.279 INFO (MainThread) [zigpy.endpoint] [0x0000:1] Discovering endpoint information
2022-12-19 05:13:13.304 INFO (MainThread) [zigpy.endpoint] [0x0000:1] Discovered endpoint information: SizePrefixedSimpleDescriptor(endpoint=1, profile=260, device_type=1024, device_version=0, input_clusters=[0, 6, 10, 25, 1281], output_clusters=[1, 32, 1280, 1282])
2022-12-19 05:13:13.306 INFO (MainThread) [zigpy.device] [0x0000] Already have model and manufacturer info
2022-12-19 05:13:13.306 INFO (MainThread) [zigpy.device] [0x0000] Discovered basic device information for <ZNPCoordinator model='CC1352/CC2652, Z-Stack 3.30+ (build 20220219)' manuf='Texas Instruments' nwk=0x0000 ieee=00:12:4b:00:26:d1:66:39 is_initialized=True>
2022-12-19 05:13:17.657 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_logviewer/stats request
2022-12-19 05:13:18.512 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_logviewer:
2022-12-19 05:13:18.517 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_influxdb/stats request
2022-12-19 05:13:18.521 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_influxdb:
2022-12-19 05:13:18.525 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/cebe7a76_hassio_google_drive_backup/stats request
2022-12-19 05:13:18.528 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for cebe7a76_hassio_google_drive_backup:
2022-12-19 05:13:18.533 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2022-12-19 05:13:18.536 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_mosquitto:
2022-12-19 05:13:18.538 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/stats request
2022-12-19 05:13:18.541 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_configurator:
2022-12-19 05:13:18.544 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_zwave_js/stats request
2022-12-19 05:13:18.546 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_zwave_js:
2022-12-19 05:13:18.550 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_ssh/stats request
2022-12-19 05:13:18.552 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_ssh:
2022-12-19 05:13:18.554 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_grafana/stats request
2022-12-19 05:13:18.557 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_grafana:
2022-12-19 05:13:18.560 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_nodered/stats request
2022-12-19 05:13:18.562 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_nodered:
2022-12-19 05:13:18.565 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_samba/stats request
2022-12-19 05:13:18.568 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_samba: 

So essentially something seems to happen at 05 in the night

this entity_id should be all lowercase “Light” (i think).

You should turn off all custom components in your processes of debugging.

So my HA errors continue, since 3 days ago ZWaveJS kept getting hung up. Yesterday again my HA running on RPi showed 94% CPU usage on the RPi. I hard rebooted it by turning off power, it seemed to work again. Now from the logs I see that apparently HA rebotten at 5am in the night, as the log file got split up

2022-12-28 04:49:30.072 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/info request
2022-12-28 04:49:31.810 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /info request
2022-12-28 04:49:31.819 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x76E7](lumi.sensor_magnet.aq2): Device seen - marking the device available and resetting counter
2022-12-28 04:49:31.820 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x76E7](lumi.sensor_magnet.aq2): Update device availability -  device available: True - new availability: True - changed: False
2022-12-28 04:49:31.824 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-28 04:49:31.868 WARNING (MainThread) [homeassistant.components.switch] Updating adaptive_lighting switch took longer than the scheduled update interval 0:00:10
2022-12-28 04:49:31.873 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /os/info request
2022-12-28 04:49:31.880 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/info request
2022-12-28 04:49:31.912 ERROR (MainThread) [homeassistant.components.hassio] Error fetching hassio data: Error on Supervisor API: 
2022-12-28 04:49:31.951 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=update.home_assistant_supervisor_update, old_state=<state update.home_assistant_supervisor_update=off; auto_update=True, installed_version=2022.11.2, in_progress=False, latest_version=2022.11.2, release_summary=None, release_url=https://github.com/home-assistant/supervisor/releases/tag/2022.11.2, skipped_version=None, title=Home Assistant Supervisor, entity_picture=https://brands.home-assistant.io/hassio/icon.png, friendly_name=Home Assistant Supervisor Update, supported_features=UpdateEntityFeature.INSTALL @ 2022-12-27T22:44:04.803159+01:00>, new_state=<state update.home_assistant_supervisor_update=unavailable; entity_picture=https://brands.home-assistant.io/hassio/icon.png, friendly_name=Home Assistant Supervisor Update, supported_features=UpdateEntityFeature.INSTALL @ 2022-12-28T04:49:31.950909+01:00>>
2022-12-28 04:49:31.964 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=update.home_assistant_core_update, old_state=<state update.home_assistant_core_update=on; auto_update=False, installed_version=2022.11.4, in_progress=False, latest_version=2022.12.8, release_summary=None, release_url=https://www.home-assistant.io/latest-release-notes/, skipped_version=None, title=Home Assistant Core, entity_picture=https://brands.home-assistant.io/homeassistant/icon.png, friendly_name=Home Assistant Core Update, supported_features=11 @ 2022-12-27T22:44:04.827803+01:00>, new_state=<state update.home_assistant_core_update=unavailable; entity_picture=https://brands.home-assistant.io/homeassistant/icon.png, friendly_name=Home Assistant Core Update, supported_features=11 @ 2022-12-28T04:49:31.963957+01:00>>
2022-12-28 04:49:31.966 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=update.file_editor_update, old_state=<state update.file_editor_update=off; auto_update=False, installed_version=5.4.2, in_progress=False, latest_version=5.4.2, release_summary=# Changelog

## 5.4.2

- Bugfix: Fix page load with special characters in states

## 5.4.1

2022-12-28 05:15:00.331 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFB46](TRADFRI control outlet): Device seen - marking the device available and resetting counter
2022-12-28 05:15:00.331 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0xFB46](TRADFRI control outlet): Update device availability -  device available: True - new availability: True - changed: False
2022-12-28 05:15:00.686 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_logviewer/stats request
2022-12-28 05:15:01.351 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_logviewer: 
2022-12-28 05:15:01.357 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_influxdb/stats request
2022-12-28 05:15:01.363 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_influxdb: 
2022-12-28 05:15:01.369 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/cebe7a76_hassio_google_drive_backup/stats request
2022-12-28 05:15:01.373 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for cebe7a76_hassio_google_drive_backup: 
2022-12-28 05:15:01.376 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_ssh/stats request
2022-12-28 05:15:01.379 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_ssh: 
2022-12-28 05:15:01.384 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_grafana/stats request
2022-12-28 05:15:01.386 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_grafana: 
2022-12-28 05:15:01.393 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_zwave_js/stats request
2022-12-28 05:15:01.397 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_zwave_js: 
2022-12-28 05:15:01.402 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/a0d7b954_nodered/stats request
2022-12-28 05:15:01.405 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for a0d7b954_nodered: 
2022-12-28 05:15:01.410 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_configurator/stats request
2022-12-28 05:15:01.414 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_configurator: 
2022-12-28 05:15:01.418 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_samba/stats request
2022-12-28 05:15:01.430 WARNING (MainThread) [homeassistant.components.hassio] Could not fetch stats for core_samba: 
2022-12-28 05:15:01.435 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /addons/core_mosquitto/stats request
2022-12-28 05:19:17.760 ERROR (MainThread) [custom_components.localtuya.common] [423...cae] Connect to 192.168.1.45 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.45', 6668)
2022-12-28 05:19:17.892 ERROR (MainThread) [custom_components.localtuya.common] [423...801] Connect to 192.168.1.48 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.48', 6668)
2022-12-28 05:19:17.898 ERROR (MainThread) [custom_components.localtuya.common] [423...616] Connect to 192.168.1.50 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.50', 6668)
2022-12-28 05:19:17.903 ERROR (MainThread) [custom_components.localtuya.common] [423...372] Connect to 192.168.1.46 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.46', 6668)
2022-12-28 05:19:17.909 ERROR (MainThread) [custom_components.localtuya.common] [423...456] Connect to 192.168.1.51 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.51', 6668)
2022-12-28 05:19:17.914 ERROR (MainThread) [custom_components.localtuya.common] [423...c1f] Connect to 192.168.1.49 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.49', 6668)
2022-12-28 05:19:17.920 ERROR (MainThread) [custom_components.localtuya.common] [423...cde] Connect to 192.168.1.47 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.47', 6668)
2022-12-28 05:19:17.925 ERROR (MainThread) [custom_components.localtuya.common] [423...f76] Connect to 192.168.1.53 failed
Traceback (most recent call last):
  File "/config/custom_components/localtuya/common.py", line 186, in _make_connection
    self._interface = await pytuya.connect(
  File "/config/custom_components/localtuya/pytuya/__init__.py", line 704, in connect
    _, protocol = await loop.create_connection(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1064, in create_connection
    raise exceptions[0]
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1049, in create_connection
    sock = await self._connect_sock(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 960, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionResetError: [Errno 104] Connect call failed ('192.168.1.53', 6668)
2022-12-28 05:29:40.019 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /host/info request
2022-12-28 05:30:45.104 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/info request
2022-12-28 05:30:45.106 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/info request
2022-12-28 05:30:45.110 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /os/info request
2022-12-28 05:30:45.112 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /store request
2022-12-28 05:34:03.729 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 676, in ping
    await self._send_frame(message, WSMsgType.PING)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 653, in _send_frame
    self._write(header + message)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/http_websocket.py", line 663, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2022-12-28 05:35:42.649 WARNING (SyncWorker_0) [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
2022-12-28 05:35:42.663 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration adaptive_lighting 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
2022-12-28 05:35:42.685 WARNING (SyncWorker_0) [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
2022-12-28 05:35:42.693 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
2022-12-28 05:35:42.701 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dahua 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
2022-12-28 05:35:42.708 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered 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
2022-12-28 05:35:42.718 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration eufy_vacuum 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
2022-12-28 05:35:42.732 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration thermal_comfort 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

What time is sunrise? Because you have something happening at about 5am that is recurring. You may need to start uninstalling thing to find it.
But it looks like you aren’t running the latest version of HAss try updating, first…