Hi All,
I had the same problem you are facing and I am now working in a concept that can integrate the Daikin Cloud API on any platform.
I am using NodeRed to call the Daikin API.
Next step is to publish the retreived values from daiking on MQTT so any platform can ingest from there.
It is not finished yet but here are the steps of this concept.
1. Create an account in the developer portal of Daikin.
2. Create an app.
3. Use Postman to make the first connection using OpenID. The return URI used is
https://oauth.pstmn.io/v1/callback (select the option Authorize using browser.
Once this is done you can get the first acces token and refrersh token.
From here you can use "normal" https calls to refresh the access token. I created a sqlite database where I store the Access token and refresh token. This access token I can use in NodeRed the call the api functions of the daikin api. When the access token is expired I can call
POST
https://idp.onecta.daikineurope.com/v1/oidc/token?
grant_type=refresh_token
&client_id=[YOUR_CLIENT_ID]
&client_secret=[YOUR_CLIENT_SECRET]
&refresh_token=[YOUR_REFRESH_TOKEN]
In nodeRed I can build this URL using the client_id and client_secret of the created application and the refresh_token I stored into my database.
The response is a new access token that can be used to make new calls to the api. And so on.
So this is not a shippable solution but I have the concept working. When I am finished with my project I can try to upload that here.