panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Failed to set up

Open bakoscsaba opened this issue 1 year ago • 458 comments

Hi, Today when HA was restarted the CC integration is failed to set up and got the following errors in the logs. Official CC app is working fine so it is not a server side issue.

Logger: homeassistant.config_entries Source: config_entries.py:594 First occurred: 08:40:44 (1 occurrences) Last logged: 08:40:44

Error setting up entry for panasonic_cc Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/panasonic_cc/init.py", line 79, in async_setup_entry devices = await hass.async_add_executor_job(api.get_devices) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 207, in get_devices self.login() File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 106, in login self._create_token() File "/config/custom_components/panasonic_cc/pcomfortcloud/session.py", line 164, in _create_token raise ResponseError(response.status_code, response.text) custom_components.panasonic_cc.pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data:

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: y9Mkam-BqFutcfjCOtKEJ83QR5KGFIVKMy8C70ws3UkioVCwSz9zLQ==

bakoscsaba avatar Jun 17 '24 06:06 bakoscsaba

Same error. Try to login again in the app but error remain. Before this error even app was down due to system mantenaince. The app now work, not perfectly (command isn't always effective), but without noticable errors

Invocazione del servizio climate/set_hvac_mode non riuscita. Invalid response, status code: 403 - Data: <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>ERROR: The request could not be satisfied</TITLE> </HEAD><BODY> <H1>403 ERROR</H1> <H2>The request could not be satisfied.</H2> <HR noshade size="1px"> Request blocked. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. <BR clear="all"> If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. <BR clear="all"> <HR noshade size="1px"> <PRE> Generated by cloudfront (CloudFront) Request ID: iHjwntO4nGaR5rullX-Mn7h20kXDPrE-piggNuYZD40z_GP6M5rOWA== </PRE> <ADDRESS> </ADDRESS> </BODY></HTML>

amirandola avatar Jun 17 '24 06:06 amirandola

Same here

RonnieRocket2 avatar Jun 17 '24 06:06 RonnieRocket2

Thank you for confirming. I have the same issue. This morning suddenly no connection. It was setup just fine but it simply stopped working.

pdm1976 avatar Jun 17 '24 06:06 pdm1976

Just a consideration: app it's not been updated today but it still works, so the change could not be so important ...

amirandola avatar Jun 17 '24 07:06 amirandola

Having same issue

rleongcs avatar Jun 17 '24 07:06 rleongcs

I've got the same problem.

chemicalandy avatar Jun 17 '24 07:06 chemicalandy

I came straight to the issues section! Yep, same.

ChrisLStark avatar Jun 17 '24 07:06 ChrisLStark

Same. It looks like there was an update rolled out on their side today. The Comfort Cloud system was unavailable most of the day via the app, advising 'down for maintenance'. When it recently came back up it rolled out an update to Panasonic Comfort Cloud app on my phone which seemed to require 2FA to be set up. I'm very keen to know whether this can be factored into the integration somehow to restore access to Comfort Cloud via HA. Huge thanks to the talented individuals who develop and maintain these integrations by the way...

uplore avatar Jun 17 '24 07:06 uplore

I have the same problem

dennis-sdsol avatar Jun 17 '24 07:06 dennis-sdsol

Same here. I just logged into the Panasonic Comfort Cloud app and it asked me to set up a Two factor authentication with my cell phone, so I guess they changed their security model...

td5223 avatar Jun 17 '24 07:06 td5223

Indeed, same problem. Looks like a new server-side change on the side of panasonic which introduced incompatible forms of authentication.

Since this repo is barely maintained, I doubt we're getting an update soon. :(

mvanrooijenjr avatar Jun 17 '24 07:06 mvanrooijenjr

2FA is already present time ago. And in Android app isn't update since December. I already try ti login in the app using 2FA but is not enaugh

amirandola avatar Jun 17 '24 08:06 amirandola

android app still works for me (no 2FA enforcement so far) but the HA integration is blocked.

heldchen avatar Jun 17 '24 08:06 heldchen

@craibo since you're the maintainer of the most active fork, just bringing you into this discussion here.

Side note I really do believe we need to think about the future here on what to do with this integration. My suggestion is we rally around a new fork until something happens here and we can merge everything back in.

A bunch of us depend on this, and the fact that this integration isn't maintained as much anymore (which is fine) .

danielcherubini avatar Jun 17 '24 08:06 danielcherubini

The app authentication uses a completely different url than what's used in this code so might be some major changes there: https://authglb.digital.panasonic.com/login?state=hK..2A&client=Xmy6..MJx&protocol=oauth2&scope=openid%20offline_access%20comfortcloud.control%20a2w.control&audience=https%3A%2F%2Fdigital.panasonic.com%2FXmy..MJx%2Fapi%2Fv1%2F&response_type=code&code_challenge=BMI..Zk&code_challenge_method=S256&auth0Client=ey..In0%3D&redirect_uri=panasonic-iot-cfc%3A%2F%2Fauthglb.digital.panasonic.com%2Fandroid%2Fcom.panasonic.ACCsmart%2Fcallback&nonce=...

pumpagubben avatar Jun 17 '24 08:06 pumpagubben

Trying to readd the integration (which works sometimes for other integrations) just results in this error. Screenshot_20240617_210851_Home Assistant.jpg

Was thinking it was update to 2024.6.3 of HA, but it was actually working for me this morning after the update.

Had 2FA for a while only when accessing the Panasonic account maintenance page directly from app on Android. But not required to sign into the app as far as I recall. No update to app for me since December 2023.

Agent6-6-6 avatar Jun 17 '24 09:06 Agent6-6-6

Same issue here since this morning.

Maarc avatar Jun 17 '24 09:06 Maarc

Same here, since few hours.

cristofer1989 avatar Jun 17 '24 09:06 cristofer1989

Ditto - which sux, as i only just installed 2 x Panasonic wifi dongles for my 2 x aircons... lol

image

Master-Atreides avatar Jun 17 '24 09:06 Master-Atreides

Same issue here since yesterday evening, when i've tried to log back to IOS apps they ask now for a 2FA authentication. maybe linked ?

Moustik2002 avatar Jun 17 '24 09:06 Moustik2002

same issue on existing HA setup

lordzeroMS avatar Jun 17 '24 10:06 lordzeroMS

Hey @danielcherubini Thanks for the heads up, I hadn't used this integration recently but testing now and it has also stopped working. Looks like they have changed the authentication process completely. I'm more then happy to update and fix my fork of this project as I am actively using it but it may take a little time for me to figure out what needs to change. I'm hoping the community from the project that maintains the integration library can figure it out for us and I'll apply the fix to my branch.

craibo avatar Jun 17 '24 10:06 craibo

So after I setup 2FA on comfort cloud, Ilogged into comfort cloud on another phone with another appleID and I was not requested to put a 2FA code in. Looks like it was a one off code? So that’s a good sign that it’s just something changed in the flow

robotsmarthomes avatar Jun 17 '24 10:06 robotsmarthomes

Same issue

JakobAaenJCD avatar Jun 17 '24 11:06 JakobAaenJCD

So after I setup 2FA on comfort cloud, Ilogged into comfort cloud on another phone with another appleID and I was not requested to put a 2FA code in. Looks like it was a one off code? So that’s a good sign that it’s just something changed in the flow

2FA seems to be requested only 1 time per device, but I think that we have to authenticate HA device to make integration working

amirandola avatar Jun 17 '24 11:06 amirandola

Just an idea, for who know integration batteria than me: It is possibile to write a service that "substitute " Panasonic service and link them to the unit? Traffic could be redirect to that service trough router and we became free fronte panasonic chenges ... I'm an informatic engineer, I can help to realizzati or test it ...

amirandola avatar Jun 17 '24 11:06 amirandola

Just an idea, for who know integration batteria than me: It is possibile to write a service that "substitute " Panasonic service and link them to the unit? Traffic could be redirect to that service trough router and we became free fronte panasonic chenges ... I'm an informatic engineer, I can help to realizzati or test it ...

This can be done with a ESP32 and some custom firmware instead of the current wifi-dongle.

If it can be done purely through software, that would be great.

Maybe someone can convince Panasonic to allow us to "alter" the domain it sends requests to.

mvanrooijenjr avatar Jun 17 '24 12:06 mvanrooijenjr

After several attempts to register, I keep receiving this message on Panasonic Comfort Cloud: "Unexpected error creating device."

I recently switched Home Assistant from a Docker installation to a standard installation, and now it won't work. lucky me :)

GjaltP avatar Jun 17 '24 12:06 GjaltP

Yesterday I installed this integration for the first time. Everything was working fine until this morning. I hope this can be fixed quickly.

Rainowy avatar Jun 17 '24 12:06 Rainowy

Just an idea, for who know integration batteria than me: It is possibile to write a service that "substitute " Panasonic service and link them to the unit? Traffic could be redirect to that service trough router and we became free fronte panasonic chenges ... I'm an informatic engineer, I can help to realizzati or test it ...

This can be done with a ESP32 and some custom firmware instead of the current wifi-dongle.

If it can be done purely through software, that would be great.

Maybe someone can convince Panasonic to allow us to "alter" the domain it sends requests to.

I have a model with wifi integrated, I can't change dongle. Change domain is not necessary if you are able to redirect request to the domain from external address to internal one, with service installed. The most complicated thing is make the link from external to airconditioner working if traffic is ciphrated and we don't have the key

amirandola avatar Jun 17 '24 13:06 amirandola