Open stevexyz opened 3 weeks ago
There is a menu entry in dietpi-config
to enable Bluetooth. Installing bluez
alone would not enable it. Do you actually use any Bluetooth functionality in HA? It sadly changed the past months/year to throw a lot of errors about missing this or that, including FFmpeg etc, while most of these features are only used by a minority of users, at least are (of course) not required for HA core functionality. We intentionally ignore everything that does not make HA actually crash.
It got few equipment in my house but not sure if all via wifi or some via bluetooth (few have both options), but at least it does not give error. Anyway I can understand your way of reasoning, and probably this is the way to keep DietPi "clean", but then not sure if a big and complex app as HA is a good match deployed as a set of packages or better keep it as docker container anyway...
Here is startup logs of fresh Home Assistant on my RPi 5 with WiFi enabled:
Nov 14 22:34:23 DietPi systemd[1]: Started home-assistant.service - Home Assistant (DietPi).
Nov 14 22:34:26 DietPi Home Assistant[31284]: 2024-11-14 22:34:26.449 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
Nov 14 22:34:29 DietPi Home Assistant[31284]: 2024-11-14 22:34:29.175 WARNING (MainThread) [aiohttp_fast_zlib] zlib_ng and isal are not available, falling back to zlib, performance will be degraded.
Nov 14 22:35:27 DietPi Home Assistant[31284]: 2024-11-14 22:35:27.720 ERROR (ImportExecutor_0) [homeassistant.components.camera.img_util] Error loading libturbojpeg; Camera snapshot performance will be sub-optimal
Nov 14 22:35:27 DietPi Home Assistant[31284]: Traceback (most recent call last):
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/homeassistant/components/camera/img_util.py", line 100, in __init__
Nov 14 22:35:27 DietPi Home Assistant[31284]: TurboJPEGSingleton.__instance = TurboJPEG()
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/turbojpeg.py", line 300, in __init__
Nov 14 22:35:27 DietPi Home Assistant[31284]: self.__find_turbojpeg() if lib_path is None else lib_path)
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/turbojpeg.py", line 967, in __find_turbojpeg
Nov 14 22:35:27 DietPi Home Assistant[31284]: raise RuntimeError(
Nov 14 22:35:27 DietPi Home Assistant[31284]: RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually.
Nov 14 22:35:27 DietPi Home Assistant[31284]: e.g. jpeg = TurboJPEG(lib_path)
Nov 14 22:35:27 DietPi Home Assistant[31284]: 2024-11-14 22:35:27.945 ERROR (MainThread) [haffmpeg.core] FFmpeg fails [Errno 2] No such file or directory: 'ffmpeg'
Nov 14 22:35:27 DietPi Home Assistant[31284]: Traceback (most recent call last):
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/haffmpeg/core.py", line 130, in open
Nov 14 22:35:27 DietPi Home Assistant[31284]: self._proc = await asyncio.create_subprocess_exec(
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/asyncio/subprocess.py", line 224, in create_subprocess_exec
Nov 14 22:35:27 DietPi Home Assistant[31284]: transport, protocol = await loop.subprocess_exec(
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/asyncio/base_events.py", line 1743, in subprocess_exec
Nov 14 22:35:27 DietPi Home Assistant[31284]: transport = await self._make_subprocess_transport(
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/asyncio/unix_events.py", line 211, in _make_subprocess_transport
Nov 14 22:35:27 DietPi Home Assistant[31284]: transp = _UnixSubprocessTransport(self, protocol, args, shell,
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/asyncio/base_subprocess.py", line 36, in __init__
Nov 14 22:35:27 DietPi Home Assistant[31284]: self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/asyncio/unix_events.py", line 820, in _start
Nov 14 22:35:27 DietPi Home Assistant[31284]: self._proc = subprocess.Popen(
Nov 14 22:35:27 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/subprocess.py", line 1026, in __init__
Nov 14 22:35:27 DietPi Home Assistant[31284]: self._execute_child(args, executable, preexec_fn, close_fds,
Nov 14 22:35:27 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/subprocess.py", line 1955, in _execute_child
Nov 14 22:35:27 DietPi Home Assistant[31284]: raise child_exception_type(errno_num, err_msg, err_filename)
Nov 14 22:35:27 DietPi Home Assistant[31284]: FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
Nov 14 22:35:27 DietPi Home Assistant[31284]: 2024-11-14 22:35:27.948 WARNING (MainThread) [haffmpeg.tools] Error starting FFmpeg.
Nov 14 22:35:37 DietPi Home Assistant[31284]: 2024-11-14 22:35:37.591 ERROR (SyncWorker_3) [aiodhcpwatcher] Cannot watch for dhcp packets without a functional packet filter: libpcap is not available. Cannot compile filter !
Nov 14 22:58:55 DietPi Home Assistant[31284]: 2024-11-14 22:58:55.327 ERROR (MainThread) [aiohttp.server] Error handling request
Nov 14 22:58:55 DietPi Home Assistant[31284]: Traceback (most recent call last):
Nov 14 22:58:55 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 377, in data_received
Nov 14 22:58:55 DietPi Home Assistant[31284]: messages, upgraded, tail = self._request_parser.feed_data(data)
Nov 14 22:58:55 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:58:55 DietPi Home Assistant[31284]: File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
Nov 14 22:58:55 DietPi Home Assistant[31284]: aiohttp.http_exceptions.BadStatusLine: 400, message:
Nov 14 22:58:55 DietPi Home Assistant[31284]: Invalid method encountered:
Nov 14 22:58:55 DietPi Home Assistant[31284]: b'\x16\x03\x01\x06\xe0\x01'
Nov 14 22:58:55 DietPi Home Assistant[31284]: ^
Nov 14 22:58:55 DietPi Home Assistant[31284]: 2024-11-14 22:58:55.338 ERROR (MainThread) [aiohttp.server] Error handling request
Nov 14 22:58:55 DietPi Home Assistant[31284]: Traceback (most recent call last):
Nov 14 22:58:55 DietPi Home Assistant[31284]: File "/home/homeassistant/.pyenv/versions/3.12.7/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 377, in data_received
Nov 14 22:58:55 DietPi Home Assistant[31284]: messages, upgraded, tail = self._request_parser.feed_data(data)
Nov 14 22:58:55 DietPi Home Assistant[31284]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 14 22:58:55 DietPi Home Assistant[31284]: File "aiohttp/_http_parser.pyx", line 563, in aiohttp._http_parser.HttpParser.feed_data
Nov 14 22:58:55 DietPi Home Assistant[31284]: aiohttp.http_exceptions.BadStatusLine: 400, message:
Nov 14 22:58:55 DietPi Home Assistant[31284]: Invalid method encountered:
Nov 14 22:58:55 DietPi Home Assistant[31284]: b'\x16\x03\x01\x06\xc0\x01'
Nov 14 22:58:55 DietPi Home Assistant[31284]: ^
Nov 14 23:00:54 DietPi Home Assistant[31284]: 2024-11-14 23:00:54.771 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Invalid domain homeassistant.scene
Nov 14 23:00:54 DietPi Home Assistant[31284]: 2024-11-14 23:00:54.773 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Invalid domain cloud.tts
Nov 14 23:00:54 DietPi Home Assistant[31284]: 2024-11-14 23:00:54.773 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Invalid domain sun.sensor
Nov 14 23:00:54 DietPi Home Assistant[31284]: 2024-11-14 23:00:54.773 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Invalid domain mobile_app.notify
Nov 14 23:00:54 DietPi Home Assistant[31284]: 2024-11-14 23:00:54.773 WARNING (MainThread) [homeassistant.helpers.translation] Failed to load integration for translation: Invalid domain energy.sensor
Where do you see an error about Bluetooth? Can you paste it? The log/error message should contain the integration as well, which demands it.
I got it on the user interface, I didn't check the logs
Where in the UI does this show up exactly?
Creating a bug report/issue
Required Information
Additional Information (if applicable)
Steps to reproduce
Expected behaviour
Actual behaviour
Extra details