-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noble warning: unknown peripheral #1
Comments
Seems to be resolved in latest commit. Haven't seen this in five days (got it multiple times a day earlier). |
Just got this same error this morning. The log was full of noble warnings. |
Could you make sure that all files are updated to the latest from the repo? Automations shouldn't be an issue and the HA add-on should reconnect if the connection is lost. |
I will update all files and rebuild. Tomorrow we'll know if the error is back or not... |
No errors this morning, looks like it's working now. |
Glad to hear, I’ll leave the issue open for a few days to really test it. Haven’t I heard anything by Monday I’ll close it. Thanks! |
Just got the error again
And now the lights won't turn on/off. |
That’s strange, I haven’t seen that since I closed the issue but have been testing another possible solution since yesterday. I’ll push that to the repo soon for more testing, I’ll also add RSSI of the connected device in the log to help debug the issue. |
Had the same error this morning. Not sure what might be causing it. |
I'm currently reworking some connection handling since it seems too unstable. I should have a new version later today with more debug logging too :) |
I've pushed some new code to the master branch, containing quite a lot of changes both in the ble handling as well as some more verbose logging in the api section as well. Hopefully this resolves any issues we've seen with the unknown peripheral message. At least I've found where that message is thrown: https://github.com/abandonware/noble/blob/master/lib/hci-socket/bindings.js#L366 Which suggests that the BLE module somehow looses track of the peripheral its connected to. Need to investigate a bit more though, but hopefully it works better with the fixes I've implemented anyway. |
Thank you for this great addon! I had the same issue this morning, will update right away and see if the stability has improved. |
I’ve been running 0.1.0 since yesterday with no interruptions or anything. Plejd has been working for > 24h now, which it didn’t prior to 0.1.0. I think the rewrite of the ble layer really paid off. |
Hopefully helpful information. A huge thanks to you for your great work! |
Did the warning appear multiple times or just once? Is it the exact same as provided in the thread or does it contain more information? Are you running 0.1.1 of the add-on? |
Hello, |
Is the device running the add-on far away from a Plejd device? I've been running 0.1.1 for 3 days now without interruption of any kind. |
Currently I’ve got 4 Plejd devices. I can send you a photo tomorrow how it looks like in the log |
Does the add-on still work despite the messages in the log? |
Unfortunately not, it could not find the entity. |
Entity is not available |
RPi 3B+ should not be an issue. I don't have that much to go on in this case. I have a new version coming up in a couple of days. Please try that, and if it still doesn't work, please open a new issue. Thank you |
The log gets spammed with:
noble warning: unknown peripheral
What I've been able to read up on, this occurs when a peripheral disconnects and we try to do some voodoo magic against it anyway.
Try to find out where, what I can think of is the ping functionality.
The text was updated successfully, but these errors were encountered: