Home Assistant reboot regularly

Hi,
I have my HA installation to restart regularly and have some difficulties to start well with all plugins running.

The log :

2023-11-20 15:55:08.213 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-20 15:55:08.372 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-20 15:55:08.381 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-20 15:55:08.386 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-20 15:55:24.061 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2023-11-20 15:55:33.785 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2023-11-20 15:56:39.863 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=344 from 2023-11-20 14:12:55.048483)
2023-11-20 15:57:02.497 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2023-11-20 15:57:02.498 WARNING (MainThread) [homeassistant.setup] Setup of bluetooth is taking over 10 seconds.
2023-11-20 15:57:07.400 WARNING (MainThread) [bluetooth_auto_recovery.recover] Bluetooth adapter hci0 [B8:27:EB:0D:FC:4D] successfully turned back ON
2023-11-20 15:57:46.253 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: hassio
2023-11-20 15:58:16.510 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2023-11-20 15:58:16.511 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2023-11-20 15:58:16.512 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2023-11-20 15:58:16.512 WARNING (MainThread) [homeassistant.setup] Setup of input_text is taking over 10 seconds.
2023-11-20 15:58:16.513 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2023-11-20 15:58:16.514 WARNING (MainThread) [homeassistant.setup] Setup of input_boolean is taking over 10 seconds.
2023-11-20 15:58:16.514 WARNING (MainThread) [homeassistant.setup] Setup of timer is taking over 10 seconds.
2023-11-20 15:58:16.515 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2023-11-20 15:58:16.518 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2023-11-20 15:58:16.519 WARNING (MainThread) [homeassistant.setup] Setup of media_source is taking over 10 seconds.
2023-11-20 15:58:16.520 WARNING (MainThread) [homeassistant.setup] Setup of application_credentials is taking over 10 seconds.
2023-11-20 15:58:16.520 WARNING (MainThread) [homeassistant.setup] Setup of system_health is taking over 10 seconds.
2023-11-20 15:58:16.521 WARNING (MainThread) [homeassistant.setup] Setup of logbook is taking over 10 seconds.
2023-11-20 15:58:26.010 WARNING (MainThread) [homeassistant.setup] Setup of assist_pipeline is taking over 10 seconds.
2023-11-20 15:59:26.599 WARNING (MainThread) [homeassistant.components.scene] Setup of scene platform homeassistant is taking over 10 seconds.
2023-11-20 15:59:26.812 WARNING (MainThread) [hass_nabucasa.iot] Connection closed: Cannot write to closing transport
2023-11-20 15:59:34.088 WARNING (MainThread) [homeassistant.helpers.entity] Updating state for weather.albert (<class ‘homeassistant.components.meteo_france.weather.MeteoFranceWeather’>) took 0.802 seconds. Please create a bug report at Issues · home-assistant/core · GitHub
2023-11-20 16:00:48.085 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.mi_control_hub_light is taking over 10 seconds
2023-11-20 16:00:48.097 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.mi_control_hub_light fails
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 193, in send
data, addr = s.recvfrom(4096)
^^^^^^^^^^^^^^^^
TimeoutError: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py”, line 1029, in async_update
state_dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/light.py”, line 39, in rgb_status
state_int = self._gateway.send(“get_rgb”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 233, in send
return self.send(
^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 74, in send_handshake
raise DeviceException(“Unable to discover the device %s” % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.1.44
2023-11-20 16:00:49.997 WARNING (MainThread) [homeassistant.helpers.entity] Update of alarm_control_panel.mi_control_hub_alarm is taking over 10 seconds
2023-11-20 16:00:49.998 ERROR (MainThread) [homeassistant.components.xiaomi_miio.alarm_control_panel] Got exception while fetching the state: Unable to discover the device 192.168.1.44
2023-11-20 16:00:52.391 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:00:52.429 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:01:08.058 ERROR (MainThread) [homeassistant.components.xiaomi_miio.sensor] Got exception while fetching the gateway illuminance state: Got an exception while getting gateway illumination
2023-11-20 16:01:12.387 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:01:13.845 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.mi_control_hub_light fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py”, line 1029, in async_update
state_dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/light.py”, line 39, in rgb_status
state_int = self._gateway.send(“get_rgb”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 74, in send_handshake
raise DeviceException(“Unable to discover the device %s” % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.1.44
2023-11-20 16:01:20.995 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:01:33.386 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:01:40.428 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:01:43.099 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.mi_control_hub_light fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py”, line 1029, in async_update
state_dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/light.py”, line 39, in rgb_status
state_int = self._gateway.send(“get_rgb”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 74, in send_handshake
raise DeviceException(“Unable to discover the device %s” % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.1.44
2023-11-20 16:01:53.387 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:01:55.418 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:02:08.094 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.mi_control_hub_light fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py”, line 1029, in async_update
state_dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/light.py”, line 39, in rgb_status
state_int = self._gateway.send(“get_rgb”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 65, in send_handshake
m = MiIOProtocol.discover(self.ip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 116, in discover
s.sendto(helobytes, (addr, 54321))
OSError: [Errno 101] Network unreachable
2023-11-20 16:02:08.380 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:02:08.542 ERROR (MainThread) [homeassistant.helpers.entity] Update for alarm_control_panel.mi_control_hub_alarm fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/alarm_control_panel.py”, line 94, in async_update
state = await self.hass.async_add_executor_job(self._gateway.alarm.status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/alarm.py”, line 19, in status
return self._gateway.send(“get_arming”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 65, in send_handshake
m = MiIOProtocol.discover(self.ip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 116, in discover
s.sendto(helobytes, (addr, 54321))
OSError: [Errno 101] Network unreachable
2023-11-20 16:02:20.924 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:02:23.381 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:02:29.927 ERROR (MainThread) [async_upnp_client.ssdp] Received error: [Errno 101] Network unreachable, transport: <_SelectorDatagramTransport fd=13 read=polling write=<idle, bufsize=0>>, socket: <asyncio.TransportSocket fd=13, family=2, type=2, proto=0, laddr=(‘0.0.0.0’, 57614)>
2023-11-20 16:02:35.419 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘neutral_0’, ‘load_power’] on model ZNCZ02LM
2023-11-20 16:02:38.096 ERROR (MainThread) [homeassistant.helpers.entity] Update for light.mi_control_hub_light fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/light.py”, line 1029, in async_update
state_dict = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/light.py”, line 39, in rgb_status
state_int = self._gateway.send(“get_rgb”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 65, in send_handshake
m = MiIOProtocol.discover(self.ip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 116, in discover
s.sendto(helobytes, (addr, 54321))
OSError: [Errno 101] Network unreachable
2023-11-20 16:02:38.380 ERROR (MainThread) [homeassistant.components.xiaomi_miio] Got exception while fetching the state: Got an exception while fetching properties [‘temperature’, ‘humidity’] on model WSDCGQ01LM
2023-11-20 16:02:38.543 ERROR (MainThread) [homeassistant.helpers.entity] Update for alarm_control_panel.mi_control_hub_alarm fails
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 696, in async_update_ha_state
await self.async_device_update()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 957, in async_device_update
await self.async_update()
File “/usr/src/homeassistant/homeassistant/components/xiaomi_miio/alarm_control_panel.py”, line 94, in async_update
state = await self.hass.async_add_executor_job(self._gateway.alarm.status)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/gateway/alarm.py”, line 19, in status
return self._gateway.send(“get_arming”).pop()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/device.py”, line 107, in send
return self._protocol.send(
^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 161, in send
self.send_handshake()
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 65, in send_handshake
m = MiIOProtocol.discover(self.ip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/miio/miioprotocol.py”, line 116, in discover
s.sendto(helobytes, (addr, 54321))
OSError: [Errno 101] Network unreachable
2023-11-20 16:02:49.960 WARNING (MainThread) [hass_nabucasa.iot] Connection closed: Cannot write to closing transport
2023-11-20 16:03:59.380 WARNING (MainThread) [homeassistant.bootstrap] Setup timed out for stage 2 - moving forward
2023-11-20 16:04:24.264 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_rain (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to Link to Developer tools: statistics – My Home Assistant to fix this
2023-11-20 16:04:24.265 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_snow (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to Link to Developer tools: statistics – My Home Assistant to fix this
2023-11-20 16:04:24.266 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_boulot_boulot_rain (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to Link to Developer tools: statistics – My Home Assistant to fix this
2023-11-20 16:04:24.267 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_boulot_boulot_snow (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to Link to Developer tools: statistics – My Home Assistant to fix this

My installation :

RPI3

  • Core2023.11.2
  • Supervisor2023.11.3
  • Operating System11.1
  • Interface utilisateur20231030.2

Thanks.

I might not be able assist you, but some questions that might help others to help you…

Why are you regularly restarting HA as it should not be needed?!
What have you done personally to trouble shoot the issue at hand, for instance followed the recommendation to turn off any or all of the custom components?
As you are running HA on a RPi3, are you using an SD-card or not?
When in time did the issue arise, can you see any pattern related to this point in time?

I restart one time a week HA, not necessary, I think it’s better to do that.
I uninstalled some components (Xiaomi map card).
I installed HA on Rpi3 on SD Card.

What makes you think that?

I don’t see something in log. Log are reset every reboot so I haven’t history.

After a couple of months with this issue, a solution was found on another topic.
Solution is to upgrade to a new RPI (RPI3 to RPI5) to have more ram space.
Solve the issue.