Input numbers and lots of other components and integrations stopped working


I have not updated anything. I might have restarted Home Assistant to try and solve another problem.
I’ve now lost input numbers and I’ve got this error about my configuration (which I haven’t touched!!)

Core version 2024.1.2
HA OS version 11.4


Logger: homeassistant.setup
Source: setup.py:221
First occurred: 7:36:40 AM (4 occurrences)
Last logged: 7:36:49 AM

Setup failed for 'device_tracker': (DependencyError(...), 'Could not setup dependencies: zone')
Setup failed for 'ios': (DependencyError(...), 'Could not setup dependencies: device_tracker')
Setup failed for 'mobile_app': (DependencyError(...), 'Could not setup dependencies: tag')
Setup failed for 'default_config': (DependencyError(...), 'Could not setup dependencies: counter, input_boolean, input_button, input_datetime, input_number, input_select, mobile_app, scene, schedule, tag, zone')

Logger: homeassistant.setup
Source: setup.py:195
First occurred: 7:36:40 AM (4 occurrences)
Last logged: 7:36:49 AM

Unable to set up dependencies of 'device_tracker'. Setup failed for dependencies: zone
Unable to set up dependencies of 'ios'. Setup failed for dependencies: device_tracker
Unable to set up dependencies of 'mobile_app'. Setup failed for dependencies: tag
Unable to set up dependencies of 'default_config'. Setup failed for dependencies: counter, input_boolean, input_button, input_datetime, input_number, input_select, mobile_app, scene, schedule, tag, zone


it says invalid config.

if you go to dev tools-> check configuration
what does it say?

and if it points to a file and location in the file, please post that section of the file here.

Did you buy a new phone?

No, but I just updated my iPhone iOS

Check configuration says it’s all good

I saw a similar topic this week with a new phone, but i’m not on a computer right now, so difficult to find.

It looks like it all started working again after updating Supervisor and HA Core

1 Like

That didn´t last long

I installed HACS (simply executed the install command from SSH and restarted home assistant) and now:

The following integrations and platforms could not be set up:

raspberry_pi (Show logs)
shelly (Show logs)
default_config (Show logs)
esphome (Show logs)
bluetooth_adapters (Show logs)

Actually it seems like any time I restart I get a random number of failed to load components (between 0 and 5)

2024-03-28 18:11:39.871 WARNING (SyncWorker_2) [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-03-28 18:15:24.087 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.088 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.089 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:15:24.089 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform filter is taking over 10 seconds.
2024-03-28 18:21:07.677 WARNING (MainThread) [homeassistant.setup] Setup of cloud is taking over 10 seconds.
2024-03-28 18:21:07.678 WARNING (MainThread) [homeassistant.setup] Setup of bluetooth is taking over 10 seconds.
2024-03-28 18:21:07.678 WARNING (MainThread) [homeassistant.setup] Setup of hardware is taking over 10 seconds.
2024-03-28 18:21:07.680 ERROR (MainThread) [homeassistant.setup] Setup of 'hardware' is taking longer than 300 seconds. Startup will proceed without waiting any longer
2024-03-28 18:21:07.701 ERROR (MainThread) [homeassistant.setup] Setup of 'cloud' is taking longer than 300 seconds. Startup will proceed without waiting any longer
2024-03-28 18:21:07.712 ERROR (MainThread) [homeassistant.setup] Setup of 'bluetooth' is taking longer than 300 seconds. Startup will proceed without waiting any longer
2024-03-28 18:21:07.713 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'raspberry_pi'. Setup failed for dependencies: ['hardware']
2024-03-28 18:21:07.717 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 91, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 25, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 68, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 52, in get
    return await WebSocketHandler(request.app["hass"], request).async_handle()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 285, in async_handle
    await wsock.prepare(request)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_ws.py", line 152, in prepare
    payload_writer = await super().prepare(request)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 415, in prepare
    return await self._start(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 423, in _start
    await self._write_headers()
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 503, in _write_headers
    await writer.write_headers(status_line, self._headers)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 130, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2024-03-28 18:21:07.771 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: hardware')
2024-03-28 18:21:08.065 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'raspberry_pi'. Setup failed for dependencies: ['hardware']
2024-03-28 18:21:08.065 ERROR (MainThread) [homeassistant.setup] Setup failed for 'raspberry_pi': (DependencyError(...), 'Could not setup dependencies: hardware')
2024-03-28 18:21:09.467 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:09.467 ERROR (MainThread) [homeassistant.setup] Setup failed for 'shelly': (DependencyError(...), 'Could not setup dependencies: bluetooth')
2024-03-28 18:21:09.655 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 91, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 25, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 68, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 52, in get
    return await WebSocketHandler(request.app["hass"], request).async_handle()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 285, in async_handle
    await wsock.prepare(request)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_ws.py", line 152, in prepare
    payload_writer = await super().prepare(request)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 415, in prepare
    return await self._start(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 423, in _start
    await self._write_headers()
  File "/usr/local/lib/python3.12/site-packages/aiohttp/web_response.py", line 503, in _write_headers
    await writer.write_headers(status_line, self._headers)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 130, in write_headers
    self._write(buf)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/http_writer.py", line 75, in _write
    raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport
2024-03-28 18:21:15.149 WARNING (MainThread) [homeassistant.config_entries] Config entry '[email protected]' for tuya integration could not authenticate: Authentication failed. Please re-authenticate.
2024-03-28 18:21:18.773 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547290068160] from 192.168.0.109 (Home Assistant/2024.2 (io.robbie.HomeAssistant; build:2024.561; iOS 17.4.1)): Disconnected: Did not receive auth message within 10 seconds
2024-03-28 18:21:19.124 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'default_config'. Setup failed for dependencies: ['bluetooth', 'cloud']
2024-03-28 18:21:19.125 ERROR (MainThread) [homeassistant.setup] Setup failed for 'default_config': (DependencyError(...), 'Could not setup dependencies: bluetooth, cloud')
2024-03-28 18:21:19.125 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'esphome'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:19.126 ERROR (MainThread) [homeassistant.setup] Setup failed for 'esphome': (DependencyError(...), 'Could not setup dependencies: bluetooth')
2024-03-28 18:21:33.234 WARNING (MainThread) [zigpy.application] Zigbee channel 11 utilization is 99.90%!
2024-03-28 18:21:33.234 WARNING (MainThread) [zigpy.application] If you are having problems joining new devices, are missing sensor updates, or have issues keeping devices joined, ensure your coordinator is away from interference sources such as USB 3.0 devices, SSDs, WiFi routers, etc.
2024-03-28 18:21:33.552 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{states('input_number.amp_limit')|float-(states('input_number.prism_corrente'))|float/1000}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states('input_number.amp_limit')|float-(states('input_number.prism_corrente'))|float/1000}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states('input_number.amp_limit')|float-(states('input_number.prism_corrente'))|float/1000}}' but no default was specified
2024-03-28 18:21:33.582 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states('input_number.amp_limit')|float-(states('input_number.prism_corrente'))|float/1000}}' but no default was specified') while processing template 'Template<template=({{states('input_number.amp_limit')|float-(states('input_number.prism_corrente'))|float/1000}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.errore_corrente'
2024-03-28 18:21:33.587 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ ((280-(100-(states('sensor.inverter_battery_SOC')|float))*states('sensor.seplos_bms_battery_capacity')|float/100)/280*100) |round(2)}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((280-(100-(states('sensor.inverter_battery_SOC')|float))*states('sensor.seplos_bms_battery_capacity')|float/100)/280*100) |round(2)}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((280-(100-(states('sensor.inverter_battery_SOC')|float))*states('sensor.seplos_bms_battery_capacity')|float/100)/280*100) |round(2)}}' but no default was specified
2024-03-28 18:21:33.601 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((280-(100-(states('sensor.inverter_battery_SOC')|float))*states('sensor.seplos_bms_battery_capacity')|float/100)/280*100) |round(2)}}' but no default was specified') while processing template 'Template<template=({{ ((280-(100-(states('sensor.inverter_battery_SOC')|float))*states('sensor.seplos_bms_battery_capacity')|float/100)/280*100) |round(2)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.real_soc'
2024-03-28 18:21:33.665 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.water_usage (<class 'homeassistant.components.template.sensor.SensorTemplate'>) is using native unit of measurement 'l' which is not a valid unit for the device class ('humidity') it is using; expected one of ['%']; 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+template%22
2024-03-28 18:21:33.670 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ ((states('sensor.real_soc')|float-10)*900*16/100/1000) |round(2)}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.real_soc')|float-10)*900*16/100/1000) |round(2)}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.real_soc')|float-10)*900*16/100/1000) |round(2)}}' but no default was specified
2024-03-28 18:21:33.683 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.real_soc')|float-10)*900*16/100/1000) |round(2)}}' but no default was specified') while processing template 'Template<template=({{ ((states('sensor.real_soc')|float-10)*900*16/100/1000) |round(2)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.battery_usable_energy'
2024-03-28 18:21:33.685 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ ((states('sensor.battery_usable_energy')|float)*1000/(states('sensor.filtered_battery_discharge')|float))|round(1)}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.battery_usable_energy')|float)*1000/(states('sensor.filtered_battery_discharge')|float))|round(1)}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.battery_usable_energy')|float)*1000/(states('sensor.filtered_battery_discharge')|float))|round(1)}}' but no default was specified
2024-03-28 18:21:33.696 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ ((states('sensor.battery_usable_energy')|float)*1000/(states('sensor.filtered_battery_discharge')|float))|round(1)}}' but no default was specified') while processing template 'Template<template=({{ ((states('sensor.battery_usable_energy')|float)*1000/(states('sensor.filtered_battery_discharge')|float))|round(1)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.remaining_time'
2024-03-28 18:21:33.704 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{(states('sensor.seplos_bms_temperature_1')|float+states('sensor.seplos_bms_temperature_2')|float+states('sensor.seplos_bms_temperature_3')|float+states('sensor.seplos_bms_temperature_4')|float)/4}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.seplos_bms_temperature_1')|float+states('sensor.seplos_bms_temperature_2')|float+states('sensor.seplos_bms_temperature_3')|float+states('sensor.seplos_bms_temperature_4')|float)/4}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.seplos_bms_temperature_1')|float+states('sensor.seplos_bms_temperature_2')|float+states('sensor.seplos_bms_temperature_3')|float+states('sensor.seplos_bms_temperature_4')|float)/4}}' but no default was specified
2024-03-28 18:21:33.714 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.seplos_bms_temperature_1')|float+states('sensor.seplos_bms_temperature_2')|float+states('sensor.seplos_bms_temperature_3')|float+states('sensor.seplos_bms_temperature_4')|float)/4}}' but no default was specified') while processing template 'Template<template=({{(states('sensor.seplos_bms_temperature_1')|float+states('sensor.seplos_bms_temperature_2')|float+states('sensor.seplos_bms_temperature_3')|float+states('sensor.seplos_bms_temperature_4')|float)/4}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.average_battery_temperature'
2024-03-28 18:21:33.717 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{(states('sensor.esphome_temperature_temperature_1')|float-states('sensor.esphome_temperature_temperature_2')|float)|round(1)}}) renders=2>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.esphome_temperature_temperature_1')|float-states('sensor.esphome_temperature_temperature_2')|float)|round(1)}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.esphome_temperature_temperature_1')|float-states('sensor.esphome_temperature_temperature_2')|float)|round(1)}}' but no default was specified
2024-03-28 18:21:33.728 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{(states('sensor.esphome_temperature_temperature_1')|float-states('sensor.esphome_temperature_temperature_2')|float)|round(1)}}' but no default was specified') while processing template 'Template<template=({{(states('sensor.esphome_temperature_temperature_1')|float-states('sensor.esphome_temperature_temperature_2')|float)|round(1)}}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.dallas_delta_temperature'
2024-03-28 18:21:33.994 WARNING (MainThread) [homeassistant.components.template.trigger] Error initializing 'template' trigger for 'Conservatory hot': ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified
2024-03-28 18:21:33.996 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}) renders=3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified
2024-03-28 18:21:34.008 WARNING (MainThread) [homeassistant.components.template.trigger] Error initializing 'template' trigger for 'Conservatory cold': ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified
2024-03-28 18:21:34.009 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}) renders=3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified
2024-03-28 18:21:34.031 WARNING (MainThread) [homeassistant.components.template.trigger] Error initializing 'template' trigger for 'Battery: SoC charging (stop)': ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ states('sensor.seplos_bms_state_of_charge')|float > states('input_number.soc_target')|float }}' but no default was specified
2024-03-28 18:21:34.033 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.seplos_bms_state_of_charge')|float > states('input_number.soc_target')|float }}) renders=3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2037, in forgiving_float_filter
    return float(value)
           ^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 573, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2364, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2040, in forgiving_float_filter
    raise_no_default("float", value)
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1668, in raise_no_default
    raise ValueError(
ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ states('sensor.seplos_bms_state_of_charge')|float > states('input_number.soc_target')|float }}' but no default was specified

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 699, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 575, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ states('sensor.seplos_bms_state_of_charge')|float > states('input_number.soc_target')|float }}' but no default was specified
2024-03-28 18:21:34.193 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'bluetooth_adapters'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.193 ERROR (MainThread) [homeassistant.setup] Setup failed for 'bluetooth_adapters': (DependencyError(...), 'Could not setup dependencies: bluetooth')
2024-03-28 18:21:34.231 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.231 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.320 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.321 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.333 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.334 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.400 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.400 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 104, in _async_start
    await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 218, in gather_with_limited_concurrency
    return await gather(
           ^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 216, in sem_task
    return await task
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth_adapters')
2024-03-28 18:21:34.431 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.444 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.459 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.460 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.476 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.477 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.485 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.486 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.496 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.497 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.515 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.516 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.523 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'esphome'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.531 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.532 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.554 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:34.568 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:34.610 ERROR (SyncWorker_5) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth')
2024-03-28 18:21:34.621 ERROR (SyncWorker_5) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth_adapters')
2024-03-28 18:21:37.746 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'shelly'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:21:37.782 ERROR (DbWorker_3) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth')
2024-03-28 18:21:39.078 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.daily_forecast (Wh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-03-28 18:21:41.672 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.seplos_bms_min_voltage_cell (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-03-28 18:21:41.673 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.seplos_bms_max_voltage_cell (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-03-28 18:21:41.677 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.seplos_bms_charging_cycles (None) cannot be converted to the unit of previously compiled statistics (). Generation of long term statistics will be suppressed unless the unit changes back to  or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-03-28 18:21:50.350 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:21:50.394 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth_adapters')
2024-03-28 18:22:04.734 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'esphome'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:22:09.032 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'homekit_controller'. Setup failed for dependencies: ['bluetooth_adapters']
2024-03-28 18:22:09.274 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth_adapters')
2024-03-28 18:22:36.213 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of 'esphome'. Setup failed for dependencies: ['bluetooth']
2024-03-28 18:22:36.271 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1050, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1070, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1205, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2463, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2440, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 526, in async_process_deps_reqs
    raise DependencyError(failed_deps)
homeassistant.exceptions.DependencyError: (DependencyError(...), 'Could not setup dependencies: bluetooth')

This sounds like either a bad power supply on a rPi OR a bad SD card/SSD drive.

What is your file storage medium? Given you have the raspberry_pi integration, I’m going to assume you are running on a rPi. What kind of power supply are you using?

This would literally have nothing to do with your integrations on HA not setting up properly. Unless you are running the actual HA server on your phone, which is impossible on an iPhone.

I’m using an old SSD and the official pi power supply

How old is “old” on your SSD? To me, this looks like you’re having issues with it. Can you swap in a new one or attach it to another computer and run a SMART test on it? I’m willing to bet that the drive itself might be starting to fail. That would explain HA loading random integrations every time.

I don’t know. I bought it second hand from Cex for £12 but I SMART checked it before using it and it was ok.

Can I connect it to a Windows pc to check it again without having to wipe it?

Yeah, you can install a SMART drive check there. But, it won’t tell you if you have corruption on the data partition that HA uses. For that, I think there’s a utility built into HAOS. I’m not sure though.

I have restored a backup and it has been working rock solid for a week.

Is it likely that by restoring the backup, HA is now using a “different part” of the ssd hence I don’t yet see any error but they’re probably coming back in the future?

I just ordered a new SSD off Amazon and I’m not sure if I should use it or not.

So is this SSD still good?

Says “Good” up in the corner, so I would say so.

Well, I connected it back to the PI and upon restart I started having those errors again.
I restarted once again and they are gone.

I cannot use a system so unreliably, I need it to tell me what is wrong.