yenoiwesa / homebridge-connexoon

A homebridge plugin to integrate Somfy blinds with the Connexoon RTS hub
Apache License 2.0
27 stars 2 forks source link

Failing to log in successfully #36

Closed woodgieboodgie closed 2 years ago

woodgieboodgie commented 2 years ago
Could not login with any of the authentication methods.
[My Connexoon Hub] Failed to get device list undefined
[My Connexoon Hub] Could not initialise platform, will retry in 5 min

i can log into the Somfy website with my email account as username and password.. no problem. config appears as:

{
    "platform": "Connexoon",
    "name": "My Connexoon Hub",
    "username": "andrew@xyz.com",
    "password": "password",
    "service": "Connexoon"
}

Am i missing something?

yenoiwesa commented 2 years ago

Hey @woodgieboodgie, what region/country do you live in? Are you sure the Connexoon service is the right one for your region?

woodgieboodgie commented 2 years ago

AUS. Is the ConnexoonRTS that is running on the Somfy app is the right one?

yenoiwesa commented 2 years ago

Yeah for Australia you should definitely be using ConnexoonRTS as service. This is the correct one for our region.

woodgieboodgie commented 2 years ago

Should i change it from 'Connexoon' to 'ConnexoonRTS'? Is that '@' symbol in my login an issue?

woodgieboodgie commented 2 years ago
[My Connexoon Hub] Failed to login via Somfy OAuth { message: 'error.invalid.grant', data: [], uid: '619cxxxxx' }
[23/11/2021, 4:56:38 pm] [My Connexoon Hub] Could not connect with OAuth, attempting simple auth
[23/11/2021, 4:56:38 pm] [My Connexoon Hub] Connecting to tahomalink.com...
yenoiwesa commented 2 years ago

Mate can you share your new config, because tahomalink.com is definitely not the right service.

woodgieboodgie commented 2 years ago
{
    "platform": "Connexoon",
    "name": "My Connexoon Hub",
    "username": "andrew@xyz.com",
    "password": "mypassword",
    "service": "Connexoon"
}
yenoiwesa commented 2 years ago

Yeah for Australia you should definitely be using ConnexoonRTS as service. This is the correct one for our region.

Can you try this ⏫

woodgieboodgie commented 2 years ago

OK, getting different errors in the log now:

[23/11/2021, 5:14:32 pm] [My Connexoon Hub] Failed to login via Somfy OAuth { message: 'error.invalid.grant', data: [], uid: '1234512345' }
[23/11/2021, 5:14:32 pm] [My Connexoon Hub] Could not connect with OAuth, attempting simple auth
[23/11/2021, 5:14:32 pm] [My Connexoon Hub] Connecting to **ha201-1.overkiz.com...**
[23/11/2021, 5:14:33 pm] [My Connexoon Hub] Failed to login via Simple Auth { errorCode: 'AUTHENTICATION_ERROR', error: 'Bad credentials' }
[23/11/2021, 5:14:33 pm] [My Connexoon Hub] Could not login with any of the authentication methods.
[23/11/2021, 5:14:33 pm] [My Connexoon Hub] Failed to get device list undefined
[23/11/2021, 5:14:33 pm] [My Connexoon Hub] Could not initialise platform, will retry in 5 min
yenoiwesa commented 2 years ago

Okay, well at this point I unfortunately cannot do much anymore. It seems that you are using the wrong credentials. Are you sure that you are using the exact same email address and password in the JSON file as you used in the Somfy Connexoon RTS app? Does your password contain any JSON reserved characters that would need escaping, such as backslash or double-quote?

woodgieboodgie commented 2 years ago

Have changed password and updated it in config and it has worked. Thanks!!

yenoiwesa commented 2 years ago

Glad to hear that! Cheers!