sockless-coding / panasonic_cc

Panasonic Comfort Cloud - Home Assistant Component
MIT License
144 stars 35 forks source link

Unexpected error creating device #326

Open alexpb123 opened 3 days ago

alexpb123 commented 3 days ago

Checklist

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}'),))
sockless-coding commented 2 days ago

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

alexpb123 commented 2 days ago

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

sockless-coding commented 2 days ago

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.