Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error creating device #326

Open
3 tasks done
alexpb123 opened this issue Oct 16, 2024 · 14 comments
Open
3 tasks done

Unexpected error creating device #326

alexpb123 opened this issue Oct 16, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@alexpb123
Copy link

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}'),))
@alexpb123 alexpb123 added the bug Something isn't working label Oct 16, 2024
@sockless-coding
Copy link
Owner

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

@alexpb123
Copy link
Author

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
Copy link
Owner

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.

@kelmcw
Copy link

kelmcw commented Nov 6, 2024

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.

@julianbeere
Copy link

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

@JvdB1979
Copy link

JvdB1979 commented Nov 8, 2024

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)

@vaibhavratnaparkhi
Copy link

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?

@julianbeere
Copy link

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

@KOENFLO
Copy link

KOENFLO commented Nov 11, 2024

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?

@julianbeere
Copy link

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

@DanielSobczak
Copy link

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.

@julianbeere
Copy link

julianbeere commented Nov 12, 2024 via email

@jeroenvdd
Copy link

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..

@sockless-coding
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants