panasonic_cc: Unexpected error creating device

Checklist

  • I have verified that the account and device works in the Comfort Cloud App.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • 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}'),))

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 15 (3 by maintainers)

Most upvoted comments

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: @.***>

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.