Skip to content

[Feature]: Support MG iSMART LATAM (Brazil): SAIC_REGION=br #594

Closed

Description

@arthur-lzrs

Problem or motivation

MG cars sold in Brazil use the "MG i-SMART LATAM" app (iOS bundle id com.saicmotor.iov.sa), which is separate from the European app. Its backend, https://gateway-mg-br.soimt.com/api.app/v1/, works with the GarageStack stack today, but only if SAIC_REST_URI is set by hand. SAIC_REGION accepts eu, au and tr, so a Brazilian owner has to guess the endpoint.

Transparency: I am a Brazilian owner of an MG4 Urban Luxury 43 kWh. I know a bit about these technologies, but I am not an expert on the SAIC API. Claude helped me with the investigation, the code and these drafts, and it can make mistakes. I compared the values below with my car's display; please double-check anything that looks off.

Proposed solution

Add SAIC_REGION=br, mapped to https://gateway-mg-br.soimt.com/api.app/v1/ in docker/resolve-saic-rest-uri.sh, and list it next to eu, au and tr in the docs (README.md, docker/all-in-one/README.md, documentation/CONFIGURATION.md, .env.example, unraid/garagestack.xml). I have this ready as a small PR and will link it here.

Alternatives considered

Keeping things as they are and documenting SAIC_REST_URI for Brazil. That works today (it is how I tested), but it is easy to miss.

Component this relates to

Docker / Deployment

How important is this to you?

Nice to have

Additional context

What I tested (2026-11-12)

  • Setup: GarageStack all-in-one 0.15.1 (amd64 image, emulated on Apple Silicon), gateway 0.14.0-rc2, a secondary MG account, one MG4 EV URBAN (model year 2027), Brazil.
  • Config used: SAIC_REST_URI=https://gateway-mg-br.soimt.com/api.app/v1/, SAIC_REGION=br, default tenant ID 459771.
  • Login and vehicle list: work (also checked directly with saic-ismart-client-ng 0.14.0).
  • REGION header: both br and eu were accepted by the Brazil host. Device app id: both com.saicmotor.europecar and com.saicmotor.iov.sa were accepted. Only tenant 459771 was tried.
  • Gateway with a secondary account: login, alarm switch registration, the vehicle status, charging status and battery heating polls, and the message list all worked. (The README says the owner account is needed for the alarm switches; that was not the case here.)
  • GarageStack: telemetry reached the database and the dashboard. Odometer, tyre pressures, state of charge, range and lock state match the car, and the climate state switches on when I start the AC (from the MG app or from the car's panel) and off again when it stops by itself after 10 minutes.
  • Car asleep: the status poll fails with SAIC return code 4 ("The remote control instruction failed, please try again later") and the gateway retries with a growing delay (I saw 30 s, then 60 s). After I woke the car (I had started the AC), polls succeeded.

Prior art

Other projects already list the same endpoint, region code and tenant ID for Brazil (I have not verified their code):
ioBroker.mg-saic,
mg-saic-ha,
homebridge-mg-saic,
GdAAuto.
I could not find the Brazil endpoint in saic-python-mqtt-gateway, saic-python-client-ng or this repository.

Limits of my testing

One car, one model, one account, one day. I did not test remote commands, charging, trips or schedules. I only tried a secondary account for the gateway; I did not test the owner account.

Related

I am also preparing small PRs for saic-python-client-ng (a mg_br() preset) and saic-python-mqtt-gateway (a row in the endpoints table), and I will open a separate issue there about the battery capacity of the MG4 Urban in Brazil. If other Brazilian or Latin American owners can confirm this on their cars, that would help a lot.

Checklist

  • I have searched existing issues and discussions to make sure this hasn't been requested before.
  • I am willing to help implement or test this feature.

Activity

  1. arthur-lzrs commented on Nov 12, 2026

    @arthur-lzrs
    ContributorAuthor

    The PR for this is ready: #597 (SAIC_REGION=br, Closes this issue). I also opened the matching small PRs upstream: SAIC-iSmart-API/saic-python-client-ng#65 (a mg_br() preset) and SAIC-iSmart-API/saic-python-mqtt-gateway#527 (a row in the endpoints table). Separately, a battery capacity question for this car: SAIC-iSmart-API/saic-python-mqtt-gateway#526.

    If other Brazilian or Latin American owners can confirm br on their cars (and say which model, account type and gateway version), please add a comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions