sockless-coding / panasonic_cc

Panasonic Comfort Cloud - Home Assistant Component
MIT License
137 stars 35 forks source link

Inital Setp Failed to renew token #220

Closed DonBlock closed 2 months ago

DonBlock commented 2 months ago

Hi everyone,

I'm new to Home Assistant, transitioning from IOBroker, and I'm excited to be here! Most of my devices have integrated smoothly with the panasonic_cc integration. Most of them are of the same type, and except for one device, they are working like a charm.

However, I'm having trouble with one specific device out of the group of same devices.

The integration found the device and created everything like the other devices. However, it doesn't display any values except for the firmware version. Within the system log, I keep encountering the following error:

vbnet Copy code This error originated from a custom integration.

Logger: custom_components.panasonic_cc.panasonic Source: custom_components/panasonic_cc/panasonic.py:79 integration: Panasonic Comfort Cloud (documentation, issues) First occurred: 12:17:12 PM (18 occurrences) Last logged: 12:34:13 PM

Failed to renew token for device af0ca7acf02190262001f2ec8a8523d779c6d0084788ea207f3ac8526650a6eb, giving up for now

Has anyone experienced a similar issue or can offer some guidance on how to resolve this? Any help would be greatly appreciated!

Thank you in advance!

Best,

Dennis

heldchen commented 2 months ago

I've seen this as well in the log for last night, but did not yet look into it as the integration keeps working for me...

image

will turn on debug logging this night and check tomorrow when the token is supposed to be refreshed.

@DonBlock if you can enable debug logging and post more details, please do so

DonBlock commented 2 months ago

Debug logging is enabled, but to be honest, I'm not sure if it's saved somewhere else. There's nothing additional within the log section of HA. I'm just guessing that the observed device without values is related to this message. By the way, I can control the device using the Panasonic app.

heldchen commented 2 months ago

retry the setup after you enabled the debug log, and when you encounter the issue, click on "disable debugging log" - you will get then the detailed log as a download and can upload it here (remove any unrelated entries & redact any sensitive data)

DonBlock commented 2 months ago

Attached you'll find the logfile. The Device MTZ16WKE is the one which does not show any vaules within HA. From the Logfile itself, it seems that the integration is capable of receiving data like the temperature.

Any ideas?

Thank you very much for your support.

heldchen commented 2 months ago

that is odd - you get successfully data for /deviceStatus/ but at the same time get a Failed to renew token for device error. it looks like the token refresh succeded, but then self._api.get_device(self.id) fails with a masked exception when the response is parsed.

image

@sockless-coding I think 2 things need to be done:

sockless-coding commented 2 months ago

@DonBlock it's the Left/Right swing mode that is causing the issue. What do you have it set to in the App?

If it's set to LeftMid it's a known issue listed as a known issue

DonBlock commented 2 months ago

Hi,

I‘m not sure where to find this Option. Swing is set Auto in the App. Can‘t set any left right options in the app.

Fan Speed is Auto or Quiet. There are in more additional settings.

Left / Right is something mechanical at the device and not software adjustable.

sockless-coding commented 2 months ago

@DonBlock v1.0.49 should work and only log a warning about invalid horizontal swing mode

DonBlock commented 2 months ago

Hi,

Thank so much, it‘s working like a charm.