-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error: M2: Accessory LTPK not yet set #3
Comments
I'm getting this error as well.
|
Any update |
Thanks @MattB1981, @masonjmiller & @sabya14 for reporting the issue! |
I have the same issues when I try to connect my nanoleaf shapes |
I have the same error |
Version |
tested now, and I am getting this error...and your solution is very dangerous as I have many items under aquara hub and removing from home app will create more problems for me. How to tackle this without removing from home? if you get the error M2: Error: 6: Add the device to your Homekit |
@fate8383 Thanks for testing! |
Not really, yes they are aded to home app, but not to homebridge before or now. I want to add them to homebridge this is the whole point of using this plugin. How can I do that? I don't want to remove them from home app as suggested in the solution, I just want to add them to homebridge that's all. |
@fate8383 HomeKit accessories are designed to be paired only to one device at a time, if you want to pair them to a new device (in this case to Homebridge using this plugin) it has to be unpaired first to be able to pair it to the new device. I'm doing that with all my HomeKit devices to be able to control them using other plugins (f.e. Google Home) alongside HomeKit ;) |
Hi minamoanes, Clearly I'm doing something wrong here. I'm getting the error aswell even after deleting the HomeKit-devices. Clean image > updated and installed the plugin: Error message: Error: M2: Accessory LTPK not yet set Node.js v18.12.1 Can you tell me what I'm doing wrong here? Cheers, |
Hey @Viskuh, |
@Viskuh Could you try disconnecting your HomeKit accessory from the power source and then reconnecting it? Sometimes, even after being removed, the accessory can remain connected to your Home App, which can cause this plugin to fail in obtaining the Accessory LTPK. |
Hi minamoanes, Btw; disconnecting the accessory from the power source and reconnect it doesn't have effect. It was worth to try :). If you need anything to troubleshoot further don't hesitate to contact me. Viskuh |
Hi, |
Hello! I'm also having the same issue with version 0.2.1. I'm trying to pair the Aqara FP2.
Also tried rebooting the device but same result after. I was super excited to try this plugin and see if I could get the FP2 into homebridge and do some cool stuff with it from there. |
I want to add this as well. Probably nothing but it looks a bit weird at least. So I get this in the terminal:
The pin for that device is in the format XXXXXXXX I put in for example 12341234 Terminal outputs:
Guessing this is not the problem since the error does not talk about wrong code but just just thought it wouldn't do no harm mentioning it. Edit: I tried putting in the wrong pin now as well and I get the same error code as before: |
I'm also getting this error in 0.2.1. I follow the instructions in https://github.com/minamoanes/homebridge-homekit-control#how-to-fix-known-errors `/var/lib/homebridge/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415 Error: M2: Accessory LTPK not yet set I see above you said this means the device wasn't paired to Homekit properly the originally, but from what I can tell it was working perfectly before I removed from Home. In my case, the device is a Bridge coming from Homespan https://github.com/HomeSpan/HomeSpan |
There must be an issue with the homekitPair as homekit app from homebridge-homekit-controller does pull the values correctly. Enter PIN for Garage Opener_D9481A (XXX-XX-XXX): 826-68-266 |
Got the same issue while trying to pair my ecobee. I have no idea what the following piece of code does in homekitPair, but removing it solved the issue for me since I haven't found anything like that in hap-controller IP pairing example.
...would be great to know what that is, though =) |
@bytestorm thanks for your feedback and support. I've released a beta version called The purpose of this code was an attempt to fix a warning with the Homekit accessories related to characteristics, but then I forgot to remove it somehow, feel free to read more about that here: |
better now =) ...but (sorry, forgot to mention that I had this issue too):
so, in order to fix this:
sorry, I'm too lazy to create a PR since I'm currently hacking my way through to make "hey siri" work on that ecobee while having HB control over it |
@bytestorm That absolutely makes sense ;) thank you once again! Let me know how it goes ;) |
works like a charm =) |
|
I've tried two different accessories and gotten this error for both of them. One was a lamp and the other is a tcl TV.
This is the output after I enter the pin.
/usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415
throw new Error('M2: Accessory LTPK not yet set');
^
Error: M2: Accessory LTPK not yet set
at PairingProtocol.parsePairVerifyM2 (/usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/protocol/pairing-protocol.js:415:19)
at /usr/lib/node_modules/homebridge-homekit-control/node_modules/hap-controller/lib/transport/ip/http-client.js:237:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
The text was updated successfully, but these errors were encountered: