marq24/ha-waterkotte-the-fork

Username/Password is wrong when setup integration

tobaco opened this issue · 8 comments

tobaco commented

Hi,

I tried to setup your integration but always get the message "Username/Password is wrong."
When I insert the IP in a browser, I can login with the same credentials.

The Log seems not helpful:

Logger: custom_components.waterkotte_heatpump
Source: custom_components/waterkotte_heatpump/config_flow.py:158
Integration: waterkotte_heatpump (documentation, issues)
First occurred: 19:53:58 (6 occurrences)
Last logged: 20:03:11

Bad logger message: undefined entity: line 1, column 144 ((ParseError('undefined entity: line 1, column 144'),))

This si my setup:

Core: 2024.2.1
Supervisor: 2024.01.1
Operating System: 11.5

Danke!

marq24 commented

just as quick question - what do you enter as host? [this should be really just the local IP address]...

and looks like that there is a error in the logging code of the integration that need to be fixed before we can find additional information about the root cause of your issue...

can you edit the custom_components/waterkotte_heatpump/config_flow.py line 158
and replace
_LOGGER.error(f"{exec}", exec)
with
_LOGGER.error(f"Exception while test credentials: {exec}")

Also I would like to ask you to enable debug logging as described here: https://github.com/marq24/ha-senec-v3/blob/master/docs/HA_DEBUG.md

TIA

tobaco commented

hi and thanks for your response late in the evening.

just as quick question - what do you enter as host? [this should be really just the local IP address]...

it's just the ip: 192.168.4.119

I replaced the line and added the debug logging.
but the log doesn't show any new info.

this is the only entry regarding the integration

2024-02-13 22:19:20.784 ERROR (MainThread) [custom_components.waterkotte_heatpump] Exception while test credentials: undefined entity: line 1, column 144

Could it be related to the new Python-Version in 2024.2.x?

Thanks!

marq24 commented

mhhh - I don't understand the LOG output undefined entity: line 1, column 144

I just made a quick test this morning with a fresh HA docker installation - and no issue setting up the integration in EcoTOUCH Mode... - since this is the only version I can test here - do you have to use EasyCon Mode?!

[https://community.home-assistant.io/t/waterkotte-heatpump-integration/522503/129]

tobaco commented

Hi,
yes, I think I have to use EasyCon. At least that‘s what it it says in the web view:
IMG_3368

Not sure about the differences between these two.

Regarding the Log output:
Could there be an issue with the logger itself?
It’s the only thing on line 1.

Danke für deine Hilfe!

marq24 commented

from the screenshot looks to me like a newer EcoTouch... would you mind simply give that a try?

tobaco commented

🤦🏼‍♂️

Ähm, ja, sorry …

Login worked now (thought it had to be EasyCon), but most of the sensors are „unbekannt“. Will take a closer look later and report back.

Thanks!

tobaco commented

Ok, the sensors needed some time. Looks good so far. Now I have to dig deeper and try to figure out some automations regarding solar power and heating.

Thanks!

marq24 commented

Vielen Dank für Dein hilfreiches Feedback - ich werde im neuen Release deutlicher machen, welcher MODE für welche Waterkotte Systeme zu verwenden ist... und auch das Theme mit dem "unknown" Status nach der Erstinstallation habe ich fixen können...