Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bootloop with BLE configuration #108

Closed
Tkong1 opened this issue Jan 20, 2023 · 1 comment
Closed

[BUG] Bootloop with BLE configuration #108

Tkong1 opened this issue Jan 20, 2023 · 1 comment

Comments

@Tkong1
Copy link

Tkong1 commented Jan 20, 2023

Describe the bug
If i am trying to extend your example.yaml configuration with BLE to track some temperature sensor (xiaomi_ble) it results in a boot loop after flashing the compiled firmware to device.

To Reproduce
Steps to reproduce the behavior:

  1. use your example.yaml configuration as base
  2. extend the configuration with "esp32_ble_tracker:" below the wifi configuration
  3. compile the configuration file with esphome (version 2022.12.3)
  4. flash the firmware.bin to the device using serial or ota
  5. ota update successfull, lamp is switching the color
  6. the device does not connect to HA. It seams that the device is in a boot loop.

Expected behavior
The device boots up like before only with ble tracker hub available. The device connects to HA and the lamp can be switched on.

Additional context
If i remove the "esp32_ble_tracker" from the configuration, build and flash via ota the boot is successful.
From esphome cli:
INFO Resolving IP address of bedside-lamp.local
INFO -> 192.168.178.86
INFO Uploading .esphome/build/bedside-lamp.pioenvs\bedside-lamp\firmware.bin (1222320 bytes)
Uploading: [============================================================] 100% Done...

INFO Waiting for result...
INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from bedside-lamp.local using esphome API
WARNING Can't connect to ESPHome API for bedside-lamp.local: Error resolving IP address: [Errno 11001] getaddrinfo failed
INFO Trying to reconnect to bedside-lamp.local in the background

@mmakaay
Copy link
Owner

mmakaay commented Jan 23, 2023

This is a duplicate of #96

Unfortunately, this seems to be a limitation of the single-core-dness of the MCU that is used for this device. I never got this to work.

If there are options to get this to work on this hardware, then it's probably best to file a feature request with the ESPHome project, because it would probably be something to fix in that level of the stack.

I'll leave this issue open for now. Best I can do is probably to add a remark to the documentation to not use this component and/or see if I can prevent the use of the component by aborting the build process.

@Tkong1 Tkong1 closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants