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 #9

Closed aroberts16 closed 1 year ago

aroberts16 commented 2 years ago

Describe The Bug:

Unable to start with homebridge due to login failure.

Logs:

Error: Login failed: Login Failed Captcha Required at DaikinCloudController.login (/usr/local/lib/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/index.js:495:23) at processTicksAndRejections (node:internal/process/task_queues:96:5) at DaikinCloudPlatform.initiateDaikinCloudController (/usr/local/lib/node_modules/homebridge-daikin-cloud/src/platform.ts:106:9) at DaikinCloudPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-daikin-cloud/src/platform.ts:39:29)

Environment:

JeroenVdb commented 2 years ago

@aroberts16 this plugin uses the daikin-controller-cloud library to access the (unofficial) Daikin API. Sometimes Daikin will request a captcha to be solved before the calls work. You can follow these steps provided by the library to get past this captcha: https://github.com/Apollon77/daikin-controller-cloud/tree/01836ba64fba07c4d63207dd7b501bff3f10b5e2#login-with-e-mailpassword

I had this myself as well the first time. I managed to follow the steps and was never asked for the captcha again. Hope this helps.

aroberts16 commented 2 years ago

How do I start the proxy?

JeroenVdb commented 2 years ago

If I remember correctly:

Modify example/example.js and change the value of proxyOwnIp in the options object to the ip of your computer.

Then run the script: node example/example.js and open the website: http://<ip-of-your-computer>:8889. Follow the steps to login via this website with Daikin Cloud.

More information: https://github.com/Apollon77/daikin-controller-cloud/blob/01836ba64fba07c4d63207dd7b501bff3f10b5e2/PROXY.md

aroberts16 commented 2 years ago

I tried that and I still get the captcha error.

JeroenVdb commented 2 years ago

In that case I'm afraid I can't really help you. The API is not supported by Daikin AFAIK so we can't really log a ticket for this.

I would suggest to maybe try the proxy thing again a few times and hope they don't ask the captcha again after a while. Maybe also put the output of the example.js script here. Maybe we can have a look what goes wrong.

JeroenVdb commented 1 year ago

@aroberts16 I hope you where be able to get this working. Will close this for now. If you need extra help you can just put a comment here.