core icon indicating copy to clipboard operation
core copied to clipboard

Failed to Setup

Open nld77 opened this issue 6 months ago • 10 comments

The problem

This integration has been working fine for the last year or more, but since Dec20th 2023.. The intergration has failed to setup.. Nothing changed in HA configuaration

When I looked at the devices in the integration, they all show as unavailable.

What version of Home Assistant Core has the issue?

core-2023.12.1

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

nld77 avatar Dec 21 '23 21:12 nld77

Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, 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 close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign overkiz Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove 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)

home-assistant[bot] avatar Dec 21 '23 21:12 home-assistant[bot]

Please turn on debug mode, and share your log. Did this happen after a recent update?

iMicknl avatar Dec 21 '23 21:12 iMicknl

Screenshot 2023-12-21 223433 home-assistant_overkiz_2023-12-21T23-23-45.434Z.log

The Screenshot shows that the HomeKit Key was unavailable from 20/12/23 at 23:00 approx. I think it is about this time that it stopped working.

Screenshot 2023-12-21 2234331

I hope this is what you are asking for..

nld77 avatar Dec 21 '23 23:12 nld77

Thanks! This is a bug in the integration, I will fix this soon.

If you want to have it fixed in the mean-time, you can remove the config entry for Overkiz and add it again.

2023-12-21 22:37:25.601 WARNING (MainThread) [homeassistant.config_entries] Config entry 'xxxx' for overkiz integration could not authenticate: Invalid authentication
2023-12-21 22:37:25.626 INFO (MainThread) [homeassistant.setup] Setup of domain assist_pipeline took 1.1 seconds
2023-12-21 22:37:25.678 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 754, in _async_init_reauth
    await hass.config_entries.flow.async_init(
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 880, in async_init
    flow, result = await task
                   ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 908, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 389, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 357, in async_step_reauth
    self._api_type = self._reauth_entry.data[CONF_API_TYPE]
                     ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'api_type'

iMicknl avatar Dec 22 '23 13:12 iMicknl

Still not working for me after updating to latest HASS or removing Overkiz

log: 2023-12-31 10:40:10.154 ERROR (MainThread) [homeassistant.components.overkiz] Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 150, in async_step_cloud await self.async_validate_input(user_input) File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 81, in async_validate_input await self.async_set_unique_id(gateway_id) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1614, in async_set_unique_id raise data_entry_flow.AbortFlow("already_in_progress")

Tried Cloud and Local.

razor109 avatar Dec 31 '23 09:12 razor109

Thanks! This is a bug in the integration, I will fix this soon.

If you want to have it fixed in the mean-time, you can remove the config entry for Overkiz and add it again.

...

Hi! Thanks for your great work on this integration! I am also affected by the same problem. But it seems it also doesn't work for me after removing Overkiz and re-adding it at all. I don't understand why, because i don't see anything in home-assistant.log. After Overkiz was removed HA auto-discovered the Somfy bridge in the devices page. When configuring it from there it simply gives the (dutch) error "Kan geen verbinding maken" / "Cannot connect". Nothing shows up in the log file. I confirmed that the local dns name gateway-xxxxx.local is reachable in the network. That is using local API.

When trying to set it up via cloud API i get the same error as razor109 above, already_in_progress.

As it stands now i'm unable to set up the Overkiz integration at all. I'm happy to help test or provide feedback if that would provide any help getting this resolved.

jeffreykog avatar Jan 10 '24 08:01 jeffreykog

i have what I think is the same issue or could be related anyways. Using a Somfy 1870755 Connectivity Kit. Worked fine using Overkiz but now says device is not in developer mode. So I head over the Somfy site to (re) enable developer mode but now it is not an option for my registered device. So I phoned Somfy UK and they say this particular box has never supported developer mode. Only the Tahoma switch (at 3 times the price) does. Which is very odd given that it definitely was working and the entities all show in Home Assistant..Would appreciate is anyone can tell me whether I am going nuts. Guess the workaround is to go via Alexa which does see the Tahoma box via the relevant skill. But clarifications or news of similar experience welcome. Thanks

ianground avatar Jan 15 '24 18:01 ianground

@ianground developer mode (local API) has never been supported by the Somfy Connectivity Kit unfortunately. Only HomeKit is supported, as a local integration.

iMicknl avatar Jan 15 '24 18:01 iMicknl

Thanks for your reply. I really cant remember how I set this up but my current Home Assistant setup shows all my blinds and SOMFY connectivity box. But none of them are "available" any more. How come they show at all if that kit does not support developer mode. Am i confused about whether I used local or cloud API? Does the cloud API actually work? Settings_–_Home_Assistant

ianground avatar Jan 15 '24 18:01 ianground

@ianground please create a new issue if you face issues, your issue is most likely not related to this issue. For connectivity kit, you are using the Cloud API indeed.

iMicknl avatar Jan 15 '24 18:01 iMicknl