SAIC-iSmart-API / saic-home-assistant-addon

SAIC-iSmart-API repository for Home Assistant OS (HASS.IO)
MIT License
58 stars 6 forks source link

How to identify URI for other countries #33

Closed nickh66 closed 8 months ago

nickh66 commented 1 year ago

Hi, I'm really really hoping i can use this addon to bring in my MG iSmart data for my vehicle in Australia. So far the default settings fail to login with my existing iSmart credentials using the default URI that appears to be for the EU region. I was wondering if there is a way to determine what the correct URI should be for vehicles sold in Australia. I did so far try https://tap-au.soimt.com because i find i could get a ping reply from that address but still the log for the addon returns failed login attempt. I have no clue how to help progress this addon for use in my country so any suggestions on where i should look would be grateful. Regards Nick

spcloudguy commented 1 year ago

I'm using https://tap-au.soimt.com with an Australian MG ZS EV so you're using the correct URL.

nickh66 commented 1 year ago

Hi, That's great news. Which of the 2 MQTT based add-on options did you use, java or python? Did it just accept the same saic login credentials you used in the iSmart app?

I am trying the python addon & so far the log only shows this error...

Traceback (most recent call last): File "/usr/src/app/./mqtt_gateway.py", line 269, in run login_response_message = self.saic_api.login() File "/usr/local/lib/python3.10/site-packages/saic_ismart_client/saic_api.py", line 123, in login raise SaicApiException(login_response_message.body.error_message.decode(), saic_ismart_client.saic_api.SaicApiException: return code: 15011, message: The account is not registered. return code: 15011, message: The account is not registered.

Yet i'm logged into the iSmart app on my phone & car with the same credentials. Did you have any issues with getting it working?

mwinters-stuff commented 10 months ago

I have just been able to use the address above for my NZ (New Zealand) car (the app is AU and NZ) with the home assistant plugin.. Just used my e-mail address and password i use with the app..

CRMStanna commented 10 months ago

I have a really dumb question that I have tried finding the answer to before coming here. If I have installed the add on via the add on store, where do I go and put the correct URL. I can't seem find that within Home Assistant - I tried digging around with Studio Code server, but can't find the config file for the addon. Thanks for any help pointing me in the right direction.

EDIT: I installed the right Github addin and it's working ... always RTFM :)