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

All devices unavailable #41

Open
IanAndersonOZ opened this issue Sep 15, 2023 · 3 comments
Open

All devices unavailable #41

IanAndersonOZ opened this issue Sep 15, 2023 · 3 comments

Comments

@IanAndersonOZ
Copy link

Hello!

If your devices are all unavailable as of this week, and a restart of homeassistant isn't fixing it as usual:

docker container ls -> copy your homeassistant container ID
docker exec -it -u root [container ID] sh

Now in the docker shell:
pip show pcomfortcloud -> check the location of pcomfort cloud.
Likely: /usr/local/lib/python3.9/site-packages, we'll stick to that.

Make a backup of session.py
cp /usr/local/lib/python3.9/site-packages/session.py.bak

Edit session.py
nano /usr/local/lib/python3.9/site-packages/session.py

modify the function _headers() to read as follows:
def _headers(self): return { "X-APP-TYPE": "1", "X-APP-VERSION": "1.19.0", "X-User-Authorization": self._vid, "X-APP-TIMESTAMP": "1", "X-APP-NAME": "Comfort Cloud", "X-CFC-API-KEY": "Comfort Cloud", "User-Agent": "G-RAC", "Accept": "application/json; charset=utf-8", "Content-Type": "application/json; charset=utf-8" }

save, exit docker shell, restart the container (or reboot).
Tested and working on my HASS install.

Cheers to user marc2106 for pointing out the panasonic comfort cloud REST call had changed to require additional headers.
lostfields/python-panasonic-comfort-cloud#78

@JoachimC
Copy link

JoachimC commented Sep 15, 2023

Please is there a plan/timeline for putting this into an official release?

@timovp
Copy link
Contributor

timovp commented Oct 5, 2023

Created a pull request that solves the issue by upgrading underlying requirements.

@skion
Copy link
Contributor

skion commented Feb 19, 2024

@IanAndersonOZ Is this resolved for you now with the linked PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants