Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Overkiz, Somfy] Unable to authenticate against Atlantic Cozytouch #75394

Closed
Math43 opened this issue Jul 18, 2022 · 15 comments · Fixed by #79503
Closed

[Overkiz, Somfy] Unable to authenticate against Atlantic Cozytouch #75394

Math43 opened this issue Jul 18, 2022 · 15 comments · Fixed by #79503

Comments

@Math43
Copy link

Math43 commented Jul 18, 2022

The problem

Hello,

After installing a NaviClim kit to automate my four Atlantic AC, i'm unable to add Overkiz integration to HA, after entering my credentials following message is display "Authentification non valide"

https://www.atlantic.fr/Piloter-les-appareils/Via-smartphone/Solutions-connectees/Pack-Naviclim

Credentials are valid on Atlantic CozyTouch Android APP

What version of Home Assistant Core has the issue?

2022.7.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Overkiz (by Somfy)

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

@probot-home-assistant
Copy link

overkiz documentation
overkiz source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @iMicknl, @vlebourl, @tetienne, 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!
(message by CodeOwnersMention)

@iMicknl
Copy link
Contributor

iMicknl commented Jul 18, 2022

Thanks for reporting. We just received a similar report from another user, also using CozyTouch. iMicknl/ha-tahoma#816

Perhaps CozyTouch did change their authentication method, as other vendors have done in the past. Would you be able to contact me via Discord? (iMick#1903). Happy to have a look how we can resolve this.

Am I correct that you are a new user of CozyTouch (and thus this integration), or did it work in the past?

@Math43
Copy link
Author

Math43 commented Jul 18, 2022

Thanks for quick reply, Yes I'm a new user of Coytouch and Overkiz integration.

I'm going to reach you over Discord as requested :) !

@sylvaindd
Copy link

Same here for me.
I will contact you via Discord in case you need some help to debug.

@nonameboy007
Copy link

Hello,

Same for me, i have the same issue too.

Keep us informed please ;-)

Cheers

@iMicknl
Copy link
Contributor

iMicknl commented Jul 19, 2022

@nonameboy007 please add more information, or just add a thumbs up to the original post. Are you also a new user of the CozyTouch app / hub?

@nonameboy007
Copy link

Hello @iMicknl ,

Sorry. I m a new user of the cozytouch app yes.

And when i try to login through the ha plugin, i got the folowing message: incorrect username or password. We are ok that i have to enter my email password and choose the hub atlantic cozytouch?

When i m logged in through the cozitouch atlantic app, with the same credentials, its working.

I have no log to send, because i see nothing on the ha log event.

Thanks

@sylvaindd
Copy link

It seems to come from Overkiz as Cozytouch authentication worklow works.
This API https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/login returns the error
{ "errorCode": "AUTHENTICATION_ERROR", "error": "Bad credentials" }

@Math43
Copy link
Author

Math43 commented Sep 12, 2022

Hello @iMicknl, any update on this issue ?

Regards,
Math

@iMicknl
Copy link
Contributor

iMicknl commented Oct 2, 2022

I have been busy lately, thus a later update than planned, hereby a write-up.

@sylvaindd helped me by providing a full MITM proxy file. In his case they are not using any Overkiz API servers, which is strange. As we see in the Overkiz implementation the initial login to CozyTouch server is successful and returns a token, but the login to Overkiz API with this token fails.

I spoke to @nonameboy007 and both have the Navilink thermostat with a Navilink Connect (hub). This is not an Overkiz hub and therefore we can probably not support this in the Overkiz integration.

@Math43, could you share what hardware (and hub) you use? I will see if I can clarify the error message in Overkiz integration to note that we cannot support these devices. In your start post it seems that you have a similar hub, the Navilink Connect.

In theory it would be possible to write another integration for the Navilink devices, based on the REST API from the MITM proxy file.

@nonameboy007
Copy link

Hello @iMicknl ,

I have a naviclim hub paired with a takao m2.

Tell me If you want more trace with the mitm file( to catch some api call).

Cheers

@iMicknl
Copy link
Contributor

iMicknl commented Oct 2, 2022

Unfortunately, your devices won't be supported in the Overkiz integration. Navilink / Naviclim devices are not based on an Overkiz hub and thus are not using the Overkiz platform. All API requests are using the Atlantic API, instead of the Overkiz API.

You could create a feature request on the Home Assistant community forum, where you include the details and discuss with other users. It should be possible to create an integration for this, but I won't be working on this.

For now, my proposal to core will be to change from
Screen Shot 2022-10-02 at 22 34 10
to
Screen Shot 2022-10-02 at 22 34 00

@Math43
Copy link
Author

Math43 commented Oct 3, 2022

Hello @iMicknl,

I'm using same hardware as @nonameboy007, Naviclim hub with Takao M2.

Regards,
Math

@Math43
Copy link
Author

Math43 commented Oct 4, 2022

@nonameboy007 I'm interesting in your mitm config to capture data , could you contact me in private ?

Math#7458 on discord.

Thanks !

@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants