Features Wishlist
add bluetooth proxy as option
What would you like to add
Can you add an option to enable the Bluetooth proxy in ESPHome? Would be very useful in combination with https://github.com/agittins/bermuda for tracking persons and devices in the house.
How this relates to Home Assistant
Creates new options for presence detection
Pictures, mockups, or examples
No response
Before submitting
- I searched the existing issues and this has not already been requested
Discussion 11
Add a commentDid you try to add this line in the override yaml? bluetooth_proxy:
Original on GitHub
@govido that will do the trick right? :)
Original on GitHub
Will try! These screens are the perfect candidates to base room presence tracking om.
Original on GitHub
Just tried it, but I can't get it to work. After flashing it seems it rolls back the OTA. I see this in the ESPHome logs:
This is the config I used in the override yaml to setup bluetooth proxy:
Original on GitHub
Just did a serial flash using the above override config and that worked. But now I get a crash.
Crash log
ESP32-S3 crashes immediately after
setup()completes:Original on GitHub
Running with only
esp32_ble_tracker:it starts but still hangs on connecting to the wifi.I guess this is a memory issue. I see this for the memory:
Is there anything we can do to free up some memory to enable it running bluetooth_proxy on the side?
Original on GitHub
Thanks for trying this and for posting the numbers, that makes the cause clear.
Those figures are the key: with only
esp32_ble_trackeradded, the chip is down to 4.8 KB of free internal memory with a largest block of 2.5 KB. The 5 MB of PSRAM does not help here, because the Bluetooth stack, Wi-Fi and the network stack all need the memory inside the chip itself. On these RGB screens that memory is already fully spoken for: Wi-Fi cannot move to PSRAM without breaking the picture, and cutting its buffers made the connection to Home Assistant stall. So this is not a matter of trimming a few kilobytes, the gap is far larger than what can be freed.There is also the radio. Wi-Fi and Bluetooth share one antenna, and an active proxy spends a good part of its time scanning. That time comes out of the Wi-Fi link the screen depends on for layouts, pictures and staying connected, so even with enough memory the screen would get noticeably worse.
For that reason I am not going to add Bluetooth proxy as an option. For Bermuda I would recommend a separate plain ESP32 as a proxy: it costs a few euros, runs the stock ESPHome Bluetooth proxy firmware, and you can place it where reception is best for presence tracking, which matters more for Bermuda than the screen's location.
The override YAML stays yours to experiment with, of course, but I can't support this combination.
Got a screen running? Tell others which board you have and what works on the Tessera website. It helps everyone pick a screen that works.
Like my work? Consider buying me a coffee, much appreciated!
Original on GitHub
Also requested in GitHub issue #129
What would you like to add
Is possible to add bluetooth proxy? Thanks
How this relates to Home Assistant
Device tracker
Pictures, mockups, or examples
No response
Before submitting
Original on GitHub
This was already tested and in the issues, and for multiple reasons, this is not an option, sorry! You can dig throug the discussion if you want to know why.
Original on GitHub
Actually, it is possible on the P4 boards.
I got it working on my large Guition display using this config:
@MaxGramser I think it would be a good idea to add the last part for updating the ESP32C6 co-host to the default ESP32P4 firmware as it improves general WiFi and Bluetooth performance of the boards that use this co-hosted setup.
Original on GitHub
Made PR for the co-host update code: https://github.com/MaxGramser/homeassistant_espscreen/pull/140
Original on GitHub