Panasonic Comfort Cloud

Is this broken for others as well? Suddenly I am seeing a 403 error in the log. It worked well for a couple days. Native app seems to be working fine for now.

It seems Panasonic might have updated the API again as it has stopped working since yesterday…

`
This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/panasonic_cc/init.py:79
Integration: Panasonic Comfort Cloud (documentation)
First occurred: July 13, 2022 at 10:11:43 PM (1 occurrences)
Last logged: July 13, 2022 at 10:11:43 PM

Error setting up entry for panasonic_cc
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 353, 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.10/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.10/site-packages/pcomfortcloud/session.py”, line 172, in get_devices
self.login()
File “/usr/local/lib/python3.10/site-packages/pcomfortcloud/session.py”, line 99, in login
self._create_token()
File “/usr/local/lib/python3.10/site-packages/pcomfortcloud/session.py”, line 132, in _create_token
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data:

403 Forbidden

403 Forbidden

`

Upgrading to 2022.7 breaks it for me. I have also now noticed the 403 error also back on 2022.6.x.

I havent updated my HA for a few weeks now, but noticed the Panasonic entities have not been updated since ~7PM yesterday 13/07. So Panasonic must have changed something in the background.

Depending on the version of HA (and your own handy-ness) there is a GitHub issue describing a fix - or describing why’d have to wait for a Supervisor update with the most recent libraries: 403 forbidden · Issue #76 · sockless-coding/panasonic_cc (github.com)

Panasonic has made some changes to their API, that caused these issues.
I’ve created a temp patch that can be downloaded here: https://jimmyk.se/git/panasonic_cc.zip

Installation

Replace the content of your custom_components\panasonic_cc directory with the content of the zip

I will try to release this to hacs as soon as possible…

3 Likes

@sockless I have used your zip file and it’s working now! You are amazing!

Thanks you. It’s still working now.

Sockless commited the update to github, amongst some more pending PR’s

So HACS should report an update is available :wink:

2 Likes

Today I integrated the first out of six modules, and it works flawless, no delays any longer, and of course no need of the cloud. :smiley:
Thanks to the developers :+1:

Regards
Herbi

Just updated to the latest version and previously only one out of two of my aircon can be controlled. Then everything do not work due to the change of the API. Now with this new version, not only it is working again, but both the aircons can now be controlled! Love it. Thanks @sockless :+1:

Quick question, I am looking at getting a ducted panasonic, I was going to go with a independent control system for zones, however given this now works, anyone know if it can control zones?

No, I don’t believe this integration will do zone control. It’s taking data from the Comfort Cloud API which doesn’t seem to include any zone control. I think you’d need an integration specific to the independent zone control item.

Hi whats wrong with this Panasonic cloud stopped working and got message “This entity is no longer being provided by the panasonic_ac integration. If the entity is no longer in use, delete it in settings.”

This a joke? any solution for this? integration is super love it, but need to work off course.

Regardes Kaj

Me too the integration has stopped working and says entities are not available

I tried to delete the integration and reinstall it (restarting HA each time) and now after entering the logins it appears:

Panasonic Comfort Cloud
Unexpected error creating device

Log:
Logger: custom_components.panasonic_cc.config_flow
Source: custom_components/panasonic_cc/pcomfortcloud/session.py:223
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 10:01:36 (3 occurrences)
Last logged: 11:53:34

Unexpected error creating device

Traceback (most recent call last): File “/config/custom_components/panasonic_cc/config_flow.py”, line 60, in _create_device devices = await self.hass.async_add_executor_job(api.get_devices) File “/usr/local/lib/python3.10/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 223, in get_devices ‘name’: device[‘deviceName’], KeyError: ‘deviceName’

panasonic aqurea integration died here as well, same as above. Did Panasonic screw with API again ?

Hi, have you found a way to connect to it directly?

Hello, I am using the integration ans all works well.
Now I am starting to use automations and I can activate the AC but what I am not able to do is change the temperature set using automation. I can change it on the dashboard but not from an automation, the entity is not available.
Are someone that was able to do it? If so, how?
Thanks
Denis


This is how i do it. I testet it now, and it works. Hope this helps. :slight_smile:

Hi, can you show the code to make it like yours?