403 forbidden
Hi
Getting a 403 forbidden error even though my password is correct (tested on Panasonic comfort cloud app)
Anybody has the same issue? It was working fine before.
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/panasonic_cc/panasonic.py:23
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:22:12 PM (10 occurrences)
Last logged: 9:38:07 PM
[140446803720848] Invalid response, status code: 403 - Data: <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> </body> </html>
[140446797973632] Invalid response, status code: 403 - Data: <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> </body> </html>
Traceback (most recent call last):
File "/config/custom_components/panasonic_cc/panasonic.py", line 21, in wrapper_call
func(*args, **kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 346, in set_device
self._api.set_device(
File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 389, in set_device
raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 403 - Data: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 189, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1627, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1664, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 677, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 714, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 588, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/config/custom_components/panasonic_cc/climate.py", line 106, in async_set_temperature
await self._api.set_temperature(**kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 266, in set_temperature
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/panasonic_cc/panasonic.py", line 23, in wrapper_call
args[0]._api.login()
File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 99, in login
self._create_token()
File "/usr/local/lib/python3.9/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: <html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
I have exactly the same issue since this week.. Really frustrating that in this hot weather I can't control my AC using Home Assistant.
It appears to be the same issue as raised here last year: https://github.com/sockless-coding/panasonic_cc/issues/35
Same here, it started a few days ago and has been on and off. The CC app has also been very slow to not responding at all, so this seems to be Panasonic's problem.
@kongjudas I do think something at the back end changed, and we also need to change something. Otherwise, we would get some connection sometimes. :(
I have exactly the same issue since this week.. Really frustrating that in this hot weather I can't control my AC using Home Assistant.
I have the opposite problem, it's freezing here and I have to go find the remote
I have the same/similar issue started yesterday evening. Yesterday evening also Panasonc app was not working but now it works.
Logger: homeassistant.config_entries Source: custom_components/panasonic_cc/init.py:79 Integration: Panasonic Comfort Cloud (documentation) First occurred: 13:24:55 (1 occurrences) Last logged: 13:24:55
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
Has been a bit iffy for a few days and then stopped completely this morning, deleted the integration and now it wont let me add it back in, just get this error so think Panasonic have changed something at there end.
.
I think it has to do with this: https://github.com/lostfields/python-panasonic-comfort-cloud/issues/62#issuecomment-1183102263
I'm probably going to give up and go the esp32 route... tho while I'm waiting maybe try some mitm... I have such a love hate relationship with tls right now.
I just checked my pcomfortcloud already has that version.
Integration with the Tibber app also fails at login. The API seems to be broken for all.
I think it has to do with this: lostfields/python-panasonic-comfort-cloud#62 (comment)
Found the solution!
You can fixit for yourselfs by editing manifest.json and replacing the requirements with "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]
I made a pull request (https://github.com/lostfields/python-panasonic-comfort-cloud/pull/63), so you also can wait until it is approved.
That worked for me, strange cos the pconmfortcloud I found had the right version in it, maybe there's another copy of the module somewhere.
That worked for me, strange cos the pconmfortcloud I found had the right version in it, maybe there's another copy of the module somewhere.
I changed a file but I didn't change the version number because nothing big changed. (The version on my fork.)
unfortunatelly this modification is not solved the problem for me. still 403.
unfortunatelly this modification is not solved the problem for me. still 403.
Did you restart home assistant?
"requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]
I did restart ha , but still 403
unfortunatelly this modification is not solved the problem for me. still 403.
Did you restart home assistant?
No 403, but now the log indicates a such:

Manifest reads:

unfortunatelly this modification is not solved the problem for me. still 403.
Did you restart home assistant?
No 403, but now the log indicates a such:
Manifest reads:
replace "requirements":["pcomfortcloud==0.0.2"] by "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]. And maybe the version 1.0.30 to 1.15.0 Then restart ha It also works for me (thanks for the solution 👍 )
"requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]
Ah, thanks. Stupid of me. After reboot similar error:

When changing version to 1.15.0:

I have also done the "requirements" and "version" change and still have the "403 Forbidden" error.
{
"domain": "panasonic_cc",
"name": "Panasonic Comfort Cloud",
"version": "1.0.30",
"config_flow": true,
"documentation": "https://github.com/sockless-coding/panasonic_cc/",
"dependencies": [],
"codeowners": ["sockless-coding"],
"requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]
}
So, this is what your manifest.json looks like? (@Iceledo @buhito81 )
{ "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "version": "1.0.30", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], "codeowners": ["sockless-coding"], "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"] }So, this is what your manifest.json looks like? (@Iceledo @buhito81 )
Still 403, mine manifest is: { "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "version": "1.0.31", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], "codeowners": ["sockless-coding"], "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"] }
{
"domain": "panasonic_cc",
"name": "Panasonic Comfort Cloud",
"version": "1.15",
"config_flow": true,
"documentation": "https://github.com/sockless-coding/panasonic_cc/",
"dependencies": [],
"codeowners": ["sockless-coding"],
"requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"]
}
Yea, exactly like that
could you try with "version": "1.15.0", ?
Here is my settings : { "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "version": "1.15.0", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], "codeowners": ["sockless-coding"], "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"] }
Mmm... Strange. Do you (for the people that is doesn't work for) have any files in deps folder? Also what version of HA do you use? Docker container?
Mmm... Strange. Do you (for the people that is doesn't work for) have any files in
depsfolder? Also what version of HA do you use? Docker container?
?Deps folder?

Mmm... Strange. Do you (for the people that is doesn't work for) have any files in
depsfolder? Also what version of HA do you use? Docker container?
core-2022.7.3 also, where to find deps folder? Running VM
Mmm... Strange. Do you (for the people that is doesn't work for) have any files in
depsfolder? Also what version of HA do you use? Docker container??Deps folder?
I see... You use the Supervisor version and I don't. I will look into that!
In the home folder of HA there is a deps folder...

This is how it looks for me
could you try with "version": "1.15.0", ?
Here is my settings : { "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "version": "1.15.0", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], "codeowners": ["sockless-coding"], "requirements": ["git+https://github.com/Th0masDB/python-panasonic-comfort-cloud@master#pcomfortcloud==0.0.2"] }
Similar:

@Th0masDB deps folder is empty for me