ha-tahoma icon indicating copy to clipboard operation
ha-tahoma copied to clipboard

Cannot authenticate via Rexel since they moved to their own identity system (Azure B2C)

Open steve41200 opened this issue 2 years ago • 19 comments

Did you read the instructions?

The problem

I try for the first time your integration for Rexe (Econnect2)l, and he won't connect. I have login or password incorrect. I don't know if it is due to the same problem. I have a new heater IO (I have plug a zigbeeswitch behind the other), but him is in a bathroom and I will give a shot to your integration. A long time ago I've try lot of thing to control my Rexel box from HA and II have an old VM f with Homebridge on it (and plug in Tahoma and it will always works to control Rexel Box via HA, the login and pass are good. The plug in is not update since long time) I have try to a long time ago via Node Red with Overkill node directly, but I don't found them, I've erase them I think...

What version of this integration (ha-tahoma) has the issue?

the last

What version of Home Assistant Core has the issue?

core-2021.9.6

Which gateway / hub do you use?

Rexel

Device model

No response

Home Assistant log

No response

Additional information

No response

steve41200 avatar Oct 03 '21 20:10 steve41200

Thanks! Can you share which app or website you currently use to login?

And can you double check which Homebridge integration you are running?

iMicknl avatar Oct 04 '21 12:10 iMicknl

I use overkiz by somfy in HACS v2.8.1 After restart a new integration is discover (overkiz by somfy) I click configure, set mail, password and Hue Rexel Energyeasyconnect It does'nt work

I connect with this login on https://utilisateur.energeasyconnect.com/user/#/login or on app E.connect2

In my VM for hombridge (who works) i do not have update the Tahoma plug in homebridge-tahoma v0.3.51 and home bridge not update too homebridge-config-ui-x v4.36.0

I have receive a mail of rexel who can explain problem or future problem

this is the copy

Energeasy Connect : Sécurisation de votre compte personnel à compter du 05 Octobre 2021

Bonjour,

Rexel renforce la sécurité de vos données personnelles. D’ici quelques jours, vous serez amené à effectuer une démarche de sécurisation. Quelques clics suffisent, vous trouverez ci-dessous les étapes à effectuer.

Pensez à vous munir de votre téléphone portable avant de débuter la procédure.

  1. Connectez-vous sur votre espace utilisateur : https://utilisateur.energeasyconnect.com/ http://links.communication.rexel.fr/els/v2/9ee7sKxAewsW/NTNaTGhZdEdjZlVkdFlJc1NOYUZacVFsUHJ3Zi9IT0c2bEZDMVgrVHhxRnhEVS9FTHlmZmx6enYyeHU1S0JOWGhqdlR0dnNlQlo3MXY1aGk5bDVlRlUzMllZdVBIWUJSSFFITVpienFBQW89S0/
  2. Entrez votre identifiant habituel (email)
  3. Entrez votre mot de passe habituel
  4. Renseignez votre N° de téléphone mobile
  5. Un code est envoyé sur votre mobile
  6. Entrer ce code d’activation sur votre page de connexion
  7. Validation des GCU et de la Gestion des données personnelles
  8. La sécurité de votre compte est optimale. Vous pouvez utiliser votre application energeasy connect.

double authentification with phone. Each time or only one time i don't know ..

steve41200 avatar Oct 04 '21 18:10 steve41200

Would you be able to work with me via Discord (iMick #1903) so we can speed up the development? Easiest would be if you could temporary change your password and send your credentials, so I can do some live debugging on my machine.

However, this won't be a quick process due to my limited time.

iMicknl avatar Oct 11 '21 12:10 iMicknl

@steve41200 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.

I faced the same issue with @HerveLeMen. For now, I don't have a solution for the new Rexel authentication.

iMicknl avatar Oct 18 '21 20:10 iMicknl

Thank you. I don’t havé lot off Time for test. It works always With my homebridge VM so it’s ok for me. Thanks for thé Time for this add on!

Le 18 oct. 2021 à 22:15, Mick Vleeshouwer @.***> a écrit :

 @steve41200 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.

I faced the same issue with @HerveLeMen. For now, I don't have a solution for the new Rexel authentication.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

steve41200 avatar Oct 20 '21 07:10 steve41200

Hello,

Thank you for your feedback.

I have the same problem as steeve41200.

From what I read, you have already seen the authentication problem.

I managed to work around my problem by using the devices that work on the Tahoma but I still have two "Yokis" devices (lights) left which are not compatible with Tahoma and which I cannot integrate into home assistant.

I currently have two ways to control them outside of Home Assistant: either with the rexel box (because I have a Yokis key connected behind the rexel box: Yokis Key

or with the "Yokis Hub" which is the Yokis brand home automation box. It can be controlled via a mobile application: Yokis Hub

If only I could add the rexel box with the "Overkiz (by Somfy) - Custom component" integration on HACS or with the new official "Overkiz (by Somfy)" integration, I could control my "Yokis" lights from home assistant .

But at the moment I don't have a solution.

I also tried to do it with IFTTT (without feedback on or off), it works on my computer with webhooks but I couldn't get it to work in home assistant, it's too complicated for me.

Another solution for me would be to be able to integrate the "Yokis Hub" into home assistant, but I couldn't find a topic on this brand in the Home Assistant forums.

If you move forward on the subject or if you find another solution for Yokis, I'm interested.

Thank you for your involvement.

Have a good evening

nico39570 avatar Feb 12 '22 18:02 nico39570

Hi i was like you. I have create a key to control Yokis, follow this link https://github.com/nmaupu/yokis-hack/issues/9 it works very well. It's a sort of Yokis2Mqtt like Zigbee2mqtt but for Yokis :)

Le sam. 12 févr. 2022 à 19:53, nico39570 @.***> a écrit :

Hello,

Thank you for your feedback.

I have the same problem as steeve41200.

From what I read, you have already seen the authentication problem.

I managed to work around my problem by using the devices that work on the Tahoma but I still have two "Yokis" devices (lights) left which are not compatible with Tahoma and which I cannot integrate into home assistant.

I currently have two ways to control them outside of Home Assistant: either with the rexel box (because I have a Yokis key connected behind the rexel box: Yokis Key https://www.rexel.fr/frx/Cat%C3%A9gorie/Appareillage-et-contr%C3%B4le-du-b%C3%A2timent/Automatisme-du-b%C3%A2timent/Commande-et-automatisme-radio/Cl%C3%A9-protocole-Yokis-pour-energeasyconnect/RXCYOS5454492/p/70984201

or with the "Yokis Hub" which is the Yokis brand home automation box. It can be controlled via a mobile application: Yokis Hub https://www.yokis.com/fr/configuration-et-gestion-du-systeme/yokis-hub/

If only I could add the rexel box with the "Overkiz (by Somfy) - Custom component" integration on HACS or with the new official "Overkiz (by Somfy)" integration, I could control my "Yokis" lights from home assistant .

But at the moment I don't have a solution.

I also tried to do it with IFTTT (without feedback on or off), it works on my computer with webhooks but I couldn't get it to work in home assistant, it's too complicated for me.

Another solution for me would be to be able to integrate the "Yokis Hub" into home assistant, but I couldn't find a topic on this brand in the Home Assistant forums.

If you move forward on the subject or if you find another solution for Yokis, I'm interested.

Thank you for your involvement.

Have a good evening

— Reply to this email directly, view it on GitHub https://github.com/iMicknl/ha-tahoma/issues/591#issuecomment-1037390765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKQLH7YFLDHOYZMQZGD52TU22UCJANCNFSM5FH6W6AQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

steve41200 avatar Feb 12 '22 22:02 steve41200

Bonjour steve41200,

Merci beaucoup pour tes réponses.

Je vois que tu est français, alors je continu dans notre langue :-) Intéressant les bidouillages, je vais regarder ca de plus prêt.

nico39570 avatar Feb 13 '22 04:02 nico39570

Hello everyone,

@iMicknl have we to consider that Rexel solution is not more supported definitely or could we hope a solution with the auth factory ?

Thank you Hervé

Veher-el avatar Apr 05 '22 08:04 Veher-el

@HerveLeMen for now it seems that Rexel is not supported, until they open up their authentication mechanism for us. You could try to contact them / get them in touch with us...

If that doesn't work, what you could do is create an extra local account, if you are able to hijack your session temporarily and execute another request. However that won't be simple :-).

iMicknl avatar Apr 05 '22 08:04 iMicknl

Thank you for you quick answser. Let me negociate with them even if I have not to much hope... Definitely, I have not the level for the 2nd solution. ;)

Do we know if there is a workaround by requesting directly overkiz API ?

Veher-el avatar Apr 05 '22 09:04 Veher-el

@HerveLeMen there are rumors that Somfy will come with a local API soon, thus perhaps you can ask them about their plans as well.

In the mean-time, they are the only non supported vendor on the Overkiz platform, so perhaps they would like to be compatible with the Home Assistant userbase.

iMicknl avatar Apr 05 '22 09:04 iMicknl

@HerveLeMen there are rumors that Somfy will come with a local API soon, thus perhaps you can ask them about their plans as well.

Hi @iMicknl ! Someone at Somfy confirm me that a Local API will be available in the next months. Should be in 2 month max. I will keep you informed.

dubocr avatar Apr 05 '22 16:04 dubocr

Here is the documentation of the new Local API : https://github.com/Somfy-Developer/Somfy-TaHoma-Developer-Mode

dubocr avatar Apr 07 '22 10:04 dubocr

Thanks @dubocr, we track this in https://github.com/iMicknl/ha-tahoma/issues/796 :).

iMicknl avatar Apr 07 '22 10:04 iMicknl

Thanks @dubocr, we track this in #796 :).

How soon a dev option in your homebridge plugin ? 👼

qelanhari avatar Apr 07 '22 12:04 qelanhari

@qelanhari please ask HomeBridge questions in the HomeBridge repository. This repository is for the Home Assistant integration.

iMicknl avatar Apr 07 '22 13:04 iMicknl

Hello all,

I have something weird. Everything was working fine for my cousin's husband until few weeks ago and then it stopped working. I am surprised it actually worked... Any idea if they migrated their users by chunks and he was maybe in the last one to have login/password working?

This is putting a big stop on him using Home Assistant, he was getting super excited and I was also happy to help a newbie getting some cool features in his home!

cloom avatar Apr 26 '22 18:04 cloom

@cloom it seems that they indeed just migrated most of their users... It has been reported on core as well: https://github.com/home-assistant/core/issues/70869#issuecomment-1111814912.

iMicknl avatar Apr 28 '22 06:04 iMicknl