Closed sasojadrovski closed 4 weeks ago
I would think this is unrelated to the update. Can you revert back to the normal version and try again? If you want to refresh your refresh and access token you can do this: https://github.com/JeroenVdb/homebridge-daikin-cloud?tab=readme-ov-file#access-token-or-refresh-token-is-revoked
@JeroenVdb Thank you for your prompt reply!
I already reverted back to v2.5.0
, but the issue persists. I will once again update to the latest version and then try refreshing the token using your suggestion. Will update you in a few minutes.
Thanks!
Just updated the plugin to v2.6.0-beta.3 again, and the problem seems to be resolved. Here are the logs. To be honest, I am not sure what caused it in the first place...
[8/14/2024, 12:47:47 PM] [homebridge-daikin-cloud] Restarting Process...
[8/14/2024, 12:47:48 PM] [homebridge-daikin-cloud] Launched child bridge with PID 841628
[8/14/2024, 12:47:48 PM] Registering platform 'homebridge-daikin-cloud.DaikinCloud'
[8/14/2024, 12:47:48 PM] [homebridge-daikin-cloud] Loaded homebridge-daikin-cloud v2.6.0-beta.3 child bridge successfully
[8/14/2024, 12:47:49 PM] Loaded 2 cached accessories from cachedAccessories.0EC7169C9E17.
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Loading accessory from cache: Emura
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Loading accessory from cache: Stylish
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] --- Daikin info for debugging reasons (enable Debug Mode for more logs) ---
[8/14/2024, 12:47:49 PM] Homebridge v1.8.4 (HAP v0.12.2) (homebridge-daikin-cloud) is running on port 59604.
[8/14/2024, 12:47:49 PM]
NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Restoring existing accessory from cache: Emura
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Device found with id: 3a0dad16-7d51-4829-8cf9-316cfb73e652
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] id: 3a0dad16-7d51-4829-8cf9-316cfb73e652
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] name: Emura
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] last updated: Wed Aug 14 2024 12:46:40 GMT+0200 (Central European Summer Time)
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] modelInfo: BRP069C4x
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] deviceModel: dx4
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Restoring existing accessory from cache: Stylish
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] Device found with id: 1e24f5a2-9679-4fa8-8a68-e912159d6d76
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] id: 1e24f5a2-9679-4fa8-8a68-e912159d6d76
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] name: Stylish
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] last updated: Wed Aug 14 2024 12:47:12 GMT+0200 (Central European Summer Time)
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] modelInfo: BRP069B4x
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] [Platform] deviceModel: dx23
[8/14/2024, 12:47:49 PM] [homebridge-daikin-cloud] --------------- End Daikin info for debugging reasons --------------------
Seems like a connection issue to the API, AFAIK not related to the plugin and seems to have resolved by itself. Going to close this if that is OK.
@JeroenVdb yes, it did resolve, however, it stopped working again, and there's a entry in the logs:
[8/14/2024, 1:32:53 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"name":"RPError"}
Does this tell you anything?
Update: Even with this error in the log, I was able to turn on one of my ACs (the other one was already running). Once I tapped the button in the Home app, it took about 5 seconds to start the unit, but eventually it did. No other log entry was added.
It's strange that it works. RPError seems like an error in the OIDC client that handles the authorisation to the API. If it keeps coming you somehow ended up in some strange state. If you would have more information, let me know.
There seems to be a problem at the daikin side, users of the daikin_onecta HA integration report this, see https://github.com/jwillemsen/daikin_onecta/issues/279
@JeroenVdb I hope you're doing well.
Please find some more logs attached:
[8/19/2024, 12:31:44 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"name":"RPError"}
[8/19/2024, 12:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 1:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 1:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 1:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 1:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 2:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 2:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 2:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 2:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 3:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 3:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 3:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 3:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 4:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 4:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 4:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 4:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 5:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 5:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 5:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 5:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 6:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 6:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 6:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 6:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 7:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 7:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 7:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 7:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 8:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 8:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 8:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 8:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 9:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 9:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 9:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 9:46:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 10:01:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 10:16:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 10:31:41 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 10:43:47 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:44:14 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:44:14 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:45:15 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
[8/19/2024, 10:45:32 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:45:57 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:46:00 PM] [homebridge-daikin-cloud] Failed to set OPError: invalid_grant (The provided authorization code or refresh token is revoked.)
at processResponse (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/helpers/process_response.js:38:13)
at Client.grant (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/openid-client/lib/client.js:1354:22)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at OnectaClient.#refresh (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:90:16)
at OnectaClient.#getTokenSet (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/onecta/oidc-client.ts:132:24) {
error: 'invalid_grant',
error_description: 'The provided authorization code or refresh token is revoked.'
}
[8/19/2024, 10:47:00 PM] [homebridge-daikin-cloud] [API Syncing] Failed to update devices data: {"error":"invalid_grant","error_description":"The provided authorization code or refresh token is revoked.","name":"OPError"}
@JeroenVdb Update: Removing the .daikin-controller-cloud-tokenset
file and re-authenticating seems to resolve the issue.
@JeroenVdb Update: Removing the
.daikin-controller-cloud-tokenset
file and re-authenticating seems to resolve the issue.
this helped me as well
Describe The Bug: After updating to the latest released version,
v2.6.0-beta.3
, the plugin stopped working and started throwing an error once the child bridge is restarted.I have also visited the Daikin Developer Portal, and if I try refreshing the token/secret there, the following error appears:
To Reproduce: N/A
Expected behavior: It is expected that the plugin continues working after updating to its latest version.
Additionally it might be worth mentioning that the app continues to show the accessories as working (there's no "Not responding" indicator to them), and you can toggle them on/off, the state will be preserved, but the devices will not be toggled on/off.
Logs:
Plugin Config:
Screenshots: N/A
Daikin Environment:
1.31.0
, BRP069B4x:1.14.88
Homebridge Environment: