Watt Budget Charging calculator

Your MG in Home Assistant

Battery level, range, charging, doors, windows and tyres: the community SAIC MQTT Gateway pulls everything from the iSMART service and sends it to Home Assistant. A secondary iSMART account lets you keep the app on your phone.

  • €0 hardware
  • One hour to set up
  • Secondary iSMART account
  • MG4, MG5, ZS EV, MGS5, Marvel R
MG4 Electric
Home · seen 3 min ago
Parked
54%231 km●
050%100%
Doors
Locked
Odometer
28,310 km
Target
90%

How it works in one minute

App + MQTT

Brand-new guide

It was written in October 2026 from the integration's official documentation, but nobody in the Watt Budget community has followed it end to end on their car yet. Trying it? Tell me what works and what gets stuck.

Your MGiSMART cloud
(car's 4G)
SAIC MQTT Gateway
(HA app)
Mosquitto
(MQTT)
Home
Assistant
What it isAn app (add-on) that connects to the iSMART service like the MG app, then publishes the data to MQTT
CostFree
DataBattery level, range, charging, power, time left, doors, windows, tyre pressure, 12 V battery, location
CommandsClimate, start and stop charging, charge limit, locking (not always reliable)
Where it worksAnywhere, through the car's connection
Depends onMG's iSMART service and a secondary account

What you need

  • Home Assistant installed and reachable from your computer.
  • The Mosquitto broker (official app, Settings → Apps → Store (Add-ons on older versions)) and the MQTT integration. If you already use Zigbee2MQTT, you have them.
  • A car registered in the iSMART app (Europe), with connected services active.
  • A second email address for the secondary account.
  • A dedicated Home Assistant user for MQTT (for example mqtt-mg, “local access only”, not an administrator).

1Install the integration

  1. Create the secondary iSMART accountIn the iSMART app, Profile page (last icon bottom right), add a secondary account with your second email address, with no expiry date, then confirm the email you receive. MG allows one login per account at a time: without a separate account, the app on your phone would keep getting logged out.
  2. Add the SAIC apps repositorySettings → Apps → Store (Add-ons on older versions) → ⋮ menu → Repositories, add https://github.com/SAIC-iSmart-API/saic-home-assistant-addon, then refresh the page.
  3. Install the gatewayPick SAIC MQTT Gateway from the list and install it.
  4. Fill in the configurationConfiguration tab: the email and password of the secondary account, region eu (the default), then the MQTT user and password created above. Leave Home Assistant discovery enabled.
  5. Start it and watch the logStart the app, tick “Start on boot” and “Watchdog”, then open the Log tab: the gateway should log in to iSMART and find the car's VIN.
  6. Find the carSettings → Devices & services → MQTT: a device named after the car appears, with its sensors and controls.
The old “MG SAIC” HACS integration

Its author no longer maintains it. If you use it, remove it before installing the gateway so the two don't fight over the login.

2The data you get

DataWhat it's for
Battery level (SoC)In %, the value to give Watt Budget
Electric rangeKilometres estimated by the car
Charging / cable plugged inTo trigger an automation when you arrive or when charging ends
Power and charge time leftWhile charging
Charge limit (target SoC)Adjustable from Home Assistant
Doors, windows, bootHandy for an evening “window open” alert
Tyre pressureAll four wheels
12 V batteryUseful to spot a car that no longer goes to sleep
Rename the entities right away

Replace the long names with short ones, for example sensor.mg_battery (Settings → Devices & services → Entities → the entity → cog). Your cards, automations and Watt Budget settings will be much easier to read.

3Connect Watt Budget

The sensor to enter in Watt Budget, under Settings › Home Assistant: the SoC sensor (battery level in %) of the car's MQTT device.

Once connected, Watt Budget reads the level every minute: no more typing the starting percentage, and the charge is worked out from the real battery level.

The four steps (HTTPS access, token, sensors, check) are explained on the guides home page and in the Watt Budget guide.

4Precautions

  • When you open the iSMART app with the main account, the gateway pauses for 15 minutes by default: that's normal.
  • The lock command sometimes fails (the car thinks a key is still inside): don't rely on it for security.
  • Non-plug-in hybrids (MG3 Hybrid+) report little data.
  • Unofficial integration: the manufacturer can change its app and break it overnight. Keep the official app on your phone.
  • Don't shorten the update interval: each query can wake the car and drain its 12 V battery. The defaults are a good balance.
  • Your credentials stay in your Home Assistant; neither Watt Budget nor I can see them.

Frequently asked questions

Why a secondary account?

MG's servers allow one session per account. With a single account, the gateway and your phone app would keep logging each other out.

The gateway can't connect any more. What now?

Check that the secondary account hasn't expired in iSMART. Several owners fixed it by deleting and recreating the secondary account.

Does Watt Budget get access to my car?

No. Watt Budget only reads the battery level sensor in your Home Assistant, from your browser, with the token you give it. It never sees your manufacturer login or the car's location.

My model isn't listed. Can it work?

Often yes: these integrations go through the manufacturer's app, shared across the range. The easiest is to try, then tell me how it went via the contact page.

Links and thanks

Thanks to the developers of the SAIC-iSmart-API project, who maintain the gateway, and to the MG owners' community documenting the car's data.

Does your car reach Home Assistant another way? Share your method: the next guides will follow your feedback.

The other Home Assistant guides

What does a charge really cost you? Off-peak tariffs, solar, rapid chargers and XCombo codes: Watt Budget works it all out, free and without an account.

Open Watt Budget