Apollon77 / daikin-controller-cloud

Connect and Control Daikin Cloud devices
MIT License
96 stars 26 forks source link

Creating a Openhab AddOn connecting to Daikin Cloud Onecta. #113

Closed adr001db closed 1 year ago

adr001db commented 1 year ago

Hello Apollon77.

I'am building a AddOn for OpenHAB so that connecting with Daikin Onecta is possible. Currently I generated a accesstoken with your work daikin-controller-cloud. And that works great. With this token its now posible to read data of all connected units into OpenHAB.

I'm just having some trouble figuring out how the code works to retrieve the token using login details. Can you help me getting some documentation or give me some hints how this login proces works? What are the steps from userid/password to the accessToken.

thanks in advance for your help.

Alexander

Apollon77 commented 1 year ago

Sorry that I can not help more but in fact the code is the documentation. This library contains a proxy approach but also a way with multiple requests in https://github.com/Apollon77/daikin-controller-cloud/blob/main/index.js#L304 . as YOu can see there it is a flow of web requests with parameters and storing and reusing (some) cookies and such fun stuff. This "is" the documentation. Sorry I do not have more then this.