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

State of the plugin? Pairing Errors. #1

Open
rcoletti116 opened this issue Sep 7, 2021 · 2 comments
Open

State of the plugin? Pairing Errors. #1

rcoletti116 opened this issue Sep 7, 2021 · 2 comments

Comments

@rcoletti116
Copy link

Just trying to find out the state of your plugin. It's a great concept and I see posts requesting similar functionality regularly! Thanks for the time in making this.

I've installed and tried it out. Discovery seems to work but the pairing fails on all devices with the same error:

(node:11449) UnhandledPromiseRejectionWarning: Error: M2: Error: 6
    at PairingProtocol.parsePairSetupM2 (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/protocol/pairing-protocol.js:173:19)
    at HttpClient.startPairing (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/transport/ip/http-client.js:64:37)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async HttpClient.pairSetup (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/transport/ip/http-client.js:102:34)
    at async /usr/local/lib/node_modules/homebridge-homekit-proxy/cli.js:134:17
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11449) 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:11449) [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.
@PetrKadlecCS
Copy link

PetrKadlecCS commented Oct 17, 2021

Hello,
I have the same issue:

Enter PIN for VOCOlinc-FLB-179912 (XXX-XX-XXX or XXXX-XXXX or XXXXXXXX): 996-14-325
Pin: 996-14-325
(node:12658) UnhandledPromiseRejectionWarning: Error: M2: Error: 6
at PairingProtocol.parsePairSetupM2 (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/protocol/pairing-protocol.js:173:19)
at HttpClient.startPairing (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/transport/ip/http-client.js:64:37)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async HttpClient.pairSetup (/usr/local/lib/node_modules/homebridge-homekit-proxy/node_modules/hap-controller/lib/transport/ip/http-client.js:102:34)
at async /usr/local/lib/node_modules/homebridge-homekit-proxy/cli.js:134:17
(Use node --trace-warnings ... to show where the warning was created)
(node:12658) 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:12658) [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.

Tested on Raspberry Pi 2B, Homebridge v1.3.5, Node.js v14.18.1, Npm v6.14.15.

I am ready for further tests if necessary ;).

@b2un0
Copy link

b2un0 commented Feb 9, 2022

got the same error but fixed it.

the device must be unpaired from your Home!

  1. add the device with Homekit (in my case, a Xiaomi Mi Smart Bedside Lamp 2 )
  2. the device is added to Home and WiFi
  3. remove device from Home
  4. device i still in WiFi
  5. now scan mit homekitPair and enter the pin
  6. you got the json file as explained

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants