core icon indicating copy to clipboard operation
core copied to clipboard

Overkiz integration hangs on `Flow aborted: already_in_progress`

Open GilDev opened this issue 1 year ago • 8 comments

The problem

Everything was working fine, for a few months using the Cloud API, then a few weeks using the Local API, and everything became unavailable. I removed the integration and now can’t get it t connect anymore.

If I try to use the Local API, I get a “Failed to connect error” with no logs. Using the mDNS or the IP address of the TaHoma V2, enabling or disabling the “Verify SSL certificate” checkbox is the same.

Using the Cloud API, I get an “Unexpected error”:

Logger: homeassistant.components.overkiz Source: components/overkiz/config_flow.py:149 integration: Overkiz (documentation, issues) First occurred: 11:27:20 (1 occurrences) Last logged: 11:27:20

Unknown error Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 149, in async_step_cloud await self.async_validate_input(user_input) File "/usr/src/homeassistant/homeassistant/components/overkiz/config_flow.py", line 80, in async_validate_input await self.async_set_unique_id(gateway_id) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2451, in async_set_unique_id raise data_entry_flow.AbortFlow("already_in_progress") homeassistant.data_entry_flow.AbortFlow: Flow aborted: already_in_progress

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

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

GilDev avatar Oct 09 '24 09:10 GilDev

Hey there @imicknl, @vlebourl, @tetienne, @nyrodev, @tronix117, @alexfp14, 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 Oct 09 '24 09:10 home-assistant[bot]

Similar issue - mine has been working fine for about a year using somfy local API (europe) and stopped working altogether about a week ago.

my existing connection now gets an error "failed setup, will retry: failed to connect"

silkit avatar Oct 09 '24 14:10 silkit

same problem stopped working about two weeks ago. Zrzut ekranu 2024-10-09 204752

wisien avatar Oct 09 '24 18:10 wisien

@wisien you are not using the Overkiz integration... Please create a new issue.

@silkit @GilDev can you still access your box in the browser? Go to your mdns address or ip address, and port 8443. e.g. gateway-xxxx-xxxx-xxxx.local:8443. Most likely after an update your box is not available anymore in local mode, and it needs a reboot or you need to reenable the developer mode.

Regarding the already_in_progress issue when you try to configure a cloud api, after you have tried to configure the local API. I would need to research this, but in the mean-time a restart might solve this issue.

iMicknl avatar Oct 09 '24 19:10 iMicknl

@iMicknl Thanks for the reply. Indeed I cannot access it in my browser, though I had never tried before. I already restarted, the box, Home Assistant and my internet router but it didn’t help. The web interface says developer mode is enabled, I don’t see a way to disable it and re enable it (maybe it needs to be factory reset for this?).

A Cloud API configuration following a reboot of Home Assistant didn’t help either, still get that “already_in_progress” error.

GilDev avatar Oct 10 '24 08:10 GilDev

Odd - mine was rebooted the other day but didn't seem to change anything. However, i completely rebooted everything this morning; All Ubiquiti/Fiber/HA/UPS etc all shutdown and restarted. Wouldn't you know, it's come back online :-)

I have re-checked my somfy account and developer mode is still activated but oddly i have tried to access the somfy box via both the mdns address & ip address, and port 8443 - but neither will let me connect. I don't know if I've ever been able to though as i have never attempted to directly log into it this way. Not bothered by this though as it's comes back online and is functioning. Thank you - At least that seems to have resolved it for me

silkit avatar Oct 10 '24 11:10 silkit

@wisien you are not using the Overkiz integration... Please create a new issue.

@silkit @GilDev can you still access your box in the browser? Go to your mdns address or ip address, and port 8443. e.g. gateway-xxxx-xxxx-xxxx.local:8443. Most likely after an update your box is not available anymore in local mode, and it needs a reboot or you need to reenable the developer mode.

Regarding the already_in_progress issue when you try to configure a cloud api, after you have tried to configure the local API. I would need to research this, but in the mean-time a restart might solve this issue.

Thank you very much. I had the same problem and after a restart everything works again

Bpmman avatar Oct 13 '24 12:10 Bpmman

Any way to disable and enable back developer mode? Can’t seem to disable it from the Somfy’s web interface…

GilDev avatar Oct 13 '24 17:10 GilDev

Any way to disable and enable back developer mode? Can’t seem to disable it from the Somfy’s web interface…

No, only through support if I am not mistaken.

iMicknl avatar Oct 15 '24 14:10 iMicknl

Okay thanks. Cloud would be fine but still no way to get through that already_in_progress. Still haven’t tried factory resetting the TaHoma V2.

GilDev avatar Oct 15 '24 14:10 GilDev

Bonjour, J'ai le même problème que @GilDev : Overkiz fonctionnait parfaitement (Tahoma v2), puis depuis quelques jours, ni la local API, ni la cloud API ne fonctionnent (même erreur already_in_progress sur Cloud API. La local API retourne l'erreur "Échec de connexion" ). L'ensemble des appareils ont été redémarrés (box Tahoma, routeur et HA). Le mode développeur est activé sur la box Tahoma... Si vous avez des idées pour rétablir la connexion, je suis preneur. Merci d'avance.

fragadav avatar Oct 29 '24 18:10 fragadav

Résolu à l'instant. J'ai supprimé l'intégration Overkiz, puis l'ai recréé en passant directement par Cloud API.

fragadav avatar Oct 29 '24 19:10 fragadav

Also tried again yesterday, and the connection via the Cloud API worked, don't know what happened…

GilDev avatar Oct 29 '24 21:10 GilDev