core
core copied to clipboard
Rexel Energeasy Connect does not work in Overkiz integration due to API change
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 '[email protected]' 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 '[email protected]' for overkiz integration could not authenticate: Invalid authentication
Additional information
No response
overkiz documentation overkiz source (message by IssueLinks)
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)
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).
@iMicknl Hi, since the last post, have you got any positive update about this Rexel gate ?
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: @.***>
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.
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: @.***>
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
@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.
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 :)
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 ...
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!
@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.
@iMicknl That a very good news !
I 'm very interested in studying with you the solution What should I do exactly ?
I have also this authentification issue with Home Assistant and an Rexel Energeasy Connect Hub. I'm also interrested to have a solution please.
@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.
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?
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}]}
Any news ?
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
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
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
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 !
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 !
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: @.***>
Hi @JohnB7777,
Sorry for the late answer.
Here is my Applet in ITFFF :
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
And finally i can call IFTTT Applet in HA with the name you have choose in IFTTT:
That can help you ?
@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 !
@JohnB7777
To see the energeasy scenes, you have to link your Google account in IFTTT : https://ifttt.com/settings
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
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 :
That works but I m looking for a better solution
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 ...
@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 ...