home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.26k stars 30.24k forks source link

Rexel Energeasy Connect does not work in Overkiz integration due to API change #70869

Closed cyjud06 closed 4 months ago

cyjud06 commented 2 years ago

The problem

Overkiz integration does not work anymore with Rexel Energeasy Connect. Since several days It asked to reconfigure credentials then following error appears in integration. There are also several overkiz instances that appears in dashboard with strange names like" Gateway: 1212-8314-6818"

Failed to set up: Invalid authentication In HA logs there's only followinf error message: 2022-04-26 09:55:05 WARNING (MainThread) [homeassistant.config_entries] Config entry 'xxxxx@gmail.com' for overkiz integration could not authenticate: Invalid authentication

What version of Home Assistant Core has the issue?

core-2022.4.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

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?

2022-04-26 09:55:05 WARNING (MainThread) [homeassistant.config_entries] Config entry 'xxxxx@gmail.com' for overkiz integration could not authenticate: Invalid authentication

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

overkiz documentation overkiz source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

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 commented 2 years ago

Unfortunately, this is not something we can fix at this moment, see https://github.com/iMicknl/ha-tahoma/issues/591 for context.

It seems that Rexel did move to their own authentication system powered by Azure B2C. I have done some tests / reverse engineering, however I couldn't get it working yet. It seems that they didn't enable the user/password flow, thus only support OAuth 2. I don't think we can implement this, without them providing us with an OAuth client id and a redirect URL for nabu casa.

Best would be to reach out to Rexel and request them to open up their authentication and/or request if they can enable a local API (like Somfy just did).

nicoxm52 commented 2 years ago

@iMicknl Hi, since the last post, have you got any positive update about this Rexel gate ?

cyjud06 commented 2 years ago

Hi,

No positive update from rexel: I contacted their support and forwarded your email, they answer they couldn’t help us.

Le sam. 28 mai 2022 à 23:53, nicoxm52 @.***> a écrit :

@iMicknl https://github.com/iMicknl Hi, since the last post, have you got any positive update about this Rexel gate ?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/70869#issuecomment-1140334246, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATZIQA2HEABZKNVLH42CYDTVMKIXFANCNFSM5UOO43EA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

duonghoanghai commented 2 years ago

Out..out...out

Vào 16:06, T.7, 27 Th8, 2022 github-actions[bot] @.***> đã viết:

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/70869#issuecomment-1229155394, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASNJPPC2OYXKLCZJMUHZ7MDV3HLCDANCNFSM5UOO43EA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

PieTr031 commented 2 years ago

Hello EveryOne,

I just install HA (V8.5) and I can't connect to my E.Connect 2 (V2.5.6).

When I tried to configure Overkiz I have the error "Invalid authentication" with the rights credentials (checked and cross checked to ensure password are the good one :p )

I read all posts above and I understood that Rexel found a new way to protect the account with Azure B2C & Double AuthFactor but is there any solutions for us or is this a huge unsolvable Mess ? :D

Sorry if I ask again for an already resolved topic.

Pierre

iMicknl commented 2 years ago

@PieTr031 unfortunately this is still not solved. It seems that because they switched to Azure B2C, the security has been improved a lot. They don't allow the user/password flow.

I am really depending on Rexel to provide a solution for us. Anyone that has been in touch with them? Technically it is possible, but they need to grant access to Nabu Casa / Home Assistant.

PieTr031 commented 2 years ago

Thanks a lot for your answer @iMicknl...

I will try to contact them and speak about "grant access to Nabu Casa / Home Assistant" but I thought that Support will laugh on my face :)

Veher-el commented 2 years ago

You're right !

We should not have any hop on this side! I reached them and definitly they are not interested by home assistant integration... :(

Even if their system is quite good, it is not sufficient for advanced users and it suffers of a limited integration device number.

I am checking another provider : somfy ...

PieTr031 commented 1 year ago

Hello @HerveLeMen,

Thanks for your feedback, same on my side, they are not interested!!!

I'd like to switch on Tahoma but my heater are working ONLY with that box :/

Really angry against the provider of my solution ;)

Regards all and thanks all for the job!

iMicknl commented 1 year ago

@PieTr031 that's a pity...

There are ways to overcome this, but they can't be done at scale. If you can reverse engineer / capture the requests that the official app does, you can temporarily authenticate using that token. With the token / session, you can create a secondary user account with your own credentials and this will work without the authentication of Rexel.

It is not an easy ride at all, but if someone would like to investigate this, be my guest. I can provide you with the endpoints and command to create an extra account, if you are able to do the digging and request the access token.

thierrydesixfours commented 1 year ago

@iMicknl That a very good news !

I 'm very interested in studying with you the solution What should I do exactly ?

Bj0rnin99 commented 1 year ago

I have also this authentification issue with Home Assistant and an Rexel Energeasy Connect Hub. I'm also interrested to have a solution please.

iMicknl commented 1 year ago

@thierrydesixfours @Bj0rnin99 first you need to see if there is a way to sniff the network traffic from the official Rexel app (or site if there is one). If someone is able to figure this out, we can move to the next steps.

PieTr031 commented 1 year ago

Hello,

I'm not really good in that kind of informatic but I can help if needed :)

What do you heard by sniff the network traffic? We need software like Wireshark?

Bj0rnin99 commented 1 year ago

Hello @iMicknl,

You are right, it should be technically possible because i can link my Energeasy connect accompte with "Home" app by Google.

To log in to the web site :

https://utilisateur.energeasyconnect.com/user/#/login

We are calling the following URL :

https://consumerlogin.rexelservices.fr/ with "get" parameters

Here is an exemple :

https:// consumerlogin.rexelservices.fr/[ENCRYPTED_USER]/B2C_1A_SigninOnly/api/CombinedSigninAndSignup/confirmed?rememberMe=false&csrf_token=[ENCRYPTED_TOKEN]&tx=StateProperties=[ENCYPTED_PROPERTIES ?]&p=B2C_1A_SigninOnly&diags={"pageViewId":"75f19015-ecad-4f13-94c1-d53c3408f6c9","pageId":"CombinedSigninAndSignup","trace":[{"ac":"T005","acST":1669800163,"acD":0},{"ac":"T021 - URL:https://resources.rexelservices.fr/adb2c/enduser/html/unified.html","acST":1669800163,"acD":7},{"ac":"T019","acST":1669800163,"acD":3},{"ac":"T004","acST":1669800164,"acD":6},{"ac":"T003","acST":1669800164,"acD":1},{"ac":"T035","acST":1669800164,"acD":0},{"ac":"T030Online","acST":1669800164,"acD":0},{"ac":"T002","acST":1669800171,"acD":0},{"ac":"T018T010","acST":1669800169,"acD":1550}]}

mycanaletto commented 1 year ago

Any news ?

Bj0rnin99 commented 1 year ago

Instead sending individual emails to Rexel to solve this issue, i propose to send comments on there Facebook page to ask when his hub will be compatible with Home assistant :) That will be perhaps more efficient

Bj0rnin99 commented 1 year ago

I have send again an Email to Energeasy connect support :

Here is the answer :

Bonjour,

Malheureusement, Home Assistant n'étant pas une solution de nos services, nous ne pouvons pas forcément vous venir en aide sur ce sujet. Je vais remonter votre demande auprès de nos services techniques.

Par rapport aux scénarios que vous souhaitez faire, je peux vous proposer la solution IFTTT. Compatible avec nos services. https://ifttt.com/

Cordialement,

L'équipe support Energeasyconnect

Translation :

Hello,

Unfortunately, Home Assistant is not a solution of our services, so we cannot help you on this subject. I will forward your request to our technical services.

Regarding the scenarios you will do next, I can offer you the IFTTT solution. Compatible with our services. https://iftt.com/

Regards,

The Energeasyconnect support team

Bj0rnin99 commented 1 year ago

Hi all,

On my side, i have finally found a way to do what i wanted. I wanted to run a scene on my Energeasy Connect from Home Assistant.

The energeasy scenes are accessibles by IFTTTwhen energeasy connect is linked to Google Home.

So, from HA i send a WebHooks to IFTTT, which can run the energeasy scene.

I m using a free account in IFTTT.

For the long term, I would prefer the link between energeasy connect and HA could be directly possible

JohnB7777 commented 1 year ago

Hi all,

On my side, i have finally found a way to do what i wanted. I wanted to run a scene on my Energeasy Connect from Home Assistant.

The energeasy scenes are accessibles by IFTTTwhen energeasy connect is linked to Google Home.

So, from HA i send a WebHooks to IFTTT, which can run the energeasy scene.

I m using a free account in IFTTT.

For the long term, I would prefer the link between energeasy connect and HA could be directly possible

Hello,

I'm very interested ! Could you explain how do you did ?

I have a google account, a IFTTT account, I have linked my Energyeasy account to my Google Home, and also linked Energyeasy to IFTTT. But I don't know how to procede now.

Thank you !

JohnB7777 commented 1 year ago

Hello @Bj0rnin99

I had no answer on my previous message and I still don't know how to procede. Can you help me ?

Thank you !

Veher-el commented 1 year ago

Hello

Were you able to sniff the network? Did you progression on this potential solution?

Tell me if i can help you, i would not stat in this corner

BR

Le mer. 30 nov. 2022, 09:49, Mick Vleeshouwer @.***> a écrit :

@thierrydesixfours https://github.com/thierrydesixfours @Bj0rnin99 https://github.com/Bj0rnin99 first you need to see if there is a way to sniff the network traffic from the official Rexel app (or site if there is one). If someone is able to figure this out, we can move to the next steps.

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/70869#issuecomment-1331821241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVEK2F2F7YTOCOA62QIUOR3WK4IJHANCNFSM5UOO43EA . You are receiving this because you were mentioned.Message ID: @.***>

Bj0rnin99 commented 1 year ago

Hi @JohnB7777,

Sorry for the late answer.

Here is my Applet in ITFFF :

image

You can choose the "Event Name" in the web request part, it will be used later in HA (in the action group, i can see the scene i have created in Energeasy connect Web site because linked to my google home account)

In home assistant cloud i have a WebHooks linked to my IFTTT account

image

And finally i can call IFTTT Applet in HA with the name you have choose in IFTTT:

image

That can help you ?

JohnB7777 commented 1 year ago

@Bj0rnin99 Thanks for your message, but I haven't understand all the process.

Must I have linked my Google Home account with my IFTTT account ? How can I do that ? I try to follow a tutorial on a website, but without success.

Also, you are talking about "Home Assistant Cloud" : it's with the paid subscription ? Last point : I linked my Google Home account with the Energeasy Connect and Google detect my connected objets. Could we control them whitout IFTTT ? If the answer is yes, I guess it's necessary to have Home Assistant Cloud ?

Thanks again !

Bj0rnin99 commented 1 year ago

@JohnB7777

To see the energeasy scenes, you have to link your Google account in IFTTT : https://ifttt.com/settings

image

About Home Assistant Cloud, i m using Nabu Casa, it's a Trial version, I' m not sure if that will works again at the end of the trial. But i have this in my configuration.yaml :


# Example configuration.yaml entry
ifttt:
  key: MY_KEY

i dont remember where MY_KEY is coming from :S Perhaps added automatically when i have add IFTTT into HA

image

You can not control directly your objects with a free account of IFTTT, but you can run a scene which is visible in Google Home.

You have to create scene in the Eanergeasy connect interface :

image

That works but I m looking for a better solution

mycanaletto commented 1 year ago

This is all very nice and I understand that it can help, but the goal is to do without the cloud as much as possible, not to add one more...

If Google or IFTTT connect with Eanergeasy, Home Assistant, NabuCasa, should be able to do it natively if they get in touch with them ... as they did for example for Tuya if they consider that the demand is strong enough ...

Bj0rnin99 commented 1 year ago

@mycanaletto
I agree with you, i would prefer a simpler and better solution too, but i can not stay waiting without action. I have contact the Energeasy Support several times without good news. I suggest to you to do the same :)

https://www.energeasyconnect.com/home-utilisateur/contact-utilisateur

They said that eanergeasy connect box is not compatible with HA

perhaps if lots of person contact them for the same issue they will have a look ...

mycanaletto commented 1 year ago

perhaps if lots of person contact them for the same issue they will have a look ...

I did it like others. The HA team (Nabu Casa) must do it and take the initiative.

JohnB7777 commented 1 year ago

Thanks for the explanation, I will test and I will tell you if I need more help ! :) And I just sent a message to Energeasy Support, I hope they will consider our request !

Veher-el commented 1 year ago

@iMicknl, Did this information help you to find a workaround? The Google home application process can not be reproduce on HA?

Thanks for your help and time

Le jeu. 1 déc. 2022, 08:46, Bj0rnin99 @.***> a écrit :

Hello @iMicknl https://github.com/iMicknl,

You are right, it's should be technically possible because i can link my Enenegeasy connect accompte into "Home" app by Google.

To log in to the web site :

https://utilisateur.energeasyconnect.com/user/#/login

We are calling the following URL :

https://consumerlogin.rexelservices.fr/ with "get" parameters

Here is an exemple :

https:// consumerlogin.rexelservices.fr/[ENCRYPTED_USER] _1A_SigninOnly/api/CombinedSigninAndSignup/confirmed?rememberMe=false&csrf_token= [ENCRYPTED_TOKEN]&tx=StateProperties=[ENCYPTED_PROPERTIES ?]_1A_SigninOnly&diags={"pageViewId":"75f19015-ecad-4f13-94c1-d53c3408f6c9","pageId":"CombinedSigninAndSignup","trace":[{"ac":"T005","acST":1669800163,"acD":0},{"ac":"T021

  • URL:https://resources.rexelservices.fr/adb2c/enduser/html/unified.html ","acST":1669800163,"acD":7},{"ac":"T019","acST":1669800163,"acD":3},{"ac":"T004","acST":1669800164,"acD":6},{"ac":"T003","acST":1669800164,"acD":1},{"ac":"T035","acST":1669800164,"acD":0},{"ac":"T030Online","acST":1669800164,"acD":0},{"ac":"T002","acST":1669800171,"acD":0},{"ac":"T018T010","acST":1669800169,"acD":1550}]}

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/70869#issuecomment-1333339520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVEK2FYGFYHKMWW3A5T53I3WLBJVZANCNFSM5UOO43EA . You are receiving this because you were mentioned.Message ID: @.***>

Bj0rnin99 commented 1 year ago

@iMicknl

Do you have good news for us ? Although, i found a workaround for easiest scripts, i would be interested for a better solution.

I hesitate to buy a Tohama box :(

iMicknl commented 1 year ago

I haven't worked on this, since I don't own a Rexel Energeasy Connect box.

Bj0rnin99 commented 1 year ago

@iMicknl

Can we do something to help you ? Could we imagine trying to contact Rexel directly to find a technical solution with them ?

Veher-el commented 1 year ago

Yes you can but their previous answers do not let us any hope... There are not interested on interoperability.

On my side, i have finaly migrated on Somfy.

Le mar. 14 févr. 2023, 17:09, Bj0rnin99 @.***> a écrit :

@iMicknl https://github.com/iMicknl

Can we do something to help you ? Could we imagine trying to contact Rexel directly to find a technical solution with them directly ?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/70869#issuecomment-1429996708, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVEK2FZYXAXARVOAEQMT6J3WXOU2NANCNFSM5UOO43EA . You are receiving this because you were mentioned.Message ID: @.***>

fboulange commented 1 year ago

Hi, I send an email last week about supported devices and about Home Assistant.

Here is the reply : "La compatibilité de Home Assistant est en développement" (HA compatibility is being developed)

No date about its release,.but it's a great news for us !

Screenshot_20230320-124525.

Updated compatibility list : Catalogue_compressed.pdf

mycanaletto commented 1 year ago

I don't think we should expect anything from these people who think above all to preserve their closed business... And if something miraculous happens, it will be the cloud.

The only hope is the reverse... that someone finds a parallel entry point.

PieTr031 commented 1 year ago

Pwaaaa, amazing news!!!!!

tetienne commented 1 year ago

@fboulange It would be nice if they can contribute to the existing integration instead of starting from scratch. Except if they code their own API client wrapping the existing Overkiz API, it will split effort.

fboulange commented 1 year ago

@fboulange It would be nice if they can contribute to the existing integration instead of starting from scratch. Except if they code their own API client wrapping the existing Overkiz API, it will split effort.

I end up saying the same thing to the guy From Rexel : The Ha community is available to exchange / help / test with any integration of their system.

I known it might be not imminent but at least they acknowledge our existance :)

BTW my towel dryer has just been added to the compatibility list (Thermor Allure 3 IO) so it's a good point to see them updating their solution.

Have faith dudes ;)

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

PieTr031 commented 1 year ago

Hello, Update on HA 2023.6.2 done and issue still there.

WE are waiting for feedback from REXEL.

Thanks for your advice.

Bj0rnin99 commented 1 year ago

Same for me,

Still not working :

image

mycanaletto commented 1 year ago

Nothing new under the sun... Rexel still doesn't work, and I think this is deliberate on their part... You can work around it with Tahoma or Cozytouch, but it doesn't work 100% and it's not very reliable... In short, the worst possible environment!

iMicknl commented 1 year ago

Rexel does not provide a way to authenticate, so it can't be supported. TaHoma and CozyTouch are supported.

Bj0rnin99 commented 1 year ago

Hi All,

I have a bad news ... I send an email to have a prevision date about the HA compatibility here is the answer :

Bonjour M.

Je reviens vers vous pour votre demande sur la compatibilité Home Assistant.

J'ai contacté notre équipe de développement. Après consultation, à l'heure actuelle, Home Assistant n'est pas une solution que nous allons développé sur notre solution.

Je suis navré.

Nous restons disponibles si besoin.

Cordialement,

L'équipe support Energeasyconnect

The HA compatibility will not be developped :(

mycanaletto commented 1 year ago

Salut tout le monde,

J'ai une mauvaise nouvelle... J'envoie un mail pour avoir une date prévisionnelle sur la compatibilité HA voici la réponse :

Bonjour M Je reviens vers vous pour votre demande sur la compatibilité Home Assistant. J'ai contacté notre équipe de développement. Après consultation, à l'heure actuelle, Home Assistant n'est pas une solution que nous allons développer sur notre solution. Je suis navré. Nous restons disponibles si besoin. Cordialement, L'équipe support Energeasyconnect

La compatibilité HA ne sera pas développée :(

Surprised? They don't even know what it's all about, to them you're a lone DIYer....

iMicknl commented 1 year ago

@Bj0rnin99 I didn't expect them to develop a HA integration tbh, even Somfy does not have any interest to work on this. However, if they open up their authentication and provide us with an application key, we are happy to integrate Rexel again.

It seems that the userbase for Rexel is very small. In theory, as shared earlier, it should be possible to (manually) sniff and gather a temporary access token to the Rexel Overkiz server. Using the API, you can create a local user account that does not use the new Rexel authentication.