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

Energy sensors and outside temperature not available after restart #371

Open
3 tasks done
bakoscsaba opened this issue Jan 25, 2025 · 13 comments
Open
3 tasks done

Energy sensors and outside temperature not available after restart #371

bakoscsaba opened this issue Jan 25, 2025 · 13 comments
Labels
bug Something isn't working

Comments

@bakoscsaba
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?

2025.1.4

Describe the issue

After restarting HA, the energy and outside temperature sensors are not available.
Tried to restart HA and reload the integration but it didn't help.

Error/Debug Logs

This error originated from a custom integration.

Logger: custom_components.panasonic_cc.coordinator
Source: custom_components/panasonic_cc/coordinator.py:141
integration: Panasonic Comfort Cloud (documentation, issues)
First occurred: 12:41:13 (2 occurrences)
Last logged: 12:42:47

Error fetching energy data from API: (get_todays_energy: Expected status code 200, received: 504: {"message": "Endpoint request timed out"}
Traceback (most recent call last):
  File "/config/custom_components/panasonic_cc/coordinator.py", line 141, in _fetch_device_data
    if await self._api_client.async_try_update_energy(self._energy):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aio_panasonic_comfort_cloud/apiclient.py", line 210, in async_try_update_energy
    todays_item = await self._async_get_todays_energy(energy.info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aio_panasonic_comfort_cloud/apiclient.py", line 227, in _async_get_todays_energy
    history = await self.execute_post(self._get_device_history_url(), payload, "get_todays_energy", 200)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aio_panasonic_comfort_cloud/panasonicsession.py", line 118, in execute_post
    await check_response(response, function_description, expected_status_code, payload=json_data)
  File "/usr/local/lib/python3.13/site-packages/aio_panasonic_comfort_cloud/helpers.py", line 32, in check_response
    raise exceptions.ResponseError(
    ...<2 lines>...
    )
aio_panasonic_comfort_cloud.exceptions.ResponseError: (get_todays_energy: Expected status code 200, received: 504: {"message": "Endpoint request timed out"}
@bakoscsaba bakoscsaba added the bug Something isn't working label Jan 25, 2025
@Ricks88
Copy link

Ricks88 commented Jan 25, 2025

I tried to log out and log back in again, than some temperature sensors are working, but when enabling the energy sensors all temp and energy sensors are unavailable.

@MadsBGr
Copy link

MadsBGr commented Jan 26, 2025

Had same issue after update to 2025.1.4. Restored to 2025.1.3, which seemed to be a work around for my installation.

@danielbergholm
Copy link

danielbergholm commented Jan 26, 2025

Restore 2025.1.3 solves the issue, but of course not the solution.

I tried that, but no success for me.

@Mic9999
Copy link

Mic9999 commented Jan 26, 2025

Restore 2025.1.3 löst das Problem, aber natürlich nicht die Lösung.

Das habe ich versucht, aber kein Erfolg für mich.

It didn't work for me after the rollback either. I then removed the HUB again and set it up again. Now it works

@Ricks88
Copy link

Ricks88 commented Jan 26, 2025

Restore 2025.1.3 löst das Problem, aber natürlich nicht die Lösung.

Das habe ich versucht, aber kein Erfolg für mich.

It didn't work for me after the rollback either. I then removed the HUB again and set it up again. Now it works

It does, until you enable the energy sensors, than all wil be unavailable again..

@sockless-coding
Copy link
Owner

sockless-coding commented Jan 26, 2025

It's the Panasonic Servers having issues. Not much I can do about it.
If you click statistics in the Comfort Cloud app you will probably get a E03-0149-5600 message.

@aitrus22
Copy link

It's the Panasonic Servers having issues. Not much I can do about it. If you click statistics in the Comfort Cloud app you will probably get a E03-0149-5600 message.

Same problem here. Missing temperatures and energy sensors, but I can see it OK on the comfort cloud app.

@jeroenvdd
Copy link

In app OK in HA not ok with me too, no outside sensors available. (running 2025.1.4)

@aitrus22
Copy link

In app OK in HA not ok with me too, no outside sensors available. (running 2025.1.4)

I tried to uncheck "enable daily energy sensor" restart HA and deck it again, restart again. And now I have the temp sensor back again.

Waiting for update the energy sensor to see if it is all OK.

@bakoscsaba
Copy link
Author

Today morning after HA restart energy and outside temp sensors are back.

@MarkKuhmann
Copy link

After HACS updatet from 2.0.3 to 2.0.4 the Comfort cloud functions came back to normal ?

Did not change anything on my HA 2025.1.4 or comfort cloud app. Beside the requested restarts for HA, its core and HACS

@sockless-coding
Copy link
Owner

The problem seems to occur when there is an issue with the servers during initialization. I'm going to see if I can add some checks to handle that.
Reloading the integration or restarting HA should solve the issues as long as the Panasonic Servers are ok.

1 similar comment
@sockless-coding
Copy link
Owner

The problem seems to occur when there is an issue with the servers during initialization. I'm going to see if I can add some checks to handle that.
Reloading the integration or restarting HA should solve the issues as long as the Panasonic Servers are ok.

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