myhomeiot / esphome-components

A collection of my ESPHome components
Other
257 stars 25 forks source link

Don't working on ESPHome v2021.9.0, need downgrade #1

Closed AlexQuaken closed 2 years ago

AlexQuaken commented 2 years ago

Don't working on ESPHome v2021.9.0, need downgrade

myhomeiot commented 2 years ago

Thanks for information, I already aware about this problem and looking for a fix which will work for 2021.9 and earlier versions.

myhomeiot commented 2 years ago

I think this change the source of the problem, as_hex_array was replaced by as_reversed_hex_array, not sure how the regular ESPHome BLE Client will works with it, but will see in future releases.

The problem was fixed in 1.0.1 please update and let's me know if everything works as expected. Thanks in advance.

AlexQuaken commented 2 years ago

Still not working (( see attached logs

log.txt

and used package 5mi_band_battery.yaml.txt

myhomeiot commented 2 years ago

Log file shows that it's can't connect, sometimes it's happened, let it working for few hours and see.

myhomeiot commented 2 years ago

If your case required (device tracking, etc) to specify too small scan_parameters -> duration and in the log you will see "ESP-IDF BLE scan never terminated, rebooting to restore BLE stack..." slightly increase duration until ESP stop restarting.