myhomeiot / esphome-components

A collection of my ESPHome components
Other
249 stars 23 forks source link

BLE Gateway and BLE Client stopped working after ESPHome update #26

Open czesiu20 opened 8 months ago

czesiu20 commented 8 months ago

After update my ESP32 device from 2023.10.6 to 2023.11.2 both ble_gateway and myhomeiot_ble_client stopped working. The compilation process was successful, without any errors. The log shows neither received packets nor client connections. It shows nothing... silence...

I'm using the device to read Mi Flora (HHCCJCY01) and Hygro thermometer clock (LYWSD02). Ble client is used to read the battery status of Mi Flora.

myhomeiot commented 8 months ago

Looks like ESPHome 2023.11.x version has something wrong with new BLE enable/disable changes. Let's wait for next version like 2023.11.3 and if problem persist, I will take a close look.

myhomeiot commented 8 months ago

@czesiu20 The origins of the problem this fix. Please try new release and let's me know. PS: The new release will work for older ESPHome as well.

czesiu20 commented 8 months ago

Thank you for the fix. Ble Gateway is working great, but the client is not. I had to remove the client, cos the device seems to be dead.

myhomeiot commented 8 months ago

BLE Gateway works without any changes, the problem was in BLE Host and this problem kill ESP BLE stack. I doesn't check it with framework: arduino but with esp-idf everything should works. esp-idf framework save a lot of memory so BLE works much stable. If you configuration allow to use esp-idf framework please try it and let's me know.

czesiu20 commented 8 months ago

Nope. Doesn't work...