There’s an in-progress Pinecil integration here: GitHub - t3chguy/pinecil_ble: Integrates Pinecil v2 soldering iron into HomeAssistant via BLE
It needs an active connection (seemingly ActiveBluetoothCoordinator
) to permit HA to update settings (such as the target temperature), however, the device stops advertising once an active connection is made, meaning there’s no (obvious) way to trigger another polling event.
This is unfortunately a limitation in the firmware that’s got no ETA for a fix.
Is there a way to force periodic polls of a BLE device when using ActiveBluetoothCoordinator
instead of waiting on a advertisement to trigger one? Until/unless the device is connected, it does send data as advertisements, so it at least (sometimes) should be using one of the dedicated BT coordinators instead of DataUpdateCoordinator
.
Is there a solution here?
Looks like you want the third option instead
Also be sure to close stale connection in setup. Example in yalexs-ble integration and switchbot
Thanks for the reply. I meant to say ActiveBluetoothCoordinator
in my post above. I’ll edit for clarity.
You’re saying that DataUpdateCoordinator
is the right one to use? Based on the doc, that seemed wrong since the device does do advertisements of all sensors until/unless an active connection is made. The active connection is only required for controlling the device though. I’d imagine it’s preferable to not make an active connection unless HA is actually trying to change the settings, and was hoping that it was achievable.
For that use case ActiveBluetoothCoordinator
is probably fine as long as you disconnect right after you poll for data so it starts advertising again.
xiaomi_ble does this for the plant sensors to get the battery state