Closed mwolter805 closed 3 years ago
Hey there @buxtronix, mind taking a look at this issue as it has been labeled with an integration (ble_client
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
It looks like some security authentication is required before reading these values. The working sketch seems to implement this:
https://github.com/1mckenna/esp32_iGrill/blob/main/esp32_iGrill.ino#L471
It seems to have both BLE pairing as well as some custom challenge protocol, which would need to be implemented in a custom component.
Thanks for looking into this. Seems like most of the code can be used to make a custom component. I've made several Arduino projects but never an ESPHome component. Are there documents I can follow or a project you'd recommend as a template or guide?
This is a good external BLE component example that can show what's required:
Thank you
@mwolter805 Did you manage to get this working? I previously tried this, but couldn't get any of the temperature sensors to return data.
https://github.com/esphome/feature-requests/issues/792 for reference
Currently do not have this working with ESPHome. The ability to write BLE commands was recently added (or will be shortly). This should help greatly.
The problem
When decoding BLE from a Weber iGrill2, only the first temperature probe is reported. The remaining three probes and the battery are not available (entities are unknown in HA).
Which version of ESPHome has the issue?
2021.8.1
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
2021.8.6
What platform are you using?
ESP32
Board
Olimex ESP32-POE
Component causing the issue
BLE_CLIENT
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
Wifi is not enabled as this board has PoE. Verified the board has not run out of heap. BLE does appear to be working properly with the board as the xiaomi_lywsd03mmc platform reports values correctly.
Complete Logs at Very Verbose: Olimex ESP32-POE iGrill2 Very Verbose 210904.txt.zip
Link to working ESP32 Arduino sketch for the Weber iGrill2: https://github.com/1mckenna/esp32_iGrill/blob/main/esp32_iGrill.ino