Open OddyAte opened 2 years ago
Hi, Thanks for your interest in my component đź‘Ť
First of all let me say that the API is not guaranteed to work just by changing the endpoints (it would be cool if it did). I am available to update my integration to support Romania cards if you are interested in helping.
Looking at your error, the solution is very simple, just remove the www
from the endpoints, like this:
API_LOGIN_URL = "https://myedenred.ro/edenred-customer/api/authenticate/default"
API_LIST_URL = "https://myedenred.ro/edenred-customer/api/protected/card/list"
API_ACCOUNTMOVEMENT_URL = "https://myedenred.ro/edenred-customer/api/protected/card/{}/accountmovement"
The certificates are managed by the same entity that manages the website, in this case they forgot to add the address with www
, so it only works without. There is nothing that we can do on our side to overcome this.
Please, after testing this FIX, leave feedback (if it worked or not), if it worked I'll add it to the main branch
Thanks!
Hi,
I updated the links but that causes again the incorrect login credentials message. I left only the main login URL with www
and then it does log in but there is no entity created. The log shows the same SSL error. Problem is that I am not sure these links exist on the Romanian webpage as if I try to access the PT ones it gives a no access error while the RO ones give a 404 error.
Thanks!
Hello @OddyAte
Can you share your email with me in a private message? I need to talk to you in private regarding this
Sure, I added you on LinkedIn.
I am also interested in this.
intersted also
Can we get an update if you are still working on this? Thanks!
Hello @OddyAte
I contacted several local myEdenred branches to see how I can integrate with them. The responses are not encouraging, and it seems that they are not interested in supporting this initiative, unfortunately.
Country integrations are happening with the support of users, only.
Thanks for trying at least, sad to hear this but it's somewhat expected. It's interesting they do not have the same infrastructure for each country.
Hi!
First of all thanks for creating this custom component. I never thought about having the balance & other details available in Home Assistant. At first I thought that this works for the Romanian site, later I saw that it is for Portugal.
I though maybe I can hack my way through the code and just change the domains in consts.py to:
Although the login seems to work fine, no errors, there is no sensor created. I would expect there to be one at least for the card. In HA logs I get the following message:
Cannot connect to host www.myedenred.ro:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.myedenred.ro'. (_ssl.c:1129)")]
I am not sure where the certificate is used or how that is managed. Do you think it would be possible to make this work with the Romanian website as well?
Thanks!