panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Unexpected error creating device

Open alexpb123 opened this issue 1 year ago • 14 comments

Checklist

  • [X] I have verified that the account and device works in the Comfort Cloud App.
  • [X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [X] This issue is not a duplicate issue of currently previous issues..

What version of Home Assistant Core?

core-2024.10.2

Describe the issue

When trying to add this integration I receive unexpected error creating device every time I attempt to connect it. Have tried reinstalling and restarting multiple times with no resolve. I have created different dedicated panasonic accounts all with 2FA and none have worked.

Error/Debug Logs

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.pcomfortcloud.helpers
Source: custom_components/panasonic_cc/pcomfortcloud/helpers.py:27
integration: Panasonic Comfort Cloud (documentation, issues)
First occurred: 10:06:25 AM (7 occurrences)
Last logged: 10:30:14 AM

Error in get_token Expected status code '200' but received '400' Response body: {"error":"invalid_request","error_description":"Missing required parameter: code"}
Error in login Expected status code '200' but received '401' Response body: {"message":"statusCode=401,code=Unauthorized,msg=Login ID or password is incorrect.","name":"ValidationError","code":"invalid_user_password","description":"statusCode=401,code=Unauthorized,msg=Login ID or password is incorrect.","statusCode":400,"fromSandbox":true}
Error in login Expected status code '200' but received '401' Response body: {"message":"Wrong email or password.","name":"ValidationError","code":"invalid_user_password","description":"Wrong email or password.","statusCode":400}

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/config_flow.py:68
integration: Panasonic Comfort Cloud (documentation, issues)
First occurred: 10:06:25 AM (7 occurrences)
Last logged: 10:30:14 AM

Bad logger message: Unexpected error creating device ((ResponseError('(get_token: Expected status code 200, received: 400: {"error":"invalid_request","error_description":"Missing required parameter: code"}'),))
Bad logger message: Unexpected error creating device ((ResponseError('(login: Expected status code 200, received: 401: {"message":"statusCode=401,code=Unauthorized,msg=Login ID or password is incorrect.","name":"ValidationError","code":"invalid_user_password","description":"statusCode=401,code=Unauthorized,msg=Login ID or password is incorrect.","statusCode":400,"fromSandbox":true}'),))
Bad logger message: Unexpected error creating device ((ResponseError('(login: Expected status code 200, received: 401: {"message":"Wrong email or password.","name":"ValidationError","code":"invalid_user_password","description":"Wrong email or password.","statusCode":400}'),))

alexpb123 avatar Oct 16 '24 23:10 alexpb123

@alexpb123 Hi, the error message indicates that the credentials you provided are wrong.

sockless-coding avatar Oct 17 '24 09:10 sockless-coding

Hi, I’ve confirmed the details are correct multiple times, changed passwords, created a new account with a different email with the same result each time unfortunately

alexpb123 avatar Oct 17 '24 10:10 alexpb123

It might be some caching going on... though the authentication is very finicky, Panasonic doesn't really support 3rd party access like this integration so they have blocked the OAuth callback so we cant use the normal authenitcation schema.

sockless-coding avatar Oct 18 '24 08:10 sockless-coding

I am having this issue too. Out of the blue, the integration stops working. Remove it and re-download the integration, and this"Unexpected error creating device." pop-out just after I login. PSC Apps login no issue.

kelmcw avatar Nov 06 '24 05:11 kelmcw

I also have the same issue and it started a few days ago, exactly as kelmcw describes. Has something changed?

julianbeere avatar Nov 07 '24 17:11 julianbeere

Reset MFA and Password wait for quite some time and suddenly it works again. App is very cluncky so this integration is very much appreciated. (I already ordered eps32 to replace wifi module :) but luckily not needed)

JvdB1979 avatar Nov 08 '24 13:11 JvdB1979

not

Reset MFA and Password wait for quite some time and suddenly it works again. App is very cluncky so this integration is very much appreciated. (I already ordered eps32 to replace wifi module :) but luckily not needed)

Is the password reset needed too?

vaibhavratnaparkhi avatar Nov 08 '24 15:11 vaibhavratnaparkhi

Excellent - that worked. Much appreciated. I reseted both MFA and password.

julianbeere avatar Nov 08 '24 16:11 julianbeere

I also have the same issue at my integration. Already reseted MFA and password but it’s still not working. @julianbeere In which order did you reset yours and how log did you wait till you try with next attempt?

KOENFLO avatar Nov 11 '24 11:11 KOENFLO

I did the MFA and then p/w and waited 30mins or so...

julianbeere avatar Nov 11 '24 11:11 julianbeere

I'm still having the same issue, reseted MFA and pw few times already, waiting for different period of time and no still no luck.

@julianbeere were you using panasonic web page to do that or mobile device (iOS or Android)? I'm starting to suspect that the issue might be related to the login method or some steps in between.

DanielSobczak avatar Nov 12 '24 14:11 DanielSobczak

I did it through my iOS phone app. Julian


From: Daniel Sobczak @.> Sent: Tuesday, November 12, 2024 2:17:33 PM To: sockless-coding/panasonic_cc @.> Cc: julianbeere @.>; Mention @.> Subject: Re: [sockless-coding/panasonic_cc] Unexpected error creating device (Issue #326)

I'm still having the same issue, reseted MFA and pw few times already, waiting for different period of time and no still no luck.

@julianbeerehttps://github.com/julianbeere were you using panasonic web page to do that or mobile device (iOS or Android)? I'm starting to suspect that the issue might be related to the login method or some steps in between.

— Reply to this email directly, view it on GitHubhttps://github.com/sockless-coding/panasonic_cc/issues/326#issuecomment-2470656540, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5C5O6UWWJZSS6BDM6SQI732AIEX3AVCNFSM6AAAAABQCQVKUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZQGY2TMNJUGA. You are receiving this because you were mentioned.Message ID: @.***>

julianbeere avatar Nov 12 '24 14:11 julianbeere

ever got this working? I've got 4 working units placed a new one today but I can't seem to get it into HA works via panasonic app..

jeroenvdd avatar Jan 09 '25 15:01 jeroenvdd

@jeroenvdd and what error are you getting? You might have to enable the debug logging in the configuration.yaml by adding

logger:
  default: info
  logs:
    custom_components.panasonic_cc: debug

If it's a problem in the setup process

sockless-coding avatar Jan 09 '25 16:01 sockless-coding

MFA

what is MFA?

jhungutierrez avatar Jul 08 '25 01:07 jhungutierrez