JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
32 stars 10 forks source link

Login Failed Captcha Required #14

Closed jaredmoody closed 1 year ago

jaredmoody commented 1 year ago

I'm getting an error that a captcha is required, which then is crashing homebridge.

[7/21/2022, 12:44:22 PM] Error: Login failed: Login Failed Captcha Required
    at DaikinCloudController.login (/usr/lib/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/index.js:462:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at DaikinCloudPlatform.initiateDaikinCloudController (/usr/lib/node_modules/homebridge-daikin-cloud/src/platform.ts:106:9)
    at DaikinCloudPlatform.discoverDevices (/usr/lib/node_modules/homebridge-daikin-cloud/src/platform.ts:39:29)
JeroenVdb commented 1 year ago

This sometimes happens, I also had it this first time I tried to use the API. The package we use to connect to the Daikin API provides a solution to get past this captcha.

See: https://github.com/Apollon77/daikin-controller-cloud/#login-with-e-mailpassword

I already gave some extra information in another issue: https://github.com/JeroenVdb/homebridge-daikin-cloud/issues/9

Steps should be:

git clone git@github.com:Apollon77/daikin-controller-cloud.git
cd daikin-controller-cloud
npm install
cd example/tokensaver.js

Then browse to http://127.0.0.1:8889/ and click the "Login into the Daikin Cloud to retrieve the tokens" link. You don't need to follow the first steps.

Edit: use incognito mode to be sure.

I'm afraid you do need some technical knowledge to do this, hope you can get it working. Can you give me feedback if you succeeded and if we can improve the docs for these steps?

jaredmoody commented 1 year ago

Sorry, realized my issue is that I'm no the North America version :P

JeroenVdb commented 1 year ago

What do you mean exactly? Could you fix it? Trying to understand so we can help other users with the same problem as well.

jaredmoody commented 1 year ago

It looks like North America has a different API endpoint, I couldn't complete the instructions because I don't have an account on the site I was directed to. I was able to successfully get set up with this plugin.