Open SuperG703 opened 2 years ago
[2/5/2022, 5:04:12 PM] [Daikin One+] Unable to retrieve token. [] [2/5/2022, 5:04:12 PM] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices. [2/5/2022, 5:04:22 PM] [Daikin One+] Error with token response: [] [2/5/2022, 5:04:22 PM] [Daikin One+] { message: 'NotAuthorizedException' } [] [2/5/2022, 5:04:22 PM] [Daikin One+] 400 [] [2/5/2022, 5:04:22 PM] [Daikin One+] { 'content-type': 'application/json', 'content-length': '36', connection: 'close', date: 'Sat, 05 Feb 2022 22:04:22 GMT', 'x-amzn-requestid': '78e935a2-6513-4a3e-93e2-67b1cc72f4d2', 'access-control-allow-origin': '', 'access-control-allow-headers': 'Content-Type,Authorization,X-Api-Key', 'x-amz-apigw-id': 'NFsgAHrsPHcF-Nw=', 'access-control-allow-methods': 'DELETE,GET,OPTIONS,POST,PUT', 'x-amzn-trace-id': 'Root=1-61fef466-6c93e1473157d19e0541c560;Sampled=0', 'x-cache': 'Error from cloudfront', via: '1.1 1a25e657bbdfbe4dde177fef28655f02.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'EWR52-C4', 'x-amz-cf-id': 'Pko4xpOs2qHZAyBx1ylZyMPjMtfp-SUIOYee6aGRLyO20w_b2Zm5Tw==' } [] [2/5/2022, 5:04:22 PM] [Daikin One+] Unable to retrieve token. [] [2/5/2022, 5:04:22 PM] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices. [2/5/2022, 5:04:32 PM] [Daikin One+] Error with token response: [] [2/5/2022, 5:04:32 PM] [Daikin One+] { message: 'NotAuthorizedException' } [] [2/5/2022, 5:04:32 PM] [Daikin One+] 400 [] [2/5/2022, 5:04:32 PM] [Daikin One+] { 'content-type': 'application/json', 'content-length': '36', connection: 'close', date: 'Sat, 05 Feb 2022 22:04:32 GMT', 'x-amzn-requestid': '6d038f77-e5d9-47e4-b3de-0623f70f19c1', 'access-control-allow-origin': '', 'access-control-allow-headers': 'Content-Type,Authorization,X-Api-Key', 'x-amz-apigw-id': 'NFshoHbEvHcF57g=', 'access-control-allow-methods': 'DELETE,GET,OPTIONS,POST,PUT', 'x-amzn-trace-id': 'Root=1-61fef470-2d8eb65f2695e4b5637b906c;Sampled=0', 'x-cache': 'Error from cloudfront', via: '1.1 b2406c07406aaa3fa3e9edc1125ffcf8.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'EWR53-C3', 'x-amz-cf-id': 'WeqWrJY0s82j7Rgbs50wM9cHi-JCY8JxWd7eVmZ6KeGX-97QwtDrsA==' } [] [2/5/2022, 5:04:32 PM] [Daikin One+] Unable to retrieve token. [] [2/5/2022, 5:04:32 PM] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices.
Double check your Daikin credentials. I see a Not Authorized error in there. Either your credentials are not correct or you haven't set up a Daikin account via the Daikin One+ app. Mine hasn't had any such errors in my logs so it isn't an issue on Daikin's side.
If it was working and started giving that error out of the blue, try restarting homebridge.
Ok I'll try thank you
So got it working, thanks very much. But it wasn't the credentials. I had to request an integration token through the app, once I did that it worked perfectly. Thanks again, great plug-in!
I saw this issue and followed your token advice (no pun) and received the token. How/where do I install it now?
I actually didn't do anything other then reset the homebridge server thru the UI an the Mac it's running on...that's it.
@SoundChkn There's no spot for the token in the plug-in itself. Sounds like the act of getting the token from Daikin enables the API for your account. And once you've received a token the plug-in works without the token. This is sounding like new behavior on Daikin's part. When I started working on the plug-in there wasn't a public API at all so they may be moving towards using that token for third party integrations.
If more people start needing that token, I'll make a note in the Readme.
It took me uninstalling and reinstalling the plug to get it to work. If it goes in the readme, put registering the key before installing the plug.
Readme has been updated. I'll leave this issue open for easy reference. If it works for anyone without requesting a token, please comment. I'd really like to know if it is required for all new installations or not.
Thanks for the great plugin!
Today I got absolutely the same token issues, as the described in the second post.
[21/10/2022, 12:48:33] [Daikin One+] Error getting token: [] [21/10/2022, 12:48:33] [Daikin One+] Error with response: [] [21/10/2022, 12:48:33] [Daikin One+] { message: 'NotAuthorizedException' } [] [21/10/2022, 12:48:33] [Daikin One+] 400 [] [21/10/2022, 12:48:33] [Daikin One+] { 'content-type': 'application/json', 'content-length': '36', connection: 'close', date: 'Fri, 21 Oct 2022 11:48:33 GMT', 'x-amzn-requestid': '108f43d4-3478-4fb6-9719-e1a33cf0cd7d', 'access-control-allow-origin': '', 'access-control-allow-headers': 'Content-Type,Authorization,X-Api-Key', 'x-amz-apigw-id': 'aWoKvGOZvHcFRrQ=', 'access-control-allow-methods': 'DELETE,GET,OPTIONS,POST,PUT', 'x-amzn-trace-id': 'Root=1-63528711-100760ac005c73766dc4dfd0;Sampled=0', 'x-cache': 'Error from cloudfront', via: '1.1 780489eb078b12b535ed56179d4e97fe.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'VIE50-P1', 'x-amz-cf-id': 'WxW6YUquHvDu26ccBXaUm2a5DSB2ry-7nNVGzV3v7Ryq95JBafjhNA==' } [] [21/10/2022, 12:48:33] [Daikin One+] Unable to retrieve token. [] [21/10/2022, 12:48:33] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices. [21/10/2022, 12:48:44] [Daikin One+] Error getting token: [] [21/10/2022, 12:48:44] [Daikin One+] Error with response: [] [21/10/2022, 12:48:44] [Daikin One+] { message: 'NotAuthorizedException' } [] [21/10/2022, 12:48:44] [Daikin One+] 400 [] [21/10/2022, 12:48:44] [Daikin One+] { 'content-type': 'application/json', 'content-length': '36', connection: 'close', date: 'Fri, 21 Oct 2022 11:48:44 GMT', 'x-amzn-requestid': '254e0fb2-6305-48a5-ae99-c05a8264d9e9', 'access-control-allow-origin': '', 'access-control-allow-headers': 'Content-Type,Authorization,X-Api-Key', 'x-amz-apigw-id': 'aWoMdFFnPHcFzVA=', 'access-control-allow-methods': 'DELETE,GET,OPTIONS,POST,PUT', 'x-amzn-trace-id': 'Root=1-6352871c-4278770b3f563cdb66e9f026;Sampled=0', 'x-cache': 'Error from cloudfront', via: '1.1 429f4d0dffb8bf0b68cf2d9d500542f8.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'VIE50-P1', 'x-amz-cf-id': 'aI4jJ1Y5s8exA3pJi-1oZ_gNN3we3vcicXFJHu6G6fqn4eLuYpwb1Q==' } [] [21/10/2022, 12:48:44] [Daikin One+] Unable to retrieve token. [] [21/10/2022, 12:48:44] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices. [21/10/2022, 12:48:55] [Daikin One+] Error getting token: [] [21/10/2022, 12:48:55] [Daikin One+] Error with response: [] [21/10/2022, 12:48:55] [Daikin One+] { message: 'NotAuthorizedException' } [] [21/10/2022, 12:48:55] [Daikin One+] 400 [] [21/10/2022, 12:48:55] [Daikin One+] { 'content-type': 'application/json', 'content-length': '36', connection: 'close', date: 'Fri, 21 Oct 2022 11:48:55 GMT', 'x-amzn-requestid': 'cd6c70ac-de5c-4fae-9ec0-e3622db3e2b5', 'access-control-allow-origin': '*', 'access-control-allow-headers': 'Content-Type,Authorization,X-Api-Key', 'x-amz-apigw-id': 'aWoOKG5EvHcFsug=', 'access-control-allow-methods': 'DELETE,GET,OPTIONS,POST,PUT', 'x-amzn-trace-id': 'Root=1-63528727-1857203650d734fb4c0dce87;Sampled=0', 'x-cache': 'Error from cloudfront', via: '1.1 6d125e47c290f30bf760f976c0325c98.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'VIE50-P1', 'x-amz-cf-id': '8uuK3kFQJAjyxO8_ETTuvpcPreq4VtjCbepCNKVKeZQAwCN5rUlrSQ==' } [] [21/10/2022, 12:48:55] [Daikin One+] Unable to retrieve token. [] [21/10/2022, 12:48:55] [Daikin One+] Unable to retrieve devices. Aborting discovery of devices.
What I did without success:
So what? Any ideas?
@lz1kka Have you read the Known Issue on the readme? It shows the steps for getting the integration token. They're as follows:
@jeffschubert sorry, but I just realised that DaikinOne is a wall thermostat and it is not just the name of the plugin. I don't have such a device at home as I only have 2 new air conditioners Daikin Perfera.
Moreover, I downloaded the Daikin One app and it seems it is only for US users while I am situated in Europe.
So with this being said, it seems this is not the right plugin for me.
Ahh! That makes sense. Yes, this is for controlling the Daikin One+ thermostat.
The HomeBridge plug-in in failing due to missing token. Any ideas? Thanks.