rospogrigio / daikin_residential

Cloud control of Daikin devices that are supported by Daikin Residential Controller app.
GNU General Public License v3.0
283 stars 37 forks source link

Unable to retrieve token #137

Open simjogit opened 1 year ago

simjogit commented 1 year ago

Hi, I am using HA 2023.1.2 in a Docker container on a Synology NAS. Last week I installed daikin_residential without problems and everything worked fine. Then, due to works going on in our street, we lost internet connection for some hours. When the internet connection was restored my Nas got I new IP address and since then the integration no longer works. I tried to reinstall it but without success. I always get the same error:

Logger: custom_components.daikin_residential.config_flow Source: custom_components/daikin_residential/config_flow.py:72 "ERROR (MainThread) [custom_components.daikin_residential.config_flow] Failed to retrieve Access Token: ("Impossible to retrieve SAML Identity Provider's response: %s", NameError("name 'daikinunified' is not defined"))"

Any idea what goes wrong and how to solve it?

simjogit commented 1 year ago

Hi, Problem is solved. As it turned out, the error was located in daikin_api.py I uncommented line 448 (# _LOGGER.debug('DAIKINUNIFIED2: %s',daikinunified)) and that's what caused the error