API integration

DavEV

Standard Member
Joined
Nov 12, 2022
Messages
41
Reaction score
28
Points
14
Location (town/city + country)
UK
Driving
MG4
Hello, does anybody know if/how to access the MG4/iSMART API to integrate the car with home automation solutions like Home Assistant and alike? I used to have that on my previous Leaf, it'd be nice to have it back on the MG4.
Thanks
 
You mean so you can ask Google/Alexa/Whoever to preheat your car, and such like?
 
Last edited:
Yes, kind of. I doubt you can get it to integrate with Google/Alexa by yourself but I integrated my previous Leaf with Home Assistant (using a container developed by someone else), so I could run automations for it (e.g., to preheat the car during weekdays if at home and when it's cold in the morning, send an alarm if the car is moved or is not charging at the workplace, etc.)
I know you can schedule from the app but you can't set days or location for it.
 
That would be very nice! ive got HA at home too sor monitoring solar and such
 
For reasons best known to themselves, SAIC neither publish an API nor encourage access to their systems. So currently it's not possible and there's no sign of that changing any time soon.
 
I guess the Great Firewall of China is blocking everything! :)
 
For reasons best known to themselves, SAIC neither publish an API nor encourage access to their systems. So currently it's not possible and there's no sign of that changing any time soon.
Don't want to be found out that they "acquired" it from another manufacturer ?
 
I might take a look at trying to reverse engineer it at some point. I assume most of the detail we’d need will be in the APK and we can decompile the Java. Hopefully there’s not too many layers of security to prevent it being used by something other than the app.
 
I was thinking too to do some packet capture and possible reverse engineer the app (although I'm not good at the latter). If anyone else is able to find any useful information, I'll be happy to offer a drink or something :)
 
Hi,

I'd also find this very useful to work with Home Assistant.

There is a separate thread on this that I'm keeping my eye on.


Fingers crossed it works out
 
I'd be amazed if there's no form of limit on calls to stop people benefitting from that sort of information.
You'd think so but then I'd be amazed that a modern car could come with a droopy undertray, oil leak and software nags you can't turn off!
 
Maybe the german Forum can help you
just use google translate
and
 
Has someone already tried this solution to get the MG4 data in HA?:

I've tried it for my MG4 but not yet succesfull (everything is running but no data on the entities)
 
Has someone already tried this solution to get the MG4 data in HA?:

I've tried it for my MG4 but not yet succesfull (everything is running but no data on the entities)
Already solved, you have to use your email as login instead of your phonenumber
 

Are you enjoying your MG4?

  • Yes

    Votes: 1,060 77.7%
  • I'm in the middle

    Votes: 207 15.2%
  • No

    Votes: 99 7.3%
Support us by becoming a Premium Member

Latest MG EVs video

MGS6 deep dive + MG2 rumours, MGS9 PHEV preview and Cyber X tease
Subscribe to our YouTube channel
Back
Top Bottom