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

Home Assitant Addon Not Starting

Closed this issue ยท 22 comments

I am from India
Tried Installing this Addon after which whe I START I get the follwoing error

Please help

2023-05-30 17:45:49,042 return code: 15011, message: The account is not registered. Traceback (most recent call last): File "/usr/src/app/./mqtt_gateway.py", line 427, in run login_response_message = self.saic_api.login() File "/usr/local/lib/python3.10/site-packages/saic_ismart_client/saic_api.py", line 113, 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.

Hi, take a look at #6.

You need to find out your SAIC_URI to connect to the right Server.

It seems that MG Motors India doesn't allow a login with email, but both gateways need this to work. So at the moment there is no way to help you...

Tisoft has found a solution for your problem:

Login with phone number: yyy-xxxxxxxx

yyy = country like 49 for Germany
xxxxxxxx = phone number like entered in your app.

But: you need your Saic_Url for India...

You could try the following URI: https://iov-tap.mgindia.co.in
Try our phone number as a username. I think it should work with country code.

@Tonno87 Thanks of the reply

I have update above Url or India: https://iov-tap.mgindia.co.in/
Use username as : +91-9898989898

Still I get the following error
2023-06-09 16:22:31,445 return code: 15011, message: The account is not registered. Traceback (most recent call last): File "/usr/src/app/./mqtt_gateway.py", line 427, in run login_response_message = self.saic_api.login() File "/usr/local/lib/python3.10/site-packages/saic_ismart_client/saic_api.py", line 113, 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.

tisoft commented

Remove the +

I think you have to wait for 0.2.3 to try it out. The python gateway is buggy at the moment, so I reverted it to 0.2.1 which cannot change the uri.

The EU version of the mg app allows you to choose your country code, but the India app does not.

Remove the +

Yes I removed +
Tried removing + Dint work
Just tried 91=XXXXXXXX Dint work
Also tried 091-XXXXXXX Dint work
:(

Setting SAIC_URI in docker-compose.yml

You can install the addon yourself by ssh or smb to the /addon folder of home assistant and change the version to 0.2.2.
But after that there is a new issue ... :)

0.2.3 is online. Try it out :)

Which add on is this 0.2.3?
I see diffrent version still

image

Python Gateway. Go to the Addon-Store in HA and check for updates:

Screenshot_20230610-182422.png

@Tonno87 MAnaged to geet lates build

I get the following Error

2023-06-10 21:59:48,173 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702 2023-06-10 21:59:49,672 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702 2023-06-10 21:59:49,925 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702

2023-06-10 22:12:52,831 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:53,105 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:53,362 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:53,622 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:53,884 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:54,138 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:54,399 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:54,667 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:54,934 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:55,198 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:55,452 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:55,715 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:55,971 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:56,219 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:56,945 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:57,198 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:57,470 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:57,736 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:58,014 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:58,268 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:58,790 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:59,053 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:59,540 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:12:59,804 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:00,061 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:00,312 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:00,570 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:00,826 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:01,117 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:01,368 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:01,628 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:01,899 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:02,157 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:02,402 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:02,650 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:02,912 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:03,169 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:03,429 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:03,692 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:03,945 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702
2023-06-10 22:13:04,197 application ID: 511, protocol version: 25857, message: The service is not available,please try again later~ result code: 702

can you show us your options entries?

can you show us your options entries?
Sorry I didn't get you
U mean configuration Tab of the Addon?

Please try your phone number with 0 instead of 091-... Like entering into your app.

Hope it helps.

Tisoft posted this on the discussion board: iSmart Thailand

Thailand only supports phone numbers. The format is a bit different to EU/AU/NZ. With the Java MQTT Gateway it should work to prefix your phone number with 0's until the whole string is exactly 50 characters long. (e.g.00000000000000000000000000000000000000000123456789) I haven't checked if the Python MQTT Gateway would accept that.

I assume the same format should be working in the India version, but all versions of the India App I could find, are encrypted and I can't get the source code, so I can't verify.

Tisoft posted this on the discussion board: iSmart Thailand

Thailand only supports phone numbers. The format is a bit different to EU/AU/NZ. With the Java MQTT Gateway it should work to prefix your phone number with 0's until the whole string is exactly 50 characters long. (e.g.00000000000000000000000000000000000000000123456789) I haven't checked if the Python MQTT Gateway would accept that.

I assume the same format should be working in the India version, but all versions of the India App I could find, are encrypted and I can't get the source code, so I can't verify.

I see this log in (java) MQTT add on, Does this means its working? How do I fetch or see further data?? Please help

Value for option option '--abrp-user-token' (<String=String>) should be in KEY=VALUE[,KEY=VALUE]... format but was Usage: ismart-mqtt-gateway [-hV] [--abrp-api-key=<abrpApiKey>] [-c=<config>] [-m=<mqttUri>] [--mqtt-password=<mqttPassword>] [--mqtt-user=<mqttUser>] [-p=<saicPassword>] [-s=<saicUri>] [-u=<saicUser>] [--abrp-user-token=<String=String>[, <String=String>...]]... --abrp-api-key=<abrpApiKey> The API key for the A Better Route Planer telemetry API. Default is the open source telemetry API key 8cfc314b-03cd-4efe-ab7d-4431cd8f2e2d Environment Variable: ABRP_API_KEY --abrp-user-token=<String=String>[,<String=String>...] The mapping of VIN to ABRP User Token. Multiple mappings can be provided seperated by , Example: LSJXXXX=12345-abcdef,LSJYYYY=67890-ghijkl Environment Variable: ABRP_USER_TOKEN -c, --config=<config> The config file to use. Options can be overridden by cli parameters and environment variables -h, --help Show this help message and exit. -m, --mqtt-uri=<mqttUri> The URI to the MQTT Server. Environment Variable: MQTT_URI --mqtt-password=<mqttPassword> The MQTT password. Environment Variable: MQTT_PASSWORD --mqtt-user=<mqttUser> The MQTT user name. Environment Variable: MQTT_USER -p, --saic-password=<saicPassword> The SAIC password. Environment Variable: SAIC_PASSWORD -s, --saic-uri=<saicUri> The SAIC uri. Environment Variable: SAIC_URI Default is the European Production Endpoint: https: //tap-eu.soimt.com -u, --saic-user=<saicUser> The SAIC user name. Environment Variable: SAIC_USER -V, --version Print version information and exit.

Seems to be similar to this problem

If the fields are empty the gateway won't run.

This should work:

Screenshot_20230613-062801.png

Tisoft posted this on the discussion board: iSmart Thailand

Thailand only supports phone numbers. The format is a bit different to EU/AU/NZ. With the Java MQTT Gateway it should work to prefix your phone number with 0's until the whole string is exactly 50 characters long. (e.g.00000000000000000000000000000000000000000123456789) I haven't checked if the Python MQTT Gateway would accept that.

I assume the same format should be working in the India version, but all versions of the India App I could find, are encrypted and I can't get the source code, so I can't verify.

I see this log in (java) MQTT add on, Does this means its working? How do I fetch or see further data?? Please help

Value for option option '--abrp-user-token' (<String=String>) should be in KEY=VALUE[,KEY=VALUE]... format but was Usage: ismart-mqtt-gateway [-hV] [--abrp-api-key=<abrpApiKey>] [-c=<config>] [-m=<mqttUri>] [--mqtt-password=<mqttPassword>] [--mqtt-user=<mqttUser>] [-p=<saicPassword>] [-s=<saicUri>] [-u=<saicUser>] [--abrp-user-token=<String=String>[, <String=String>...]]... --abrp-api-key=<abrpApiKey> The API key for the A Better Route Planer telemetry API. Default is the open source telemetry API key 8cfc314b-03cd-4efe-ab7d-4431cd8f2e2d Environment Variable: ABRP_API_KEY --abrp-user-token=<String=String>[,<String=String>...] The mapping of VIN to ABRP User Token. Multiple mappings can be provided seperated by , Example: LSJXXXX=12345-abcdef,LSJYYYY=67890-ghijkl Environment Variable: ABRP_USER_TOKEN -c, --config=<config> The config file to use. Options can be overridden by cli parameters and environment variables -h, --help Show this help message and exit. -m, --mqtt-uri=<mqttUri> The URI to the MQTT Server. Environment Variable: MQTT_URI --mqtt-password=<mqttPassword> The MQTT password. Environment Variable: MQTT_PASSWORD --mqtt-user=<mqttUser> The MQTT user name. Environment Variable: MQTT_USER -p, --saic-password=<saicPassword> The SAIC password. Environment Variable: SAIC_PASSWORD -s, --saic-uri=<saicUri> The SAIC uri. Environment Variable: SAIC_URI Default is the European Production Endpoint: https: //tap-eu.soimt.com -u, --saic-user=<saicUser> The SAIC user name. Environment Variable: SAIC_USER -V, --version Print version information and exit.

Is this working now? I am still getting the error The country code not exist !. Hope you can help me sort this.