Skip to content
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

Closed
icanos opened this issue Dec 5, 2019 · 23 comments
Closed

noble warning: unknown peripheral #1

icanos opened this issue Dec 5, 2019 · 23 comments
Labels
bug Something isn't working

Comments

@icanos
Copy link
Owner

icanos commented Dec 5, 2019

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.

@icanos icanos added the bug Something isn't working label Dec 5, 2019
@icanos
Copy link
Owner Author

icanos commented Dec 10, 2019

Seems to be resolved in latest commit. Haven't seen this in five days (got it multiple times a day earlier).

@icanos icanos closed this as completed Dec 10, 2019
@axlthorell
Copy link

Just got this same error this morning. The log was full of noble warnings.
Haven't seen any more after a restart of the add-on.
I have automations set up within the plejd-app, could this be an issue?

@icanos
Copy link
Owner Author

icanos commented Dec 11, 2019

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.

@icanos icanos reopened this Dec 11, 2019
@axlthorell
Copy link

I will update all files and rebuild. Tomorrow we'll know if the error is back or not...

@axlthorell
Copy link

No errors this morning, looks like it's working now.

@icanos
Copy link
Owner Author

icanos commented Dec 12, 2019

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!

@axlthorell
Copy link

Just got the error again

noble warning: unknown peripheral d7a44a9ec40f
noble warning: unknown peripheral d7a44a9ec40f
noble warning: unknown peripheral d7a44a9ec40f
noble warning: unknown peripheral d7a44a9ec40f

And now the lights won't turn on/off.
After restarting the add-on it works again.

@icanos
Copy link
Owner Author

icanos commented Dec 12, 2019

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.

@axlthorell
Copy link

Had the same error this morning. Not sure what might be causing it.
Any update on debug logging?

@icanos
Copy link
Owner Author

icanos commented Dec 14, 2019

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 :)

@icanos
Copy link
Owner Author

icanos commented Dec 14, 2019

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.

@treet
Copy link
Contributor

treet commented Dec 14, 2019

Thank you for this great addon! I had the same issue this morning, will update right away and see if the stability has improved.

@icanos
Copy link
Owner Author

icanos commented Dec 20, 2019

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.

@Ludde157
Copy link

Hopefully helpful information.
I installed this app today, like 1 h ago.
The issue remains.

A huge thanks to you for your great work!

@icanos
Copy link
Owner Author

icanos commented Dec 21, 2019

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?

@Ludde157
Copy link

Hello,
It appeared directly after setup, like 10 minutes. I’ve tried to reload then it worked like 10 minutes more.
Yes, I run the 0.1.1 version

@icanos
Copy link
Owner Author

icanos commented Dec 21, 2019

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.

@Ludde157
Copy link

Currently I’ve got 4 Plejd devices.
I live in a 70 m2 appartment, so de Bluetooth signal should work.

I can send you a photo tomorrow how it looks like in the log

@Ludde157
Copy link

Hello again,
Here is a picture from my log.
Skärmavbild 2019-12-22 kl  18 16 32

@icanos
Copy link
Owner Author

icanos commented Dec 22, 2019

Does the add-on still work despite the messages in the log?

@Ludde157
Copy link

Unfortunately not, it could not find the entity.
I’m running my HA on a RPI 3B+ could that be the issue?

@Ludde157
Copy link

Entity is not available

@icanos
Copy link
Owner Author

icanos commented Dec 23, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants