Częste zawieszenia HA - Rpi3b+

Codziennie praktycznie doświadczam zawieszenie serwera = brak dostepu do serwera - nie umiem znaleźć przyczyny, poniżej wstawiam logi:

2022-01-12 18:30:36 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-01-12 18:30:40 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
2022-01-12 18:30:41 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=26 from 2022-01-08 18:36:29.697638)
2022-01-12 18:30:52 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.205:80 (Failed to connect to 192.168.1.205:80 within 3s: ())
2022-01-12 18:30:52 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Led-lazienka' for blebox integration not ready yet: Failed to connect to 192.168.1.205:80 within 3s: (); Retrying in background
2022-01-12 18:30:52 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.54:80 (Failed to connect to 192.168.1.54:80 within 3s: ())
2022-01-12 18:30:52 WARNING (MainThread) [homeassistant.config_entries] Config entry 'roleta-kuchnia' for blebox integration not ready yet: Failed to connect to 192.168.1.54:80 within 3s: (); Retrying in background
2022-01-12 18:30:52 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.165:80 (Failed to connect to 192.168.1.165:80 within 3s: ())
2022-01-12 18:30:52 WARNING (MainThread) [homeassistant.config_entries] Config entry 'salon-lewa' for blebox integration not ready yet: Failed to connect to 192.168.1.165:80 within 3s: (); Retrying in background
2022-01-12 18:30:52 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.143:80 (Failed to connect to 192.168.1.143:80 within 3s: ())
2022-01-12 18:30:52 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Salon-prawa' for blebox integration not ready yet: Failed to connect to 192.168.1.143:80 within 3s: (); Retrying in background
2022-01-12 18:30:56 WARNING (MainThread) [homeassistant.config_entries] Config entry 'pomiar_energii_pompa' for shelly integration not ready yet: Cannot connect to host 192.168.1.206:80 ssl:default [Connect call failed ('192.168.1.206', 80)]; Retrying in background
2022-01-12 18:30:56 WARNING (MainThread) [homeassistant.config_entries] Config entry 'role_syp' for shelly integration not ready yet: Cannot connect to host 192.168.1.207:80 ssl:default [Connect call failed ('192.168.1.207', 80)]; Retrying in background
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_energy')|float + states('sensor.faza_l2_energy')|float + states('sensor.faza_l3_energy')|float)))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:30:58 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unavailable' when rendering template '{{ (((states('sensor.faza_l1_power')|float + states('sensor.faza_l2_power')|float + states('sensor.faza_l3_power')|float)/1000))|round(3) }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.1
2022-01-12 18:31:02 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.165:80 (Failed to connect to 192.168.1.165:80 within 3s: ())
2022-01-12 18:31:02 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.143:80 (Failed to connect to 192.168.1.143:80 within 3s: ())
2022-01-12 18:31:02 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.54:80 (Failed to connect to 192.168.1.54:80 within 3s: ())
2022-01-12 18:31:02 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.205:80 (Failed to connect to 192.168.1.205:80 within 3s: ())
2022-01-12 18:31:31 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.207 initialize error - TimeoutError()
2022-01-12 18:31:31 ERROR (MainThread) [custom_components.hacs] Timeout of 20 reached while waiting for https://api.github.com/repos/hacs/default/contents/integration
2022-01-12 18:31:31 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547474709904] Disconnected: Did not receive auth message within 10 seconds
2022-01-12 18:31:31 ERROR (MainThread) [custom_components.hacs] Timeout of 20 reached while waiting for https://api.github.com/repos/hacs/default/contents/plugin
2022-01-12 18:31:34 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.165:80 (Failed to connect to 192.168.1.165:80 within 3s: ())
2022-01-12 18:31:34 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.143:80 (Failed to connect to 192.168.1.143:80 within 3s: ())
2022-01-12 18:31:34 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.54:80 (Failed to connect to 192.168.1.54:80 within 3s: ())
2022-01-12 18:31:34 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.205:80 (Failed to connect to 192.168.1.205:80 within 3s: ())
2022-01-12 18:31:34 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:31:49 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:31:57 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.165:80 (Failed to connect to 192.168.1.165:80 within 3s: ())
2022-01-12 18:31:57 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.143:80 (Failed to connect to 192.168.1.143:80 within 3s: ())
2022-01-12 18:31:57 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.54:80 (Failed to connect to 192.168.1.54:80 within 3s: ())
2022-01-12 18:31:57 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.205:80 (Failed to connect to 192.168.1.205:80 within 3s: ())
2022-01-12 18:32:04 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:32:19 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:32:34 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:32:40 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.165:80 (Failed to connect to 192.168.1.165:80 within 3s: ())
2022-01-12 18:32:40 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.143:80 (Failed to connect to 192.168.1.143:80 within 3s: ())
2022-01-12 18:32:40 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.54:80 (Failed to connect to 192.168.1.54:80 within 3s: ())
2022-01-12 18:32:40 ERROR (MainThread) [homeassistant.components.blebox] Identify failed at 192.168.1.205:80 (Failed to connect to 192.168.1.205:80 within 3s: ())
2022-01-12 18:32:49 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:33:04 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:33:19 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:33:34 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:33:49 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))
2022-01-12 18:33:56 WARNING (MainThread) [aioshelly.block_device] device 192.168.1.206 initialize error - ClientConnectorError(ConnectionKey(host='192.168.1.206', port=80, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=7868857101528445544), OSError(113, "Connect call failed ('192.168.1.206', 80)"))

dodam że o 18:30 zrobiłem restart serwera, no nie odpowiadał

W tych logach błędami sypie m.in. integracja template, wygląda na to, że zrobiłeś update HA ignorując breaking changes (nie dostosowałeś tych template zapewne do obecnych wymagań).
Oprócz tego masz problemy z połączeniem do Bleboxa .
Widać tam też, że robiłeś “ruskie restarty”, czyli odpięcie zasilania od działającego systemu - baza danych była naprawiana, po takim zdarzeniu warto wykonać “zdrowy” restart hosta (z menu supervisora) by mogły normalnie uruchomić się wszystkie komponenty i integracje które mogły mieć z tym problem.
Wszystkie te problemy trzeba oczywiście rozwiązać, jakkolwiek moim zdaniem żadne z nich nie są krytyczne dla działania HA, ale niektóre mogą blokować restart HA (proponuję zakomentować wszystko w configuration yaml o co rzuca się walidartor).

Natomiast problem, który opisujesz (zawieszanie się z brakiem dostępu włącznie) jest objawem dość charakterystycznym dla umierającej karty TF (micro-SD) na platformach RPi/Odroid/Tinkerboard.
Jeśli istotnie nie masz instalacji na ssd tylko na karcie, to zrób świeży backup zgraj go na komputer, weź nową kartę, zainstaluj na niej HAOS i na etapie onboardingu przywróć swój świeży backup (nie pozbywając się póki co zawartości starej karty TF).

Workflow jest analogiczny do roboty z przenosinami na nowy nośnik dla instalacji bare-metal na amd64 (x86-64):

Jeśli masz system na ssd to jak wygląda stan SMART?
Istnieje taki niestadardowy addon, którym można to sprawdzić

okej, poszukam zmian jakie muszę zrobić w template.

jeszcze mi dzisiaj doszedł taki problem:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 334, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"

Ten błąd też (moim zdaniem) nie wygląda na krytyczny i prawdopodobnie pochodzi z jakiejś integracji, no ale szklanej kuli nie mam (a nawet jakbym miał, to ilość integracji, które mogą korzystać z biblioteki aiohttp jest naprawdę spora).