panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Energy sensors and outside temperature not available after restart

Open bakoscsaba opened this issue 10 months ago • 13 comments

Checklist

  • [x] I have verified that the account and device works in the Comfort Cloud App.
  • [x] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [x] 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 avatar Jan 25 '25 11:01 bakoscsaba

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.

Ricks88 avatar Jan 25 '25 13:01 Ricks88

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

MadsBGr avatar Jan 26 '25 05:01 MadsBGr

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

I tried that, but no success for me.

danielbergholm avatar Jan 26 '25 06:01 danielbergholm

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

Mic9999 avatar Jan 26 '25 17:01 Mic9999

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..

Ricks88 avatar Jan 26 '25 18:01 Ricks88

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.

sockless-coding avatar Jan 26 '25 19:01 sockless-coding

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.

aitrus22 avatar Jan 27 '25 10:01 aitrus22

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

jeroenvdd avatar Jan 27 '25 11:01 jeroenvdd

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.

aitrus22 avatar Jan 27 '25 11:01 aitrus22

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

bakoscsaba avatar Jan 27 '25 12:01 bakoscsaba

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

MarkKuhmann avatar Jan 28 '25 04:01 MarkKuhmann

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.

sockless-coding avatar Jan 28 '25 18:01 sockless-coding

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.

sockless-coding avatar Jan 28 '25 18:01 sockless-coding