homebridge-homekit-controller icon indicating copy to clipboard operation
homebridge-homekit-controller copied to clipboard

Process gets stuck after entering pairing pin

Open askovi opened this issue 5 years ago • 14 comments

It discovers my Homekit devices just fine then I select one, I enter the Homekit pairing pin of the device and press enter and it just sits there indefinitely doing nothing. I can't even ctrl+c to cancel the process, or anything, it's just stuck.

askovi avatar Feb 16 '20 02:02 askovi

thanks for your report, the pairing process is taking long time, could you try again and wait for about 5 minutes?

MartinPham avatar Feb 16 '20 09:02 MartinPham

it'd be great if you could provide more detail about your homekit device

MartinPham avatar Feb 16 '20 10:02 MartinPham

I am also running into this problem - trying to connect a few switches, five Leviton Decora DH15S and one Ecobee Switch+. Starting with the Switch+, since I definitely know the code for that.

Message I'm getting is: UnhandledPromiseRejectionWarning: M2: Error: 6 (node:1836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:1836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Then it freezes up like askovi mentioned.

rds217 avatar Feb 16 '20 21:02 rds217

Thanks for your response. When you guys entered the code, did you add also the dash - character?

MartinPham avatar Feb 17 '20 12:02 MartinPham

Like 123-45-678, instead of 12345678

MartinPham avatar Feb 17 '20 12:02 MartinPham

I did include the dashes, and I’m sure I tried it without them either. I also waited what I thought was a sufficient amount of time (>10 min) after each try. Anything else I should try?

On Feb 17, 2020, at 07:41, Martin Pham [email protected] wrote:

 Thanks for your response. When you guys entered the code, did you add also the dash - character?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

rds217 avatar Feb 17 '20 23:02 rds217

Thanks for your report, I'm trying to debug the error "M2: Error: 6".

MartinPham avatar Feb 18 '20 11:02 MartinPham

Do we need to reset the accessories before pairing?

halilaykent avatar Feb 23 '20 19:02 halilaykent

I also have M2: Error: 6 error

halilaykent avatar Feb 23 '20 19:02 halilaykent

Hope everything is going alright @MartinPham. I have some time to help troubleshoot these errors if you're available to work on the plugin. Otherwise, I think a workaround to achieve partial functionality would be to use the homebridge-dummy plugin to generate dummy switches for HomeKit devices, and then tie them together via automations. The dummy switches appear in homebridge and are linked to the physical devices. Your method is definitely more elegant and preferred.

rds217 avatar Apr 23 '20 16:04 rds217

Same error. More details:

Enter PIN for logi:95:C2 (XXX-XX-XXX): 999-99-999(node:1768) UnhandledPromiseRejectionWarning: M2: Error: 6
(node:1768) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1768) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

amaisano avatar Sep 10 '20 15:09 amaisano

FWIW, this fork works and can get past this step: https://github.com/L-C-P/homebridge-homekit-controller

amaisano avatar Sep 10 '20 15:09 amaisano

FWIW, this fork works and can get past this step: https://github.com/L-C-P/homebridge-homekit-controller

This didn't work for me. Did you do anything additional to get this working?

nambvarun avatar Sep 15 '20 08:09 nambvarun

"M2: Error: 6" means unavailable – most likely this means the device is already paired to HomeKit and, as HomeKit devices only support one association, the device is really unavailable.

I managed to get around "M2: Error: 6" by removing the device from HomeKit and then doing "homekit" (still having the device on my network). I got service and paringData JSON then. The accessories array doesn't have anything in it, though – there should be aid and iid for three switches.

jkreileder avatar Apr 04 '21 20:04 jkreileder