andriilahuta / hass-dbus-bluetooth-tracker

D-Bus API bluetooth tracker for Home Assistant.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Error log #1

Closed Bergasha closed 11 hours ago

Bergasha commented 2 weeks ago

Hey mate, Just adding the log for when Bluetooth stops working. you'll see towards the bottom of the log file on the 2024/09/01 at around 14:51 is when it drops out. Thanks for checking this out. Cheers home-assistant.log

andriilahuta commented 1 week ago

Try setting lower timeout here, 2 sounds reasonable. Not sure this will help but worth a shot.

Bergasha commented 1 week ago

Done, I ended up setting it to 3, When set to 2 it picked up Android phones but not iPhones. I will report back with the results. Thanks mate.

Bergasha commented 1 week ago

No luck, Drops out at 10:16 home-assistant.log

Bergasha commented 1 week ago

@andriilahuta So I went the other way and set connect_timeout to 7. It has now been over 24 hours with no dropouts. (This is the longest I have ever had.) I will keep monitoring for a few days, and if successful, I'll comment on the main post with the fix and results. Thanks heaps for your help so far.

andriilahuta commented 1 week ago

That's interesting. If it works out for you then I could make this timeout configurable.

Bergasha commented 1 week ago

So nearly 3 days and a few reboots later and still no dropouts. We can safely say this fixes the issue, I have noticed (Error: org.bluez. Failed) throughout my logs but it seems to not effect it running at all.

andriilahuta commented 1 week ago

Great! I've added a new device_connect_timeout option in the main branch, so you can just set it in the config file now.