Overkiz (local API) fails to connect when using the IP address of the box instead of its hostname
The problem
The recommended workaround for https://github.com/home-assistant/core/issues/108595 is to use the IP address of the Tahoma switch instead of its hostname.
However, when trying to do so, I'm faced with an "Unknown Error"
Logger: homeassistant.components.overkiz
Source: components/overkiz/config_flow.py:232
integration: Overkiz ([documentation](https://www.home-assistant.io/integrations/overkiz), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+overkiz%22))
First occurred: 10:02:57 AM (2 occurrences)
Last logged: 10:03:07 AM
Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 232, in async_step_local
user_input = await self.async_validate_input(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 69, in async_validate_input
user_input[CONF_TOKEN] = await self._create_local_api_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 413, in _create_local_api_token
await local_client.login()
File "/usr/local/lib/python3.12/site-packages/pyoverkiz/client.py", line 191, in login
await self.register_event_listener()
File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyoverkiz/client.py", line 584, in register_event_listener
response = await self.__post("events/register")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyoverkiz/client.py", line 918, in __post
await self.check_response(response)
File "/usr/local/lib/python3.12/site-packages/pyoverkiz/client.py", line 981, in check_response
raise NotAuthenticatedException(message)
pyoverkiz.exceptions.NotAuthenticatedException: Not authenticated
even tho when I use the same username and password with the hostname, it connects successfully.
What version of Home Assistant Core has the issue?
core-2024.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Overkiz
Link to integration documentation on our website
https://www.home-assistant.io/integrations/overkiz
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, @tronix117, mind taking a look at this issue as it has been labeled with an integration (overkiz) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of overkiz can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign overkizRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
overkiz documentation overkiz source (message by IssueLinks)
I'm also experiencing this issue, but I cannot use the hostname to connect to the TaHoma Switch due to my specific network setup. I would appreciate any help on this!
I had the same problem, but I edited my /etc/hosts file including the proper IP/name pair (i.e. XXX.XXX.XXX.XXX gateway-xxxx-xxxx-xxxx.local ). Then, I used the name in the configuration wizard, which worked without a problem.
@mathieudutour do you still face these issues?
Not anymore but I can't remember what I did to make it work sorry. I think I reinstalled the integration from scratch and that time it worked