Bluetooth Proxy Problem

Guten Morgen,

mein Bluetooth Proxy (ESP32) macht Problem. Genauer gesagt, verliert er immer wieder alle Verbindungen, wodurch alle Geräte die über ihn verbunden waren, weg sind. Das ganze sieht dann so aus auf der Oberfläche vom HA

Es hilft dann nur einmal Stromlos mache und dann geht er wieder für eine Weile. (zuletzt ging der 2 Tage)

Hat jemand eine Idee was das sein kann, bzw. was ich machen könnte?

Vielen Dank!

VG

Markus

Update:

Ich habe jetzt mal ESPHome zusätzlich bei mir installiert. Das hatte ich davor noch nicht installiert gehabt. Ebenso habe ich dann den ESP mit ins ESPHome eingebunden. Dabei habe ich aber beim ersten Versuch einen Fehler bekommen.

INFO ESPHome 2026.1.3
INFO Reading configuration /config/esphome/esp32-bluetooth-proxy-fd238c.yaml...
WARNING WiFi AP is configured but neither captive_portal nor web_server is enabled. The AP will not be usable for configuration or monitoring. Add 'captive_portal:' or 'web_server:' to your configuration.
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Compiling app... Build path: /data/build/esp32-bluetooth-proxy-fd238c
Processing esp32-bluetooth-proxy-fd238c (board: esp32dev; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip)
--------------------------------------------------------------------------------
Platform Manager: Installing https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip
INFO Installing https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35/platform-espressif32.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Platform Manager: espressif32@55.3.35 has been installed!
INFO espressif32@55.3.35 has been installed!
INFO tool-esp_install not installed, installing version https://github.com/pioarduino/esp_install/releases/download/v5.3.4/esp_install-v5.3.4.zip
INFO Installing tool-esp_install version https://github.com/pioarduino/esp_install/releases/download/v5.3.4/esp_install-v5.3.4.zip
Tool Manager: Installing https://github.com/pioarduino/esp_install/releases/download/v5.3.4/esp_install-v5.3.4.zip
INFO Installing https://github.com/pioarduino/esp_install/releases/download/v5.3.4/esp_install-v5.3.4.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-esp_install@5.3.4 has been installed!
INFO tool-esp_install@5.3.4 has been installed!
INFO tool-esp_install successfully installed and verified
Created pioarduino Python virtual environment using uv: /root/.platformio/penv
Tool Manager: Installing https://github.com/pioarduino/esp-idf/releases/download/v5.5.2/esp-idf-v5.5.2.tar.xz
INFO Installing https://github.com/pioarduino/esp-idf/releases/download/v5.5.2/esp-idf-v5.5.2.tar.xz
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Tool Manager: framework-espidf@3.50502.0 has been installed!
INFO framework-espidf@3.50502.0 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20251107.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/xtensa-esp-elf-14.2.0_20251107.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: toolchain-xtensa-esp-elf@14.2.0+20251107 has been installed!
INFO toolchain-xtensa-esp-elf@14.2.0+20251107 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.1.0.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.1.0.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-esptoolpy@5.1.0 has been installed!
INFO tool-esptoolpy@5.1.0 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/contrib-piohome-3.4.4.tar.gz
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/contrib-piohome-3.4.4.tar.gz
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: contrib-piohome@3.4.4 has been installed!
INFO contrib-piohome@3.4.4 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/mklittlefs-3.2.0-new.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/mklittlefs-3.2.0-new.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-mklittlefs@3.2.0 has been installed!
INFO tool-mklittlefs@3.2.0 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/cmake-4.0.3.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/cmake-4.0.3.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-cmake@4.0.3 has been installed!
INFO tool-cmake@4.0.3 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esp-rom-elfs-20241011.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esp-rom-elfs-20241011.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-esp-rom-elfs@2024.10.11 has been installed!
INFO tool-esp-rom-elfs@2024.10.11 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/ninja-1.13.1.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/ninja-1.13.1.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-ninja@1.13.1 has been installed!
INFO tool-ninja@1.13.1 has been installed!
Tool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/scons-4.8.1.zip
INFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/scons-4.8.1.zip
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-scons@4.40801.0 has been installed!
INFO tool-scons@4.40801.0 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40801.0
INFO Installing platformio/tool-scons @ ~4.40801.0
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Tool Manager: tool-scons@4.40801.0 has been installed!
INFO tool-scons@4.40801.0 has been installed!
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Library Manager: noise-c@0.1.10 has been installed!
INFO noise-c@0.1.10 has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10020.7
INFO Installing esphome/libsodium @ 1.10020.7
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Library Manager: libsodium@1.10020.7 has been installed!
INFO libsodium@1.10020.7 has been installed!
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/tool-esptoolpy
INFO Installing file:///root/.platformio/tools/tool-esptoolpy
Tool Manager: tool-esptoolpy@5.1.0 has been installed!
INFO tool-esptoolpy@5.1.0 has been installed!
INFO Tool tool-esptoolpy successfully installed
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
INFO Installing file:///root/.platformio/tools/toolchain-xtensa-esp-elf
Tool Manager: toolchain-xtensa-esp-elf@14.2.0+20251107 has been installed!
INFO toolchain-xtensa-esp-elf@14.2.0+20251107 has been installed!
INFO Tool toolchain-xtensa-esp-elf successfully installed
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/tool-mklittlefs
INFO Installing file:///root/.platformio/tools/tool-mklittlefs
Tool Manager: tool-mklittlefs@3.2.0 has been installed!
INFO tool-mklittlefs@3.2.0 has been installed!
INFO Tool tool-mklittlefs successfully installed
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/tool-cmake
INFO Installing file:///root/.platformio/tools/tool-cmake
Tool Manager: tool-cmake@4.0.3 has been installed!
INFO tool-cmake@4.0.3 has been installed!
INFO Tool tool-cmake successfully installed
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/tool-ninja
INFO Installing file:///root/.platformio/tools/tool-ninja
Tool Manager: tool-ninja@1.13.1 has been installed!
INFO tool-ninja@1.13.1 has been installed!
INFO Tool tool-ninja successfully installed
INFO Installing tools via idf_tools.py (this may take several minutes)...
Tool Manager: Installing file:///root/.platformio/tools/tool-esp-rom-elfs
INFO Installing file:///root/.platformio/tools/tool-esp-rom-elfs
Tool Manager: tool-esp-rom-elfs@2024.10.11 has been installed!
INFO tool-esp-rom-elfs@2024.10.11 has been installed!
INFO Tool tool-esp-rom-elfs successfully installed
Installed esptool from tl-install path: /data/cache/platformio/packages/tool-esptoolpy
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - contrib-piohome @ 3.4.4 
 - framework-espidf @ 3.50502.0 (5.5.2) 
 - tool-cmake @ 4.0.3 
 - tool-esp-rom-elfs @ 2024.10.11 
 - tool-esptoolpy @ 5.1.0 
 - tool-mklittlefs @ 3.2.0 
 - tool-ninja @ 1.13.1 
 - tool-scons @ 4.40801.0 (4.8.1) 
 - toolchain-xtensa-esp-elf @ 14.2.0+20251107
Creating a new virtual environment for IDF Python dependencies using uv
Using Python 3.12.10 environment at: /root/.platformio/penv/.espidf-5.5.2
Installing ESP-IDF's Python dependencies with uv
Using Python 3.12.10 environment at: /root/.platformio/penv/.espidf-5.5.2
Resolved 27 packages in 516ms
Downloading cryptography (4.0MiB)
Downloading pydantic-core (2.0MiB)
 Downloaded pydantic-core
 Downloaded cryptography
Prepared 17 packages in 1.25s
Installed 27 packages in 12ms
 + annotated-types==0.7.0
 + certifi==2026.1.4
 + cffi==2.0.0
 + charset-normalizer==3.4.4
 + click==8.3.1
 + colorama==0.4.6
 + cryptography==44.0.3
 + esp-idf-kconfig==2.5.2
 + idf-component-manager==2.4.6
 + idna==3.11
 + jsonref==1.1.0
 + psutil==7.2.2
 + pycparser==3.0
 + pydantic==2.12.5
 + pydantic-core==2.41.5
 + pydantic-settings==2.12.0
 + pyparsing==3.3.2
 + python-dotenv==1.2.1
 + requests==2.32.5
 + requests-file==3.0.1
 + requests-toolbelt==1.0.0
 + ruamel-yaml==0.19.1
 + tqdm==4.67.2
 + truststore==0.10.4
 + typing-extensions==4.15.0
 + typing-inspection==0.4.2
 + urllib3==1.26.20
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.5")
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- Minimal build - OFF
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Dependencies lock doesn't exist, solving dependencies.
..NOTICE: Updating lock file at /data/build/esp32-bluetooth-proxy-fd238c/dependencies.lock
NOTICE: Processing 2 dependencies:
NOTICE: [1/2] espressif/mdns (1.9.1)
NOTICE: [2/2] idf (5.5.2)
-- ESP-TEE is currently supported only on the esp32c6;esp32h2;esp32c5 SoCs
-- Project sdkconfig file /data/build/esp32-bluetooth-proxy-fd238c/sdkconfig.esp32-bluetooth-proxy-fd238c
/data/build/esp32-bluetooth-proxy-fd238c/sdkconfig.esp32-bluetooth-proxy-fd238c:29 CONFIG_COMPILER_OPTIMIZATION_DEFAULT was replaced with CONFIG_COMPILER_OPTIMIZATION_DEBUG 
/data/build/esp32-bluetooth-proxy-fd238c/sdkconfig.esp32-bluetooth-proxy-fd238c:36 CONFIG_ESP_TASK_WDT was replaced with CONFIG_ESP_TASK_WDT_INIT 
/data/build/esp32-bluetooth-proxy-fd238c/sdkconfig.esp32-bluetooth-proxy-fd238c:59 CONFIG_SW_COEXIST_ENABLE was replaced with CONFIG_ESP_COEX_SW_COEXIST_ENABLE 
-- Compiler supported targets: xtensa-esp-elf
-- Found Python3: /root/.platformio/penv/.espidf-5.5.2/bin/python (found version "3.12.10") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- USING O3
-- App "esp32-bluetooth-proxy-fd238c" version: 2026.1.3
-- Adding linker script /data/build/esp32-bluetooth-proxy-fd238c/.pioenvs/esp32-bluetooth-proxy-fd238c/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /data/build/esp32-bluetooth-proxy-fd238c/.pioenvs/esp32-bluetooth-proxy-fd238c/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.libc-funcs.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/esp_rom/esp32/ld/esp32.rom.newlib-reent-funcs.ld
-- Adding linker script /data/cache/platformio/packages/framework-espidf/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: __pio_env app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_bitscrambler esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_twai esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_security esp_system esp_timer esp_vfs_console esp_wifi espcoredump espressif__mdns esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread rt sdmmc soc spi_flash spiffs src tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /data/cache/platformio/packages/framework-espidf/components/__pio_env /data/cache/platformio/packages/framework-espidf/components/app_trace /data/cache/platformio/packages/framework-espidf/components/app_update /data/cache/platformio/packages/framework-espidf/components/bootloader /data/cache/platformio/packages/framework-espidf/components/bootloader_support /data/cache/platformio/packages/framework-espidf/components/bt /data/cache/platformio/packages/framework-espidf/components/cmock /data/cache/platformio/packages/framework-espidf/components/console /data/cache/platformio/packages/framework-espidf/components/cxx /data/cache/platformio/packages/framework-espidf/components/driver /data/cache/platformio/packages/framework-espidf/components/efuse /data/cache/platformio/packages/framework-espidf/components/esp-tls /data/cache/platformio/packages/framework-espidf/components/esp_adc /data/cache/platformio/packages/framework-espidf/components/esp_app_format /data/cache/platformio/packages/framework-espidf/components/esp_bootloader_format /data/cache/platformio/packages/framework-espidf/components/esp_coex /data/cache/platformio/packages/framework-espidf/components/esp_common /data/cache/platformio/packages/framework-espidf/components/esp_driver_ana_cmpr /data/cache/platformio/packages/framework-espidf/components/esp_driver_bitscrambler /data/cache/platformio/packages/framework-espidf/components/esp_driver_cam /data/cache/platformio/packages/framework-espidf/components/esp_driver_dac /data/cache/platformio/packages/framework-espidf/components/esp_driver_gpio /data/cache/platformio/packages/framework-espidf/components/esp_driver_gptimer /data/cache/platformio/packages/framework-espidf/components/esp_driver_i2c /data/cache/platformio/packages/framework-espidf/components/esp_driver_i2s /data/cache/platformio/packages/framework-espidf/components/esp_driver_isp /data/cache/platformio/packages/framework-espidf/components/esp_driver_jpeg /data/cache/platformio/packages/framework-espidf/components/esp_driver_ledc /data/cache/platformio/packages/framework-espidf/components/esp_driver_mcpwm /data/cache/platformio/packages/framework-espidf/components/esp_driver_parlio /data/cache/platformio/packages/framework-espidf/components/esp_driver_pcnt /data/cache/platformio/packages/framework-espidf/components/esp_driver_ppa /data/cache/platformio/packages/framework-espidf/components/esp_driver_rmt /data/cache/platformio/packages/framework-espidf/components/esp_driver_sdio /data/cache/platformio/packages/framework-espidf/components/esp_driver_sdm /data/cache/platformio/packages/framework-espidf/components/esp_driver_sdmmc /data/cache/platformio/packages/framework-espidf/components/esp_driver_sdspi /data/cache/platformio/packages/framework-espidf/components/esp_driver_spi /data/cache/platformio/packages/framework-espidf/components/esp_driver_touch_sens /data/cache/platformio/packages/framework-espidf/components/esp_driver_tsens /data/cache/platformio/packages/framework-espidf/components/esp_driver_twai /data/cache/platformio/packages/framework-espidf/components/esp_driver_uart /data/cache/platformio/packages/framework-espidf/components/esp_driver_usb_serial_jtag /data/cache/platformio/packages/framework-espidf/components/esp_eth /data/cache/platformio/packages/framework-espidf/components/esp_event /data/cache/platformio/packages/framework-espidf/components/esp_gdbstub /data/cache/platformio/packages/framework-espidf/components/esp_hid /data/cache/platformio/packages/framework-espidf/components/esp_http_client /data/cache/platformio/packages/framework-espidf/components/esp_http_server /data/cache/platformio/packages/framework-espidf/components/esp_https_ota /data/cache/platformio/packages/framework-espidf/components/esp_https_server /data/cache/platformio/packages/framework-espidf/components/esp_hw_support /data/cache/platformio/packages/framework-espidf/components/esp_lcd /data/cache/platformio/packages/framework-espidf/components/esp_local_ctrl /data/cache/platformio/packages/framework-espidf/components/esp_mm /data/cache/platformio/packages/framework-espidf/components/esp_netif /data/cache/platformio/packages/framework-espidf/components/esp_netif_stack /data/cache/platformio/packages/framework-espidf/components/esp_partition /data/cache/platformio/packages/framework-espidf/components/esp_phy /data/cache/platformio/packages/framework-espidf/components/esp_pm /data/cache/platformio/packages/framework-espidf/components/esp_psram /data/cache/platformio/packages/framework-espidf/components/esp_ringbuf /data/cache/platformio/packages/framework-espidf/components/esp_rom /data/cache/platformio/packages/framework-espidf/components/esp_security /data/cache/platformio/packages/framework-espidf/components/esp_system /data/cache/platformio/packages/framework-espidf/components/esp_timer /data/cache/platformio/packages/framework-espidf/components/esp_vfs_console /data/cache/platformio/packages/framework-espidf/components/esp_wifi /data/cache/platformio/packages/framework-espidf/components/espcoredump /data/build/esp32-bluetooth-proxy-fd238c/managed_components/espressif__mdns /data/cache/platformio/packages/framework-espidf/components/esptool_py /data/cache/platformio/packages/framework-espidf/components/fatfs /data/cache/platformio/packages/framework-espidf/components/freertos /data/cache/platformio/packages/framework-espidf/components/hal /data/cache/platformio/packages/framework-espidf/components/heap /data/cache/platformio/packages/framework-espidf/components/http_parser /data/cache/platformio/packages/framework-espidf/components/idf_test /data/cache/platformio/packages/framework-espidf/components/ieee802154 /data/cache/platformio/packages/framework-espidf/components/json /data/cache/platformio/packages/framework-espidf/components/log /data/cache/platformio/packages/framework-espidf/components/lwip /data/cache/platformio/packages/framework-espidf/components/mbedtls /data/cache/platformio/packages/framework-espidf/components/mqtt /data/cache/platformio/packages/framework-espidf/components/newlib /data/cache/platformio/packages/framework-espidf/components/nvs_flash /data/cache/platformio/packages/framework-espidf/components/nvs_sec_provider /data/cache/platformio/packages/framework-espidf/components/openthread /data/cache/platformio/packages/framework-espidf/components/partition_table /data/cache/platformio/packages/framework-espidf/components/perfmon /data/cache/platformio/packages/framework-espidf/components/protobuf-c /data/cache/platformio/packages/framework-espidf/components/protocomm /data/cache/platformio/packages/framework-espidf/components/pthread /data/cache/platformio/packages/framework-espidf/components/rt /data/cache/platformio/packages/framework-espidf/components/sdmmc /data/cache/platformio/packages/framework-espidf/components/soc /data/cache/platformio/packages/framework-espidf/components/spi_flash /data/cache/platformio/packages/framework-espidf/components/spiffs /data/build/esp32-bluetooth-proxy-fd238c/src /data/cache/platformio/packages/framework-espidf/components/tcp_transport /data/cache/platformio/packages/framework-espidf/components/ulp /data/cache/platformio/packages/framework-espidf/components/unity /data/cache/platformio/packages/framework-espidf/components/usb /data/cache/platformio/packages/framework-espidf/components/vfs /data/cache/platformio/packages/framework-espidf/components/wear_levelling /data/cache/platformio/packages/framework-espidf/components/wifi_provisioning /data/cache/platformio/packages/framework-espidf/components/wpa_supplicant /data/cache/platformio/packages/framework-espidf/components/xtensa
-- Configuring done (5.0s)
-- Generating done (0.7s)
-- Build files have been written to: /data/build/esp32-bluetooth-proxy-fd238c/.pioenvs/esp32-bluetooth-proxy-fd238c

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
warning: user value 0 on the int symbol LWIP_BRIDGEIF_MAX_PORTS (defined at /data/cache/platformio/packages/framework-espidf/components/lwip/Kconfig:1236) ignored due to being outside the active range ([1, 63]) -- falling back on defaults
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Warning:
  Manually-specified variables were not used by the project:

    ESP_IDF_VERSION
    ESP_IDF_VERSION_MAJOR
    ESP_IDF_VERSION_MINOR



========================= [FAILED] Took 125.99 seconds =========================

Beim zweiten Versuch, spich mit “Repeat” scheint es dann durchgelaufen zu sein. Im Log steht nun folgenden:

INFO ESPHome 2026.1.3
INFO Reading configuration /config/esphome/esp32-bluetooth-proxy-fd238c.yaml...
WARNING WiFi AP is configured but neither captive_portal nor web_server is enabled. The AP will not be usable for configuration or monitoring. Add 'captive_portal:' or 'web_server:' to your configuration.
INFO Starting log output from esp32-bluetooth-proxy-fd238c.local using esphome API
INFO Successfully resolved esp32-bluetooth-proxy-fd238c.local in 0.118s
INFO Successfully connected to esp32-bluetooth-proxy-fd238c @ 192.168.179.155 in 0.019s
INFO Successful handshake with esp32-bluetooth-proxy-fd238c @ 192.168.179.155 in 0.102s
[16:09:16.696][I][app:206]: ESPHome version 2026.1.3 compiled on 2026-02-02 15:55:23 +0100
[16:09:16.703][I][app:213]: ESP32 Chip: ESP32 r3.1, 2 core(s)
[16:09:16.703][W][app:222]: Set minimum_chip_revision: "3.1" to reduce binary size
[16:09:16.708][C][logger:316]: Logger:
[16:09:16.708][C][logger:316]:   Max Level: DEBUG
[16:09:16.708][C][logger:316]:   Initial Level: DEBUG
[16:09:16.765][C][logger:322]:   Log Baud Rate: 115200
[16:09:16.765][C][logger:322]:   Hardware UART: UART0
[16:09:16.765][C][logger:332]:   Task Log Buffer Size: 768 bytes
[16:09:16.765][C][bluetooth_proxy:124]: Bluetooth Proxy:
[16:09:16.765][C][bluetooth_proxy:124]:   Active: YES
[16:09:16.765][C][bluetooth_proxy:124]:   Connections: 3
[16:09:16.765][C][safe_mode.button:014]: Safe Mode Button 'Safe Mode Boot'
[16:09:16.765][C][safe_mode.button:017]:   Icon: 'mdi:restart-alert'
[16:09:16.768][C][factory_reset.button:014]: Factory Reset Button 'Factory reset'
[16:09:16.768][C][factory_reset.button:017]:   Icon: 'mdi:restart-alert'
[16:09:16.768][C][esp32_ble:652]: BLE:
[16:09:16.768][C][esp32_ble:652]:   MAC address: 68:FE:71:FD:23:8E
[16:09:16.768][C][esp32_ble:652]:   IO Capability: none
[16:09:16.777][C][esp32_ble_tracker:650]: BLE Tracker:
[16:09:16.784][C][esp32_ble_tracker:651]:   Scan Duration: 300 s
[16:09:16.784][C][esp32_ble_tracker:651]:   Scan Interval: 320.0 ms
[16:09:16.784][C][esp32_ble_tracker:651]:   Scan Window: 30.0 ms
[16:09:16.784][C][esp32_ble_tracker:651]:   Scan Type: ACTIVE
[16:09:16.784][C][esp32_ble_tracker:651]:   Continuous Scanning: YES
[16:09:16.784][C][esp32_ble_tracker:659]:   Scanner State: RUNNING
[16:09:16.784][C][esp32_ble_tracker:659]:   Connecting: 0, discovered: 0, disconnecting: 0
[16:09:16.788][C][bluetooth_proxy.connection:091]: BLE Connection:
[16:09:16.792][C][esp32_ble_client:071]:   Address: 
[16:09:16.792][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[16:09:16.792][C][esp32_ble_client:071]:   State: IDLE
[16:09:16.805][C][bluetooth_proxy.connection:091]: BLE Connection:
[16:09:16.809][C][esp32_ble_client:071]:   Address: 
[16:09:16.809][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[16:09:16.809][C][esp32_ble_client:071]:   State: IDLE
[16:09:16.859][C][bluetooth_proxy.connection:091]: BLE Connection:
[16:09:16.859][C][esp32_ble_client:071]:   Address: 
[16:09:16.859][C][esp32_ble_client:071]:   Auto-Connect: FALSE
[16:09:16.859][C][esp32_ble_client:071]:   State: IDLE
[16:09:16.859][C][wifi:1304]: WiFi:
[16:09:16.859][C][wifi:1304]:   Local MAC: 68:FE:71:FD:23:8C
[16:09:16.859][C][wifi:1304]:   Connected: YES
[16:09:16.859][C][wifi:1037]:   IP Address: 192.168.179.155
[16:09:16.859][C][wifi:1048]:   SSID: 'EMC'[redacted]
[16:09:16.859][C][wifi:1048]:   BSSID: F2:63:DA:3A:A5:79[redacted]
[16:09:16.859][C][wifi:1048]:   Hostname: 'esp32-bluetooth-proxy-fd238c'
[16:09:16.859][C][wifi:1048]:   Signal strength: -49 dB ▂▄▆█
[16:09:16.859][C][wifi:1048]:   Channel: 1
[16:09:16.859][C][wifi:1048]:   Subnet: 255.255.255.0
[16:09:16.859][C][wifi:1048]:   Gateway: 192.168.179.1
[16:09:16.859][C][wifi:1048]:   DNS1: 192.168.179.1
[16:09:16.859][C][wifi:1048]:   DNS2: 0.0.0.0
[16:09:16.867][C][esphome.ota:075]: Over-The-Air updates:
[16:09:16.867][C][esphome.ota:075]:   Address: esp32-bluetooth-proxy-fd238c.local:3232
[16:09:16.867][C][esphome.ota:075]:   Version: 2
[16:09:16.868][C][safe_mode:021]: Safe Mode:
[16:09:16.868][C][safe_mode:021]:   Successful after: 60s
[16:09:16.868][C][safe_mode:021]:   Invoke after: 10 attempts
[16:09:16.868][C][safe_mode:021]:   Duration: 300s
[16:09:16.868][C][safe_mode:038]:   Bootloader rollback: supported
[16:09:16.881][C][api:221]: Server:
[16:09:16.881][C][api:221]:   Address: esp32-bluetooth-proxy-fd238c.local:6053
[16:09:16.881][C][api:221]:   Listen backlog: 4
[16:09:16.881][C][api:221]:   Max connections: 8
[16:09:16.887][C][api:228]:   Noise encryption: YES
[16:09:16.893][C][mdns:177]: mDNS:
[16:09:16.893][C][mdns:177]:   Hostname: esp32-bluetooth-proxy-fd238c

Kann mir jemand sagen ob das so richtig ist?

:crayon:by HarryP: Zusammenführung Doppelpost (bei Änderungen oder hinzufügen von Inhalten bitte die „Bearbeitungsfunktion“ anstatt „Antworten“ zu nutzen)

Moin @Markus07,

hast du das Problem immer noch? Ich habe genau das gleiche Problem. Hab die Firmware schonmal neu geflasht und das Netzteil + Kabel getauscht.

Bisher hat das leider nix geholfen und mein Switchbot ist regelmäßig nicht erreichbar.

Anhand deiner Logs sehe ich zumindest nicht wirklich die Änderung die dir geholfen hat.

VG

Es gab doch da mit einer der letzten ESPHome - Version einen Bug der genau dieses Problem hervorrief.
Mit 26.1.5 sollte das aber behoben sein:

What’s Changed

ESP-IDF 5.5.2 shipped with a regression in the Bluetooth controller binary that causes BLE scanning to silently stop after hours or days of uptime. After the failure, the controller is dead and only a full device reboot recovers it. This has been broken for a large number of users since the 26.1.1 update.

This release applies a patched BT controller firmware on top of ESP-IDF 5.5.2 that includes the upstream fix from Espressif (esp32-bt-lib commit 06dc4667):

  • fix(ble): Fixed BLE enable scan timeout
  • fix(ble): fixed crash in btdm_controller_task

Hi JC00P3R,

für alle die vielleicht das gleiche Problem wie ich haben. Ich konnte jetzt zwei Punkte herausfinden,
bzw. einen Punkt und einen Workflow.

  1. Wenn man mehrere AP im Haus hat, kann es sein, dass beim versuch den AP zu wechseln, sich der Bluetooth Proxy verschlugt. Empfohlen wird das man das Springen unterbinden soll und den Proxy auf einen AP fest zu zuweisen.

Zu dem Workflow:

Ich konnte meine Konfig jetzt so anpassen, dass wenn 10 Minuten, keine Geräte mehr beim Scan gefunden werden, der Proxy einen Reboot macht. Mal schauen wie sich das die nächsten Tage verhält.

Hier eine meiner Konfigs:

substitutions:
  name: esp32-bluetooth-proxy-buero
  friendly_name: Bluetooth Proxy Büro
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
  # Der Watchdog startet beim Booten das erste Mal
  on_boot:
    - priority: -10
      then:
        - script.execute: watchdog_restart
api:
  encryption:
    key: xxx

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

# Der Watchdog-Mechanismus
script:
  - id: watchdog_restart
    mode: restart
    then:
      - delay: 10min
      - logger.log: "BLE-Scan eingefroren! Neustart..."
      - button.press: restart_device

button:
  - platform: restart
    name: "Restart"
    id: restart_device

# Ergänzung des BLE-Trackers aus dem Package
esp32_ble_tracker:
  on_scan_end:
    - then:
        - script.execute: watchdog_restart

Ich habe die Konfig seit 7 Tagen jetzt auf beiden ESP am laufen und bis jetzt haben beide 3 automatische Reboots gemacht. Meine Geräte waren aber immer Online wenn ich nachgeschaut hatte. Daher werde ich das jetzt so lassen. Ach ja, mit der Konfig habe ich mir auch einen Reboot-Schalter mit eingebaut. :wink: Somit könnte ich auch von unterwegs die ESP manuel durchstarten.

VG

1 „Gefällt mir“