Skip to content

feat: add the MG Brazil (mg_br) configuration preset - #65

Merged
nanomad merged 1 commit into
SAIC-iSmart-API:developfrom
arthur-lzrs:feat/mg-br-preset
Nov 13, 2026
Merged

nanomad merged 1 commit into
SAIC-iSmart-API:developfrom
arthur-lzrs:feat/mg-br-preset

Conversation

@arthur-lzrs

@arthur-lzrs arthur-lzrs commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds SaicApiConfiguration.mg_br() for the "MG i-SMART LATAM" app used in Brazil: base URI https://gateway-mg-br.soimt.com/api.app/v1/ and region br. The tenant ID and the device app id keep the shared defaults, like the other MG presets. The preset is added to the README table and to test_mg_presets.

Transparency: I am a Brazilian MG4 Urban owner, not an expert on the SAIC API. Claude helped me with the investigation and the patch, and it can make mistakes.

How I checked it

  • login() and vehicle_list() against the Brazil endpoint with a secondary MG account and one MG4 EV URBAN (model year 2027), library 0.14.0: both succeed.
  • The REGION header: br and eu were both accepted by the Brazil host. The device app id: com.saicmotor.europecar (the default) and com.saicmotor.iov.sa (the id of the LATAM app on the App Store) were both accepted. Only tenant 459771 was tried.
  • Also with saic-python-mqtt-gateway 0.14.0-rc2: login, alarm switch registration, and the vehicle status, charging status and battery heating polls worked.
  • pytest tests passes (76 passed), and ruff check and ruff format --check are clean.

Limits

One car, one model, one account. I did not test remote commands. The same endpoint, region code and tenant ID are listed for Brazil by a few other projects (ioBroker.mg-saic, mg-saic-ha, homebridge-mg-saic, GdAAuto), which I have not verified.

Related: I will add the endpoint to the gateway README table in a separate PR.

🤖 Generated with Claude Code

Adds SaicApiConfiguration.mg_br() for the "MG i-SMART LATAM" app: base URI
https://gateway-mg-br.soimt.com/api.app/v1/, region br. Tenant ID and device
app id keep the shared defaults, like the other MG presets.

Login and the vehicle list were checked against a real MG4 Urban in Brazil
(secondary account). The preset is added to the README table and to
test_mg_presets.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nanomad
nanomad merged commit b478cd9 into SAIC-iSmart-API:develop Nov 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants