[APP][Pro] MG iSMART: battery, range, charging and climate of your MG in Homey

:automobile: MG iSMART brings your MG into Homey: battery, range, charging, locks, climate, tyres and where the car is, plus 65 Flow cards and eight dashboard widgets. It talks to MG iSMART, the same service the iSMART app on your phone uses, so there is nothing to install in the car.

Free, no extra subscription, no server of its own: everything runs on your Homey.

:test_tube: Test version: MG iSMART | Homey
:mobile_phone_with_arrow: App Store: MG iSMART | Homey

My other apps

  • :sun: PV Forecast: solar forecast that measures your roof and learns from your panels
  • :robot: MCP AI Bridge: control Homey with any AI assistant (Claude, ChatGPT, Gemini, Copilot, Cursor or Mistral)
  • :recycling_symbol: Recycle België: Belgian waste collection calendar with Flow cards, iCal export and quiet hours
  • :pill: Medication Reminder: reminders that keep coming until the medication is taken
  • :dashing_away: DREO (Community): Dreo fans, heaters, air purifiers, humidifiers and air conditioners in Homey
  • :package: Parcel Tracker: every parcel from 132 carriers, without carrier accounts

:battery: Which cars

Made for electric MGs with MG iSMART:

  • MG4 Electric, including XPOWER and Extended Range
  • MG4 Urban
  • MG5 Electric
  • MG ZS EV, 2021 and later
  • MG S5 EV and MG S6 EV
  • MG Cyberster

Other MGs that work in the iSMART app, such as the Marvel R or a hybrid, may work too. On a hybrid or petrol car the charging values stay empty and the fuel level shows up instead.

A word of honesty: I don’t own an MG. The app is built on the work of the SAIC-iSmart-API project, and I check every request against their code, but the remote commands have been tried on very few real cars so far. If something doesn’t match what the iSMART app shows, tell me here which model you drive and what you see.


:key: Before you add the car

MG allows one session per account. If Homey logs in with the same account as your phone, the iSMART app on your phone gets logged out now and then, and the other way round. Use a second account:

  1. Create a new account in the MG iSMART app with a different e-mail address. Do it on a second device, or log out on your phone for a moment.
  2. Log back in with your usual account, the one the car is bound to.
  3. Find the part of the app for a secondary account or sub-account, and add the e-mail address of the new account. Allow location and remote control if the app asks. The name of that menu differs between app versions and countries.
  4. In Homey: Devices, +, MG iSMART, and log in with the new account.

Use a password of at most 16 letters and numbers for that account. The iSMART app quietly ignores symbols and anything after 16 characters, so a longer password works in the app but is refused in Homey.

The pairing screen explains the same steps, and the app settings have a help page with everything below.

:electric_plug: Already running saic-python-mqtt-gateway?

Then you don’t need a second account. When you add the car, choose saic-python-mqtt-gateway and fill in your MQTT broker: address, port, user name and password if it asks for one, and the topic prefix (saic unless you changed it). Homey reads the car from what the gateway publishes and sends commands to its set topics, so the gateway stays the only one that logs in to MG.

Homey then follows the gateway’s own refresh schedule. Windows, sunroof, V2L and the messages in the iSMART app are not available through the gateway; everything else works the same, including the widgets and the Flow cards.


:sparkles: What it does

:bar_chart: What you see on the device

  • Battery in %, range and the energy left in the battery (the app knows the usable capacity of most models).
  • Charging: plugged in or not, charging or fast charging, power, time left, charge limit, charging current, charging schedule, why charging stopped, and the last charging session.
  • Doors and windows: locked or not, and exactly which door, window, tailgate, bonnet or sunroof is open.
  • Climate: on or off, inside and outside temperature, seat heating per seat, rear window and steering wheel heating.
  • Where the car is: street address, distance from home, and whether it is at home.
  • Health: tyre pressure per tyre, the 12 V battery, odometer.
  • Today: distance, energy used and consumption per 100 km, the current trip, distance and energy since the last charge.
  • Warnings: low tyre pressure, a weak 12 V battery, lights left on, a window left open, and the car unlocked while it is switched off.

:high_voltage: Flow cards

22 triggers
  • Charging started, stopped or finished (with the reason it stopped)
  • Charge cable plugged in or unplugged
  • Battery dropped below …% / reached …%
  • Car arrived home / left home
  • Distance from home dropped below … km / rose above … km
  • Car was switched on / off
  • Climate switched on / off
  • A window was left open
  • Lights were left on
  • Car is unlocked while switched off
  • Tyre pressure is low
  • 12 V battery is low
  • The car sent a message (title, text, type and group as tokens)
  • Status was read
14 conditions
  • Is charging / charge cable is plugged in / charge cable is locked
  • Climate is on / battery heating is on
  • Car is at home / distance from home is below … km
  • Car is switched on
  • A door or the tailgate is open / a window is open / the sunroof is open / lights are on
  • Battery is above …% / range is above … km
29 actions
  • Start climate at … °C, stop climate, ventilate only, defrost the windscreen
  • Rear window heating on or off, seat heating per seat
  • Open the tailgate, open or close the windows, open or close the sunroof (locking and unlocking use Homey’s own lock cards on the device)
  • Find my car with lights and horn, lights only or horn only; stop it again
  • Start or stop charging, set the charge limit, set the charging current (6, 8, 16 A or maximum)
  • Set a charging schedule (until a time or until the charge limit), switch it off
  • Lock or unlock the charge cable
  • Battery heating on or off, heat the battery at a set time, cancel that
  • Powering devices from the car (V2L): start, stop, set the lower limit
  • Mark car messages as read, delete the alarm messages in the iSMART app, switch on iSMART notifications
  • Read the car now

A few things people build with them:

  • :hot_beverage: Start the coffee when the car is less than 2 km from home.
  • :crescent_moon: Charge to 80 % on weekdays and to 100 % before a long trip, or set a charging schedule for the cheap hours.
  • :snowflake: Warm the car at 7:30 on cold mornings and defrost the windscreen.
  • :bell: A notification when a window stays open, the lights stay on, a tyre runs low or the 12 V battery gets weak.

:desktop_computer: Dashboard widgets

Eight widgets to pick from:

  • MG all in one: everything below in one widget, behind tabs for car, charging, climate, location, tyres and today
  • MG car: everything at a glance, with controls for the lock, climate, windows, charging, tailgate, battery heating and seat heating per seat, and a photo of your car
  • MG charging: charge level, power, time left and a chart of the last 24 hours
  • MG climate: temperatures, set the temperature, defrost, rear window and seat heating
  • MG location: a map with the car, the address and the distance from home
  • MG tyres and battery: the four tyres on a drawing of the car, the 12 V battery and warnings
  • MG today: distance, consumption, current trip and the last charge
  • MG battery: a small tile with just the charge

:camera_with_flash: A photo of your car: in the app settings you choose your own photo or GIF for the MG car widget, from your phone or from a link. Without one, the app uses the photo the MG service gives for your car if there is one, and a drawing otherwise.


:gear: Settings and the 12 V battery

Each time Homey asks a parked car itself, its connection box wakes up, and that draws power from the 12 V battery. On an MG S6 with a monitor on that battery, every reading was a dip of 0.3 to 0.5 V. So the app does this:

  • a parked car: every 15 minutes Homey looks at the status MG stores, which does not wake the car
  • it wakes the car only when that status shows activity, and otherwise twice a day
  • a car that charges or has the climate on: every 10 minutes
  • a car that drives: every 3 minutes (the 12 V battery is being charged then)
  • messages from the car, such as “vehicle started”: every 2 minutes, on the MG server, which never wakes the car. A new message makes Homey read the car right away

You can change every one of these on the device. If you go lower for a parked car, keep an eye on the 12 V battery value. Setting “Waking a parked car” to 30 minutes gives the behaviour from before 1.7.0. Under the device settings, “Stored status, last check” shows what the last look at MG’s stored status found.

What this means for arrivals: a trip is noticed through the “vehicle started” message. If that message doesn’t come (check “Last message” on the device, and run the Flow card “Switch on iSMART notifications” once), Homey only sees the trip when the car is switched off after arriving, so a Flow on the distance from home comes too late.

Other settings on the device: home radius, the limits for the tyre and 12 V warnings, the usable battery capacity if your model is missing, the climate temperature for the switch, and whether to use OpenStreetMap.


:locked: Safety and privacy

  • Unlocking and opening the tailgate are off until you switch them on in the device settings. Locking always works.
  • With saic-python-mqtt-gateway, Homey stores the user name and password of your MQTT broker on the device, and never sees your MG password.
  • Your password is kept as a hash, because the MG service needs it to log in again. That hash opens your MG account just like the password, one more reason to use a second account for Homey.
  • For the map and the street address, Homey sends the position of the car to OpenStreetMap. You can switch that off on the device.
  • No server of my own, no analytics. The app talks to the MG service and, if you allow it, to OpenStreetMap.

This app is not made by MG or SAIC. It uses the same service as the iSMART app without an official interface, so MG can change it at any time.


:memo: Changelog

1.7.3

  • A parked car is followed again through the status MG stores. On some cars, such as the MG S6, every stored status holds one value that makes no sense, and that made the app ignore all of them. Such a value is now left out and the rest still counts.

1.7.2

  • The device settings now show what the last check of the status stored by MG found, so a missed trip or charge can be explained.
  • A new stored status while the car is plugged in and not full now also counts as a possible start of charging.

1.7.1

  • Fixes false “unlocked” alerts and a wrong odometer and range from 1.7.0. A stored status with impossible values is now ignored, and the lock state only comes from the car itself.
Earlier versions

1.7.0

  • Much kinder to the 12 V battery. A parked car is now followed through the status MG stores, which does not wake it, and is woken only when that shows activity or twice a day. If you still had the old 30 minutes, it moves to 12 hours.
  • Every interval can be set on the device. Messages such as “vehicle started” are checked every 2 minutes.

1.6.2

  • The login screen now says that MG passwords work with at most 16 letters and numbers, and the “Incorrect password” message explains it too.

1.6.1

  • A trip is noticed even without “car switched on”: when the odometer or position changed since the last reading, Homey switches to the driving interval.
  • New setting: interval while parked away from home.

1.6.0

  • A second way in: if saic-python-mqtt-gateway already runs at home, Homey reads the car from your MQTT broker and sends commands through the gateway, without a second MG account.

1.5.3

  • A short tagline as the App Store description, and the right explanation on the Flow card for the distance from home.

1.5.2

  • Real photos for the app and the car, a shorter App Store description, and explanations on the Flow cards that need one.

1.5.1

  • The charge limit screen on the device now says what it is (“Charge to 80 %”). Charging current and seat heating show their setting in the list of values.
  • The sunroof has its own status, a Flow condition and a row in the car widget.

1.5.0

  • A new widget, MG all in one: car, charging, climate, location, tyres and today in one widget, behind tabs.

1.4.0

  • A photo of your car in the car widget: your own photo or GIF, or the one the MG service gives.
  • The help page in the app settings now also works in the Homey web app.
  • New app images: the MG badge as icon and a drawing of an electric MG.

1.3.1

  • A fuller description in the App Store, and the MG S6 EV in the list of cars.

1.3.0

  • New Flow cards for the distance from home, so an arrival can start a Flow before the car is on the drive.
  • While driving, Homey reads the car every 3 minutes; messages are checked every 5 minutes.
  • The car widget is larger, with controls for the lock, climate, windows, charging, tailgate, battery heating and seat heating per seat.

1.2.0

  • Seven widgets in a quieter design.
  • Which door or window is open, the address, why charging stopped, the last charging session, consumption per 100 km, steering wheel heating.
  • Flow cards for car messages and iSMART notifications.

1.1.1

  • Clearer texts in the app and in the store.

1.1.0

  • Dashboard widget, at home and away, messages from the car, charging current and schedule, battery heating at a set time, V2L, sunroof and windows, seat heating, energy in the battery, warnings for tyres, 12 V battery, lights and open windows.

1.0.1

  • Explanation in the app: which cars, a guide for a second account, a help page in the app settings.

1.0.0

  • First version: battery, range, charging, locks, climate and location.

Questions, a model that behaves differently, or a value that doesn’t match the iSMART app? Post it here with the model and model year of your car. :slightly_smiling_face:

I actually built a similar app myself, but this one blows everything out of the water super cool !!:smiling_face_with_sunglasses:

“Good morning, I have another suggestion/improvement point: when I try to search for your app manually in the App Store, I don’t get any search results.”

@Linden85 it’s still under review :slight_smile:

@Linden85 Hij is goedgekeurd

Thank you very much. Love it. Now i can remove my mg4 from charging point when homey let’s me know it is full. You must pay extra when your car is longer than 5 hours on a charging point in the Netherlands.

@weide43 ,


Subject: Arrival triggers fire late: driving mode not detected at start of trip (MG S6 EV)

Hi Danny,

Setup

  • MG S6 EV, MG iSMART app v[x.x.x], secondary account
  • A Flow on Distance from home dropped below 2 km OR Car arrived home, which turns on the front garden lights and the coffee machine
  • Reading interval set to 3 minutes in the device settings

What happened (19 Oct, times CEST)

  • Trip of about 22 km, roughly 18:45 to 19:09.
  • During the whole trip the odometer in Homey stayed at 6923 km (unchanged from 16:10 until 19:05). It jumped to 6945 km in one go at about 19:13.
  • Car is switched on never became true during this trip.
  • Our phones registered us at home at 19:09. Car arrived home fired at 19:13:49, about 4.5 minutes later.
  • Distance from home dropped below 2 km never fired before arrival.

Comparison: same day, earlier trip (around 16:00 CEST)

  • Car is switched on became true at the start of that trip.
  • The odometer then updated in steps of about 3 minutes, so driving mode clearly worked there.

My conclusion
On the evening trip the app never switched to the driving interval. Presumably no “vehicle started” message was received or picked up. So it stayed on the parked interval of 30 minutes, and the whole trip fell between two readings. The last-update timestamp while parked (e.g. 14:37 when I checked at about 15:00 today) also fits a 30-minute parked interval.

Questions and suggestions

  1. Is the “vehicle started” message the only way the app detects that the car is driving? Is there a way to see in the logs whether that message arrived?
  2. Could a reading that shows a changed location or odometer also switch the app to the driving interval? That would catch trips where the message is missing.
  3. Would you consider an optional shorter interval for when the car is away from home, separate from parked at home? That would make arrival triggers more reliable without draining the 12 V battery while the car is parked at home.
  4. Exposing “last message received” (time and type) as a capability would make issues like this much easier to debug.

Happy to provide more data or test a build.

Thanks!


@Linden85

Hi, thanks for the detailed report, the times made it easy to see what went wrong.

  1. Until now the app switched to the driving interval in two ways: a reading that says the car is switched on, or a new message from the car such as “vehicle started”, which makes Homey read the car 30 seconds later. On your evening trip neither happened, so it stayed on the 30-minute parked interval and the whole trip fell between two readings. You can see whether messages arrive in the “Last message” value on the device: it shows the time and title of the newest one. If it stays empty, run the Flow card “Switch on iSMART notifications” once. It is also possible that MG sends these messages only to the main account and not to a second one; I have no way to check that here.
  2. Done in 1.6.1: when the odometer went up by half a kilometre or the position moved more than 300 metres since the previous reading, Homey now switches to the driving interval, even if “car is switched on” never comes. GPS jitter of a few dozen metres does not count.
  3. Also in 1.6.1: a new setting “Interval while parked away from home”. It is 30 minutes by default, so nothing changes until you set it. With 10 minutes, a trip home is noticed within about 10 minutes, then Homey reads every 3 minutes until you arrive. At home the parked interval still applies, so the 12 V battery is spared there.
  4. That one is already there: “Last message” with time and title.

Test version: MG iSMART | Homey

I’d like to hear how the next trip goes with the away interval at 10 minutes.

Homey pro (early 2019)
Phone: Pixel 8 pro
Tablett: samsung s9 fe
MG iSmart
(All updated with latest versions)
MGS5 2025

Created a second account, can log in to the android iSmart app and see the correct car status.

Restarted Homey.

When trying to add the car in Homey (following the instructions in your app) I keep on getting “login failed”, its not accepting the password.

Anything more I should do / try?

Regards
Tony

Hi Tony, thanks for trying it. The way the app logs in is the same as the iSMART app, and I checked this morning that the MG server still accepts it, so it is most likely something in what reaches Homey. A few things to try:

  1. Type the e-mail address and password by hand instead of letting the phone fill them in. A password manager often fills in the password of the main account, and some keyboards add a capital letter at the start or a space at the end of the e-mail address.
  2. Choose Europe as the region; the UK uses the European MG server.
  3. If you tried many times in a row, MG may block the account for a while. Wait half an hour, check that you can still log in with the second account in the iSMART app, and then try Homey once more.

If it still fails, the message after “Login failed” has the answer from the MG server between brackets, for example “(The account is not registered.)” or something about the password. Could you post that exact text? That tells me where it goes wrong.

Hei Danny

Thanks for the quick reply.

Logged out of the i smart app, logged inn again (using copy/paste as per usual). Restarte the Homey app, add device, entered email and password by hand. Same result.

Is there any check og the email domain? I am using Tutamail for this account, have read that there are some sites and apps that don’t like the ‘security conscious’ mail domains…

Nitpicking: I am in Norway, but hey, whatever, Norway is in Europe too… :slight_smile:

Regards
Tony

Thanks Tony, the screenshot helps a lot. “Incorrect password” means the MG server knows the account, so the Tutamail address is fine; it is only the password it does not accept. (And Europe was meant as the MG server region, Norway included.)

This has come up with saic-python-mqtt-gateway before: the iSMART app accepts a password that the MG server then sees differently, because the app ignores symbols and allows at most 16 characters. With copy and paste in the app you never notice. The way out is to give the second account a new password of at most 16 letters and numbers, without symbols, via “forgot password” or the account settings in the iSMART app. Log in with it in the iSMART app once, then in Homey.

Mind the attempts: MG allows 5 wrong ones a day, so if it still fails after the new password, wait until tomorrow before trying again.

‘16 characters’, that was the solution.

The first password I tried to set contained symbols, and the app would not let me create the account. So I removed the symbols but overlooked the 16 character limit…

Thanks for help, I look forward to exploring yor app!

Any worries with this and the mg4 poor 12v battery? I see the app suggests checking a packed car every 30 minutes is safe but it still seems a little excessive. I have already set it back but just curious on others thoughts.

You’re right to be careful, and I have to correct the app here. Calling 30 minutes “safe” was wrong. Every reading of a parked car can wake it, and the developers of saic-python-mqtt-gateway read a parked car only once or twice a day for that reason. Reading while the car is charging or driving is fine, because the 12 V battery is being kept up then. I have not measured this on an MG4 myself.

So setting it back was a good call. A few hours or more is the safer choice for now, and the “12 V battery” value on the device shows how it holds up.

@Linden85 the same goes for my advice to set the away interval to 10 minutes: please set it back too, that wakes the car far too often.

I’m working on a version that reads a parked car from MG’s stored status, which does not wake it. I’ll post here when it is ready to test.

Forgot to mention also but any possibility of Imperial units? Ie MPH for the tachometer etc.

Version 1.7.0 is with Athom for review and comes as an update once they approve it. What changes:

  • A parked car is now followed through the status MG stores, which does not wake it. Homey only wakes the car when that status shows activity, and otherwise twice a day.
  • If you still had the old 30 minutes, it moves to 12 hours. A value you chose yourself stays.
  • Every interval can be set on the device, including how often the stored status and the messages are checked.
  • Messages such as “vehicle started” are now checked every 2 minutes. That is how a trip is noticed without waking the car.

One thing to know for arrival Flows: if the “vehicle started” message doesn’t come, Homey only sees the trip when the car is switched off after arriving. “Last message” on the device shows whether messages arrive.

I built this from what others measured, not on a car of my own, so I’d like to hear how the 12 V battery and your trips behave with it.

Imperial units aren’t in the app yet: speed, range and distances are all in km for now.

@weide43,

Bug: invalid status updates set ‘locked’ to false (false unlocked alerts)

Environment

  • Car: MG S6 EV (2026)

Issue
Occasionally a status update arrives with clearly invalid data. When that happens, locked flips to false although the car is parked, switched off and not unlocked. This fires the ‘unlocked while parked’ trigger and causes false alerts.

Signature of the bad update (always together):

  • Odometer: 26843648 (always exactly this value; real reading is ~7595 km)
  • Range: 5 km (at 76% SoC; normally ~347 km)
  • Locked: false
  • Engine off, car at home, no trip in between

The next valid update restores everything (correct odometer, locked = true).

Occurrences (Homey Insights, CET)

  • Nov 3 19:05 → recovered 19:24 (odometer then 23488205, range 103)
  • Nov 4 09:52 → recovered 10:10
  • Nov 4 10:29 → recovered 10:44
  • Nov 4 17:03 → still active

Expected behaviour
Discard updates with impossible values (e.g. an odometer that jumps by orders of magnitude, or this fixed 26843648 value) and keep the previous values, at least for locked. Alternatively, only report an unlocked state and fire the trigger once it is confirmed by the next poll.

Happy to provide Insights data or diagnostic logs if useful. Thanks!

Thanks for the clear report, that one is my mistake in 1.7.0. Those values come from the status MG stores, which 1.7.0 started reading. Some of those copies hold nonsense, and the app took them over. I checked each copy by reading it twice, but the nonsense stays put between reads, so that didn’t catch it.

Fixed in 1.7.1, which is with Athom for review and goes live as soon as they approve it:

  • A stored status with an impossible value (such as your 26843648 km, or 5 km of range at 76 %) is now ignored completely, so it can’t change anything or wake the car.
  • The lock state no longer comes from the stored status at all, only from the car itself. That ends the false “unlocked while parked” alerts.
  • If your device still holds a wrong odometer when it updates, Homey drops it and reads the car once to get the real values back.

The wrong values already in Insights will stay there as spikes, because an app can’t delete them.

Your data was what pinned this down. I’d like to hear whether the false alerts stop after the update.

@weide43

MG S6 EV no longer updating properly since 4 November (no drive/charge detection, long gaps between updates)

Setup

  • Car: MG S6 EV (2026), approx. 7,850 km
  • Homey Pro (2023)
  • MG app version: 1.7.1
  • Official MG iSMART app shows live data: yes

All times are local time (CET, UTC+1). Data taken from Homey Insights.

Summary

Since 4 November around 18:15 the app only updates the car sporadically. Data still comes in (so login/token seems fine), but:

  • Driving is no longer detected: “Car on” (mg_engine) has not been true once since 4 Nov, while the car has driven over 250 km since then.
  • Charging is no longer detected: a full charging session (approx. 58 kWh) was missed. mg_charge_power stayed at 0 for 7 days.
  • Long gaps between updates: on 12 Nov at 14:06, mg_last_update still showed 12/11 07:55.
  • Invalid odometer values on 3–4 Nov: values of millions of km ended up in Insights.

1. State changes stopped on 4 November

Up to and including 4 Nov, Homey logged on/off, unlocked/locked and away/home for every trip. After that, almost nothing:

Capability Last normal event Events after 4 Nov 18:15
mg_engine 4 Nov 18:15 0
locked 4 Nov 18:06 4
mg_home 4 Nov 18:15 2

Over the same period the odometer went from 7,598 to 7,849 km.

2. No more live updates while driving

  • Before 4 Nov: the odometer increased gradually during a trip, across several hours (e.g. 1 Nov: 7,415 → 7,418 → 7,424 → 7,459 → 7,479).
  • After 4 Nov: a whole trip arrives in a single update (e.g. 7 Nov around 20:00: +73 km at once).
  • After an update, the 12V voltage stays at 14.9 V all night until the next update around 08:00. So nothing is fetched in between.

3. Charging session completely missed

  • The app itself reports the last charge as 10/11 21:55 – 11/11 02:24, 58 kWh.
  • During that session mg_charge_power, mg_charging and ev_charging_state showed nothing.
  • State of charge stayed at 14.7% until 11 Nov approx. 08:00 and then jumped to 79.8%. That is more than 5.5 hours after charging ended.

4. Invalid odometer values just before the break

Hourly averages of mg_odometer in Insights:

Hour Average Actual reading
3 Nov 08:00 7,410,435 ~7,540
4 Nov 10:00 13,052,899 ~7,590
4 Nov 17:00 11,301,101 7,595

This looks like an unscaled or sentinel value that was stored without a sanity check. It happened right before drive and charge detection stopped.

Likely cause

The app no longer recognises the active state (driving or charging) and therefore stays stuck in the slow polling interval. Possibly the API response changed around 3–4 Nov, or the car received an OTA update.

Suggestions

  • Compare the raw vehicle status and charging status responses from before and after 4 Nov.
  • Check which field triggers the fast polling interval, and whether it changed for the S6.
  • Add a plausibility check on the odometer value.
  • An option to export diagnostic logs would help. I’m happy to send them.

I can provide more Insights data or test results (e.g. from a manual refresh or a test drive).