Open myhomeiot opened 3 years ago
ble_client source ble_client issues ble_client recent changes (message by IssueLinks)
I can confirm the same behaviour as well when connecting to a switchbot curtain as 'server'.
I'm not sure that this behavior can be fixed soon, meanwhile I made component which will solves this problem. If anybody interested, the component can be found here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm not sure that this behavior can be fixed soon, meanwhile I made component which will solves this problem. If anybody interested, the component can be found here.
can't you issue a pull request?
can't you issue a pull request?
Unfortunately no, my component based on rewrites ble_client and can't work with regular ble_client simultaneously. From ESPHome version 2021.10 my component stops working because lot of changes in ESPHome BLE which I will try to fix when 2021.11 will be released.
@myhomeiot did you ever get this merged? Thanks!
@robloh No because it's out of the scope of regular BLE Client, if you want to have this functionality, you can use my component, some examples you can find here.
My component can co-exists with regular BLE Client, just take into account that current platform limit it's three BLE Client's and my component (MyHomeIOT BLE Host) take one slot but can work with many MyHomeIOT BLE Client's simultaneously, so if you have for example 5 MiFlora's you can read battery information without any problems.
BTW You can also have this functionality using regular BLE Client if you enable/disable it using BLE Client Switch but in this case you should remember about platform limitation of three BLE Client's.
Operating environment/Installation (Hass.io/Docker/pip/etc.): Ubuntu 20.04, esphome installed as Home Assistant addon.
ESP (ESP32/ESP8266, Board/Sonoff): ESP32, esp32dev
ESPHome version (latest production, beta, dev branch) 1.19.4
Affected component: ble_client sensor https://esphome.io/components/sensor/ble_client.html
Description of problem: ble_client sensor keep connecting after disconnect even huge update_interval, this drain the battery of device, I expect that sensor will connect according update_interval
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: I tried to change notify and update_interval