Drolla / WavePlus_Bridge

Airthings Wave Plus Bridge to Wifi/LAN and MQTT
MIT License
21 stars 9 forks source link

bluetooth connection issues after some time - with easy workaround ? #24

Open Robert-Riedl opened 2 months ago

Robert-Riedl commented 2 months ago

I have now currently 3 devices that are being read with the Bridge and have run in a strange issue - sometimes some devices stop responding (not always the same one, though some more often than others).

But its immediately fixed with restarting the waveplus bridge python script.

so for now, I just have a cronjob that restarts it hourly...

I realize this is difficult to diagnose, with all the variables of different hardware, range and bluetooth in general... maybe you have some idea though ?

Robert-Riedl commented 2 months ago

i've disabled my workaround to capture the logoutput:

2024-04-12 15:15:23 -      __main__[  DEBUG] - Reading sensor data for device schlafzimmer
2024-04-12 15:15:23 - libs.waveplus[WARNING] - Failed to communicate with device                                schlafzimmer (attempt 1 of 4): Helper not started (did you call connect()?)
2024-04-12 15:15:24 - libs.waveplus[WARNING] - Failed to communicate with device                                schlafzimmer (attempt 2 of 4): Helper not started (did you call connect()?)
2024-04-12 15:15:25 - libs.waveplus[WARNING] - Failed to communicate with device                                schlafzimmer (attempt 3 of 4): Helper not started (did you call connect()?)
2024-04-12 15:15:25 - libs.waveplus[WARNING] - Failed to communicate with device                                schlafzimmer (attempt 4 of 4): Helper not started (did you call connect()?)
2024-04-12 15:15:25 -      __main__[  ERROR] - Failed to communicate with device schlafzimmer: Failed to communicate with device 2930223305/schlafzimmer