Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

New Reanault app and now I cannot connect anymore #2

Closed
niso01 opened this issue Apr 18, 2019 · 16 comments
Closed

New Reanault app and now I cannot connect anymore #2

niso01 opened this issue Apr 18, 2019 · 16 comments

Comments

@niso01
Copy link

niso01 commented Apr 18, 2019

Love your contribution to HA with this sensor. Today I got a message that the existing app is not supported anymore and after that the renaultze sensor cannot connect anymore. I get the following error message:

Update failed: 'RestrictedCountryException'
9:08 PM custom_components/renaultze/sensor.py (ERROR) - message first occured at 8:28 PM and shows up 41 times

@toby17780
Copy link
Contributor

same here...

@epenet
Copy link
Collaborator

epenet commented Apr 29, 2019

You'll need to provide more information about your issue, as it is still working correctly here.
In particular, since the error is "RestrictedCountryException", which country are you connecting from? I'm based in France.

Do you still connect through https://www.services.renault-ze.com/?
Does it stay there or is there a redirect onto another site?

You may need to run something like Firefox Development Tools to trace the requests.
I will also accept GIT pull requests.

@niso01
Copy link
Author

niso01 commented Apr 29, 2019

I am based in Sweden. When I try to login at https://www.services.renault-ze.com/ I get the following message (translated from Swedish)


Your connected Z.E services will be moved to a new app
MY Z.E. the app is no longer available, it has been replaced by the app MY Renault
Continue to use connected Z.E. services by:

  1. Download the MY Renault app for free
  2. Create a MY Renault account
  3. Synchronize your car with the VIN number and activation code you received in an email

(Link from a button) https://myr.renault.pt/ze_redirection.html?os=web&country=se&lang=sv


The new app is called "My Renault" and if follow the link above and logon I will in the end end up at the follow url: https://myr.renault.se/

@epenet
Copy link
Collaborator

epenet commented Apr 29, 2019

Does the new application work in a browser? or only on a phone application?
If it works in a browser, I might be able to reverse-engineer the new application but I would need access to a real account.

Since France has not been migrated to the new app (yet?), maybe someone wants to share his account (set a temporary password and send me the credentials via private message)

@niso01
Copy link
Author

niso01 commented Apr 29, 2019

I cannot get any charging info from the web, only from the app. This is weird.
@toby17780 - what country are you connecting from and can you get any charging info in the web browser?

@toby17780
Copy link
Contributor

toby17780 commented May 2, 2019

I'm from Germany. But this Error was only one time - now after Update I have this one: #3

But with this changes it works again.

@oncleben31
Copy link
Member

oncleben31 commented Jun 6, 2019

@epenet if you are in France you should be impacted now. I've the error message to migrate to MyRenault app 2 days ago.
Similar discussion on edent/Renault-Zoe-API#18

@epenet
Copy link
Collaborator

epenet commented Jun 17, 2019

@oncleben31 you are right it's now migrated in France and I need to find some time to work out the specifics. Of course I am open to Pull Requests as it seems that maybe edent doesn't have a Zoe anymore.

@niso01
Copy link
Author

niso01 commented Jun 17, 2019

@epenet Let me know when and if you need som assistance.

@oncleben31
Copy link
Member

reverse engineering API is not my thing. But as soon as you have a start I can support by doing python package or HA integration.

@oncleben31
Copy link
Member

@epenet now we have a python package. As you have started to prototype even if you said you won't work on it before mid august, do you wan't to start something ? If you are not available and agree I can start a custom_component. We can share the energy.

@epenet
Copy link
Collaborator

epenet commented Jul 25, 2019

The new branch is ready for testing.

I've tested what I could outside Home Assistant. I need to rebuild my server before I can test it inside Home Assistant.

There is one new configuration setting available: "android_lng" which default to fr_FR. If you are not based in France you might need to override the value in your configuration file.
Also, I have removed the "deep update" option.

@epenet
Copy link
Collaborator

epenet commented Jul 26, 2019

I've merged the new code into the main branch: https://github.com/epenet/hassRenaultZE

Please don't hesitate to download, test and confirm it's all working for you...

@oncleben31
Copy link
Member

Tested. Need some updated to make it work in HA. PR #6 is waiting for review.

@epenet
Copy link
Collaborator

epenet commented Jul 29, 2019

PR #6 reviewed and merged.

@oncleben31
Copy link
Member

I think we can close the issue now.

@epenet epenet closed this as completed Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants