landroid_cloud icon indicating copy to clipboard operation
landroid_cloud copied to clipboard

Authentication failure

Open Rom1-B opened this issue 11 months ago • 72 comments

Describe the issue

I can't authenticate on Landroid_cloud. According to the logs my mail/password would be wrong, but they work on the Landroid app. So I don't think that's it.

I've tried several times to disconnect my mower from the app and reconnect it, as described in the README, but I'm still stuck.

What version of Home Assistant Core has the issue?

core-2024.3.3

What was the last working version of Home Assistant Core?

core-2024.3.3

What version of the Landroid Cloud integration do you have installed

v4.0.3

What type of installation are you running?

Home Assistant OS

Which make and model is the mower used for this integration?

Landroid WR153E - Firmware 3.32b1 - WORX

Diagnostics information (NOT log entries!)

None

Relevant log entries

2024-03-24 17:09:52.410 DEBUG (MainThread) [custom_components.landroid_cloud.config_flow] (Config) data: {'email': '***@***', 'password': '*****', 'type': 'Worx'}
2024-03-24 17:09:52.411 DEBUG (MainThread) [pyworxcloud] Initializing connector...
2024-03-24 17:09:52.411 DEBUG (MainThread) [pyworxcloud] Try getting correct CloudType from WORX
2024-03-24 17:09:52.412 DEBUG (MainThread) [pyworxcloud] Found cloud type <class 'pyworxcloud.clouds.CloudType.WORX'>
2024-03-24 17:09:52.412 DEBUG (MainThread) [pyworxcloud] Initializing the API connector ...
2024-03-24 17:09:52.412 DEBUG (MainThread) [pyworxcloud] Getting logger ...
2024-03-24 17:09:52.413 DEBUG (MainThread) [pyworxcloud] Initializing EventHandler ...
2024-03-24 17:09:52.414 DEBUG (SyncWorker_13) [pyworxcloud] Authenticating ***@***
2024-03-24 17:09:52.563 DEBUG (SyncWorker_13) [pyworxcloud] Authentication for ***@*** failed!
2024-03-24 17:09:53.716 ERROR (MainThread) [frontend.js.latest.202403070] Uncaught error from Firefox 124.0 on Windows 10
Error: Permission denied to access property "localName"
element (src/blocking-elements.ts:372:56)
sibling (src/blocking-elements.ts:355:34)

Additional information

No response

Rom1-B avatar Mar 24 '24 16:03 Rom1-B

Perhaps you have some strange character in your password. Else I cannot say other than what the logs say

MTrab avatar Mar 25 '24 05:03 MTrab

It's a 20-character password with uppercase, lowercase and numbers, but no special characters. I should also point out that the same identifiers were working at the end of last year (before winterizing the lawnmower). It's since I woke it up (2-3 weeks ago) that I've had the problem.

Is there anything I can do to get more details?

Rom1-B avatar Mar 25 '24 07:03 Rom1-B

Unfortunately not. The API only responds with authenticated or not authenticated.

MTrab avatar Mar 25 '24 07:03 MTrab

I've got the same issue with my Worx Landroid Plus WR165E. It works last week without any problems. I've got also just a password with uppercase, lowercase and numbers.

icesunny86 avatar Mar 26 '24 12:03 icesunny86

I have literally NO idea why you guys can't login.

Can you log in to this site? https://id.worx.com It should use the same API endpoints

MTrab avatar Mar 27 '24 09:03 MTrab

Can you log in to this site? https://id.worx.com

Yes, I can connect without any problem

Rom1-B avatar Mar 27 '24 12:03 Rom1-B

Very strange then. Got absolutely no clue then.

MTrab avatar Mar 27 '24 13:03 MTrab

Perhaps one of you could send your credentials to landroid_cloud (at) trab.dk - then I'll do some tests

MTrab avatar Mar 29 '24 11:03 MTrab

Yes, I've just sent it to you

Rom1-B avatar Mar 29 '24 12:03 Rom1-B

Yes, I've just sent it to you

No issues here on the latest version of the integration

MTrab avatar Mar 29 '24 13:03 MTrab

What do you mean? Were you able to log into HA with my account? I just tried again, it still fails. Could it be an entity conflict, since I deleted the old one, maybe there are still traces somewhere?

Rom1-B avatar Mar 29 '24 13:03 Rom1-B

I mean exactly what I wrote - I added the integration with your credentials (copy-paste) and it worked just fine. So as of now I'd rule the issue to be some kind of error at your side - sorry

MTrab avatar Mar 29 '24 13:03 MTrab

I also copy and paste, but I don't have the same success (it's not fair, I feel unloved 😢) And in the logs my mail and password are displayed in clear, so I'm sure they're the right values. Can it be a country restriction? Or can I force it, by setting the parameters directly in my config, without going through the GUI? How can I do this?

Rom1-B avatar Mar 29 '24 14:03 Rom1-B

Try removing and redownload the integration. I cannot say why it won't work for you. In a clean installation (dev environment) I works just fine

MTrab avatar Mar 29 '24 15:03 MTrab

It's done (several times), but authentication fails every time.

I think it's the registration of my config that's failing. Do I have to go through the GUI or can I save my config directly in configuration.yaml? What's the syntax?

I'd like to avoid redoing all my HA config.

Rom1-B avatar Mar 29 '24 17:03 Rom1-B

Only GUI config is available

MTrab avatar Mar 29 '24 17:03 MTrab

Is it working for you again now? It's still not working for me. I also restored an old backup as a test when it was still working. Unfortunately also without success. As already written in advance. A few weeks ago it still worked without any problems. Now suddenly from one day to the next only the error message. Unfortunately, reinstalling the integration did not help either. However, login works on all other platforms without any problems. I haven't changed anything in Home Assistant recently either...

icesunny86 avatar Apr 02 '24 14:04 icesunny86

Does any of you guys have the opportunity to try installing on a clean Home Assistant instance? Just to try that, as that is working fine here. Perhaps some of your other integrations are conflicting, but as I cannot recreate it's pretty hard for me to fix.

Perhaps even if you could all attach (NOT copy paste) the diagnostics to compare with my own working installation

MTrab avatar Apr 02 '24 14:04 MTrab

No, it still doesn't work. I've made a number of tests (removing other integrations, using older versions) but it's still the same error in the logs.

Rom1-B avatar Apr 04 '24 16:04 Rom1-B

Hello, I also have the same problem. I then installed a second home assistant in my home (just for testing purposes) and installed the Landroid integration on it and it works again. But I really don't feel like starting everything all over again on the new ha :-( I apologize for my bad English as I have it translated via Google

Blonski83 avatar Apr 04 '24 19:04 Blonski83

Guess something is conflicting, but I have no idea what

MTrab avatar Apr 04 '24 19:04 MTrab

Perhaps if you guys could start listing your integrations (yeah, I know it's a tedeious task), we could find the culprit. I have no idea what else to do as I cannot replicate this issue, sorry

MTrab avatar Apr 09 '24 10:04 MTrab

First of all, thank you for taking the trouble to find out which integration causes conflicts. Here is a list of my integrations:

  • Distance
  • AVM Fritz!Smart Home
  • Brother Printer
  • DLNA Digital Media Renderer
  • Eufy Security (HACS)
  • Forescast.Solar
  • Google Cast
  • HACS
  • Home Assistant Supervisor
  • Home Connect
  • Internet Printing Protocol (IPP)
  • LG webOS Smart TV
  • Meater
  • Meteorologisk institutt (Met.no)
  • Mobile app
  • MQTT
  • Netatmo
  • Philips Hue
  • Radio Browser
  • Seat Connect (HACS)
  • Sun
  • Sony Songpal
  • Synology DSM
  • Tuya
  • UPnP/IGD

Do you also want to know whether they were installed via HACS? I'll just write that in brackets after it.

Blonski83 avatar Apr 10 '24 18:04 Blonski83

Here are mine, I can write the list if it's more convenient?

image

Rom1-B avatar Apr 10 '24 18:04 Rom1-B

The only one I see, that could do something, and that I don't use myself, is Tuya (I use LocalTuya). Other than that, that idea looks like a dead end too

MTrab avatar Apr 11 '24 06:04 MTrab

Would it also be enough if you just deactivated the integration and then tried Landroid Cloud? or is it best to delete it completely?

Blonski83 avatar Apr 11 '24 08:04 Blonski83

Not sure which would be the best - also not even sure it is the conflicting integration :(

MTrab avatar Apr 11 '24 08:04 MTrab

I'll switch to localTuya this evening and see if it works. I will report

Blonski83 avatar Apr 11 '24 08:04 Blonski83

I just deleted the Tuya integration and restarted HomeAssistant. After that I didn't reinstall tuya but tried landroid cloud first and unfortunately it didn't work 😩

Blonski83 avatar Apr 11 '24 17:04 Blonski83

Same problem here. The integration just stops working yesterday. Now I've got an authentification error everytime, no matter what I do.

danielk117 avatar Apr 14 '24 15:04 danielk117