-
Notifications
You must be signed in to change notification settings - Fork 29
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
cannot register new user #29
Comments
Not working even without the key, passing it on user input it's the same. |
https://pastebin.com/TSNQhyEb this is with DEBUG enabled. |
@nerdosity As I understand the debug log, the problem was that your smart lock was not discovered while scanning for nearby Bluetooth devices. Your smart lock has a MAC address starting with "00:1a:...", but no such device shows up while scanning. Two possible reasons instantly come to my mind:
|
I currently assume this is not an actual bug, but it would clearly be better if there was a timeout and a meaningful error message if the smart lock cannot be discovered for some reason. |
Hi, I tried again yesterday. I can consistently scan for the EQ3 lock, but this issue persists. |
It definitely doesn't seem to be bluetooth permission issue. I'm afraid I currently have no other idea what might be causing the problem. As I said, the debug log you posted indicates that the problem is that the device running keyble is not receiving any BLE advertisements from the smart lock. However, it does receive BLE advertisements by a number of other BLE peripherals, so the BLE scanning generally seems to be working. What you might try is installing the free "nRF Connect" smartphone app (if you don't have it installed yet). Start it, place your smartphone next to the device running keyble, and make the NRF Connect-App run a BLE scan as well while you're trying to register a new user via keyble. Check if your smartphone shows the smart lock when you scan for BLE devices. |
Same issue here: trying to get a new user registered with no success. I went through the detailed installation manual and also tried it as root user.
|
@magisternavis @oyooyo Could this be somehow related to this issue? |
Unfortunately not since I’m running homebridge on a raspberry 3B+. My web client is indeed a Mac but with Big Sur not Monterey. The software is on a raspberry. |
Here's a few things you could try:
DEBUG=* keyble-registeruser <args...> Debug output should hopefully provide some hints about the problem. But don't post the raw debug output here, as it might contain information that you do not want to publish. Remove information that looks like MAC addresses or the "card key" for example. Posting the actual data being sent between the computer and the smart lock shouldn't pose a security problem though.
|
Same Problem here: DEBUG=* keyble-registeruser -n Pihole -q **********
Press and hold "Unlock" button until the yellow light flashes in order to enter pairing mode
Registering user on Smart Lock with address "**************", card key "***********" and serial "***********"...
Error: ENODEV, No such device
at Hci.init (/usr/lib/node_modules/keyble/node_modules/@abandonware/noble/lib/hci-socket/hci.js:121:20)
at NobleBindings.init (/usr/lib/node_modules/keyble/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:93:13)
at Noble.get (/usr/lib/node_modules/keyble/node_modules/@abandonware/noble/lib/noble.js:73:26)
at /usr/lib/node_modules/keyble/node_modules/simble/simble.js:130:13
at new Promise (<anonymous>)
at ensure_noble_state (/usr/lib/node_modules/keyble/node_modules/simble/simble.js:129:9)
at Object.scan_for_peripheral (/usr/lib/node_modules/keyble/node_modules/simble/simble.js:593:9)
at Key_Ble.ensure_peripheral (/usr/lib/node_modules/keyble/keyble.js:863:19)
at Key_Ble.ensure_connected (/usr/lib/node_modules/keyble/keyble.js:887:17)
at Key_Ble.send_message (/usr/lib/node_modules/keyble/keyble.js:841:73) {
errno: 19,
code: 'ENODEV',
syscall: 'bind'
} I tried this on my main PC and also on my Pihole with the same result as above. |
Strange error. Sounds to me like the noble library was for some reason unable to find/access any Bluetooth adapter it could use. |
Sorry but I cant do anything with this result 😀
Tried with same result
No app is connected. I can see the KEY-BLE as well as when doing a
same issue after placing raspberry 1cm away from key lock . |
I just tried it again as well unfortunately the same issue :( |
Was just trying to register the lock to a new Zero 2 and unfortunately ran into the same issue. Staying at the mentioned output forever :-( Raspi is located 50cm from the lock, no other app / connection is using it. |
The problem still persists for me unfortunately. |
Perhaps this problem is unrelated to keyble and I'm afraid that the Eqiva eQ-3 Bluetooth smart lock has an internal firmware limit to register new users. In fact, I happened to find a similar problem with the App (iOS and Android), when registering the same devices on new smartphones: the error message produced by the app when pairing the new smartphones notified the impossibility to add a new user before first deleting another one. Maybe this is because the App in certain occurrences is reusing the same user, or maybe because of the number of registered users. As I do not think that there is a way to manage and remove users saved in the device, the only mode I found to fix the issue was resetting all impacted devices to the factory settings through the instruction manual and then registering again all mobile phones. |
I doubt that, because I also had this error and did a reset it removed all users and I could add users via smartphone but not |
I agree with @phrogg . |
OK so it was a different problem, thanks for the feedback |
Same. My smart lock was bought after I decided to use it with keyble, so it had just 2 or 3 users. |
Es scheint das es ein Problem mit dem Raspberry PI B+ ist. Ich habe und Virtual Studio, Node und co auf Windows 11 installiert. Hier konnte ich den User Problemlos aktivieren! Somit ist für mich das Problem nun behoben. Jedoch nun die nächste Baustelle. Die Daten werden mir im MQTT Broker nicht eingelesen. Das ist aber eine andere Sache! |
Ach das ist ja mal eine interessante Frage ob es an der Hardware liegt. Hat jemand von euch schon mal eine neuere verwendet? |
How exactly did you do that? I tried this with my linux systems and had no luck setting it up... |
Nur um noch mehr dem PI die Schuld in die Schuhe zu schieben. This really seems to be an issue with the build-in Bluetooth of the PI.
keyble only works intermittently/rarely with the build-in Bluetooth. After disabling the internal Bluetooth and using an external USB Bluetooth dongle no more problems. |
Hi,
Just installed in VM on Synology, but this happened to me on Raspberry Pi3 2 yeas ago.
Croot@debian-nodejs:~# keyble-registeruser -n keyble -q M001ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNEQXXXXXXXXX Press and hold "Unlock" button until the yellow light flashes in order to enter pairing mode Registering user on Smart Lock with address "00:xx:xx:xx:xx:e9", card key "xxxxxxxxxxxxxxxxxxxxxxxxxxx" and serial "NEQXXXXXXXX"...
And it stay like this forever.
Running everything with root.
The text was updated successfully, but these errors were encountered: