alko icon indicating copy to clipboard operation
alko copied to clipboard

Option to reconfigure instead of reloading

Open DIYtechie opened this issue 7 months ago • 5 comments

Thank you once again for this integration that I use all the time. One issue I have is that after a while (a few months) the robot becomes unavailable in the integration and reloading it does nothing. I have to delete the integration and install it again, entering client ID etc. It would be nice to have the option to just reconfigure, essentially setting up the integration with the same user data again without having to type them in manually. I guess the ideal solution would be to have it reconfigure automatically when the robot becomes unavailable (or after a while)

DIYtechie avatar Apr 15 '25 14:04 DIYtechie

This is the error that raises up: Einrichtungsfehler, wird erneut versucht: 400, message='Bad Request', url='https://idp.al-ko.com/connect/token'

afuerhoff avatar May 02 '25 15:05 afuerhoff

Also ran into the issue. Had the integration active for 23 Days.

For now, it is sufficient to delete the Entity (not the whole Integration) but keep the Application Credentials. Then only the Username/Password is needed for the Setup.

AlexHuebi avatar May 03 '25 00:05 AlexHuebi

Good tip @AlexHuebi . @afuerhoff Let's use #14 for these Bad Request reports.

jonkristian avatar May 03 '25 10:05 jonkristian

We need to implement a reconfigure step. https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reconfiguration-flow

jonkristian avatar May 03 '25 10:05 jonkristian

We need to implement a reconfigure step. https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reconfiguration-flow

Awesome! Just ran into this issue again today and even though I kept the credentials, I stille had to type in client_id and secret + user and password again.

And it would be great if it would try to reconfigure automatically if the device has been unavailable for a few hours maybe.

DIYtechie avatar May 03 '25 11:05 DIYtechie

Hi :) Any idea when this might be implemented? Just ran into this issue again today (yesterday).

DIYtechie avatar Jun 06 '25 07:06 DIYtechie

I had this yesterday... Looks like it is like a wave ,and periodic :)

MiG-41 avatar Jun 06 '25 08:06 MiG-41

Hi :) Any idea when this might be implemented? Just ran into this issue again today.

Interesting. I believe it was actually yesterday mine disconnected as well. I think this speaks in favor of also having an automatic reconfiguration when the device has been unavailable for a few hours.

DIYtechie avatar Jun 06 '25 08:06 DIYtechie

In my restful implementation I had no issues. I think it is a problem with the refresh token used for authentication.

afuerhoff avatar Jun 06 '25 08:06 afuerhoff

Hi :) Any idea when this might be implemented? Just ran into this issue again today (yesterday).

Working on it now, should expect some updates today. I've finally got my mower working again, had some issues with charging cable and loop signal.

jonkristian avatar Jun 08 '25 11:06 jonkristian

Reconfigure is now available in v0.3.2.

jonkristian avatar Jun 08 '25 15:06 jonkristian

Thank you!

DIYtechie avatar Jun 09 '25 06:06 DIYtechie