RobQuads
Established Member
I got this working on my MG4 today although some of the numbers are a bit strange so will need some investigation but this has great potential for a nice dashboard
The car that just keeps giving ?I got this working on my MG4 today although some of the numbers are a bit strange so will need some investigation but this has great potential for a nice dashboard
View attachment 16973
Was this using the API listed in the thread? I tried but failed?I got this working on my MG4 today although some of the numbers are a bit strange so will need some investigation but this has great potential for a nice dashboard
View attachment 16973
Yes, this essentially gets a new login token so invalidates the one your mobile will have.I assume this logs you out of the app? Same as trying to log in 2x mobile phones at the same time?
Done: SAIC-iSmart-API/This is using GitHub - ReverseEngineeringDE/iSmart-Gateway-Home-Assistant-Add-on: This repository allows Home Assistant users to access the data of their MG5 electric (2022) car via the iSmart/iSmart lite API. - It looks like a much better implementation based on mqtt is coming looking at the PRs so hopefully that will be merged soon as I think it will make it much easier to use.
Python looks good, it's waiting for your engine so actually it has 0 messages received. If you drive there will be a message every 30 seconds.Hi All,
I am trying this one now but no luck.
Maybe you guys could shed some light...
added repository:
![]()
GitHub - SAIC-iSmart-API/saic-home-assistant-addon: SAIC-iSmart-API repository for Home Assistant OS (HASS.IO)
SAIC-iSmart-API repository for Home Assistant OS (HASS.IO) - SAIC-iSmart-API/saic-home-assistant-addongithub.com
Installed both python and java version and run they both and separately for testing - all the same
Java doesnt have any logs rather than initial ones.
Python logs:
2023-05-24 13:35:58,780 Registering for abnormal messages
2023-05-24 13:35:58,968 Registering for moving messages
2023-05-24 13:35:59,151 Registering for region messages
2023-05-24 13:35:59,337 Registering for engineStart messages
2023-05-24 13:35:59,521 Registering for startVehicleStatus messages
2023-05-24 13:35:59,715 Registering for offCar messages
2023-05-24 13:35:59,900 Registering for speeding messages
2023-05-24 13:36:18,408 last activity: 2023-05-24 13:36:18
2023-05-24 13:36:18,584 0 messages received
2023-05-24 13:37:18,804 0 messages received
2023-05-24 13:38:19,007 0 messages received
2023-05-24 13:39:19,247 0 messages received
2023-05-24 13:40:19,463 0 messages received
2023-05-24 13:41:19,645 0 messages received
2023-05-24 13:42:19,854 0 messages received
Whats the difference between Java/Python versions??
I got kicked out of my phone app so I figure SAIC usr/passwd all good.
mosquitto borker running in HA for other apps as localhost so should be fine - should I set it in any particular way?
I am in EU so SAIC_URI left blank (use default)
What else am I missing?
How do I get the entities? Does it appear under MQTT integration?
Sorry about lots of questions but documentation for this one is very supperficial and I could not find more relevant info.
Examples of your config would be great
Any help welcome
Thanks
Dan
Cool, Thanks.Python looks good, it's waiting for your engine so actually it has 0 messages received. If you drive there will be a message every 30 seconds.
At the moment you need to create mqtt sensors yourself. I'm working on an integration, but doesn't have much time at the moment. I will finish the wiki in the next few days. You can find the structure here:
![]()
MQTT Topic Hierarchy · Issue #46 · ReverseEngineeringDE/SAIC-API-Documentation
Proposed structure for the MQTT topic hierarchy: saic email messages (one subtopic for every message, currently stored on the server) messageId messageType title messageTime sender content status (...github.com
Try the following configuration with the python gateway:Cool, Thanks.
I will follow: MQTT Sensor
Any pointer on how to create it for this addon?
All I need at the moment is battery % for a car charging automation Im running.
I will keep an ey for an integration before going further....
Really appreciated, thanks
Dan
Yep I read it in a different addon Im trying as wellWhile this is cool, I'd be tempted to keep an eye on the 12v battery voltage in the car while using non-standard software - pinging it every 30s could stop the electronics in the car from going to sleep.
as far as I know you can't charge a full electric car with granny cables (hybrids only) , you need a charging station... too much juice/s (amps)!Following this with much interest. I run Home Assistant but have no MG (yet) to experiment with.
I was looking into a scripting a simple DIY PV only charge setup (i.e. similar to a Zappi that uses only excess Solar capacity, but using basic charging hardware or even the granny cable).
Does anyone know if MG4 (and therefore hopefully at some point this API) allows you to limit the kW charge rate when charging via AC/granny?
Completely incorrect. You can fully charge an electric car using plug-in chargers. We have been doing it for the last 2 months while we have been sorting a charger.as far as I know you can't charge a full electric car with granny cables (hybrids only) , you need a charging station... too much juice/s (amps)!
it could technically work but if catches fire, insurance will bail...
Incorrect. You absolutely can charge a BEV with a granny cable, it will just take ages.as far as I know you can't charge a full electric car with granny cables (hybrids only) , you need a charging station... too much juice/s (amps)!
it could technically work but if catches fire, insurance will bail...
Under the Battery tile on the Charge tab, there's an option to select the maximum charge current. From memory these are 6A, 10A, 16A and Maximum. The one time I used the granny lead I just left it at Maximum, as the granny lead control box set the charge current.My query was the granny pulls maybe 7 amps, and I was wondering if there is a software option in the car to set/change the charging amps value so HA could respond to variations in excess available solar by setting the charge rate up or down.