Open bipsendk opened 2 years ago
Hi @bipsendk,
This component does not keep the BLE connection open, it only checks on the device from time to time, so implementing the LED indication exactly as you've described doesn't seem possible.
You can try configuring https://esphome.io/components/status_led.html to get some indication of the current status. I haven't tried it myself, but at the moment component will set STATUS_LED_ERROR
when incorrect PIN is provided for a PIN-protected device.
Let me know if that would work for you and I can extend the usage of status API, e.g. set warning status, when connection to the device failed and clear it on the next successful connection.
I tried to configure logging to debug and enable web interface on the ESP32 ... For some reason, the TCP connections is lost when the ESP tries to query via BLE ... And I sometime also see BLE connection error 133 (as far as I remember), which apparently could indicate something like "too many connections" ..
I will try to see if I can connect a host to the USB/Serial port and get the log that way around (instead of through the wireless interface) - to see if any usefull messages might pop up somewhere..
Would it be possible to configure 2 GPIO pins for LED indicators ?
E.g. if no connection to the Danfoss device, flash a LED on a configurable GPIO for 50 msec every 10 seconds
And when connection is established, light up a GPIO for 3 seconds - and then use the same pin to flash for 20msec e.g. every 60 seconds
This will give a visual indicator of whether the device has connection to the Danfoss device via BLE or not...