Home Assistant MG4

jiiikoo

Standard Member
Joined
Nov 12, 2023
Messages
39
Reaction score
47
Points
15
Location
Finland
Driving
MG4
Hey

So I got HA running and connected to my MG4, still learning most of the things but one thing I definitely wanted to have was graphing charging the battery in Grafana. I believe the sensor called "power" is what shows the speed of the charging but I noticed that it also then shows discharging as well, ie. when you drive and the battery charge goes lower.

Am I missing a sensor or is there not a dedicated sensor for the charging speed?
 
I'll tag @wattmatters for feedback, as I'm pretty sure he does a lot of HA with his MG4. :)
Oh amazing! I don't mind having to use the _power sensor per se, just find it strange that there's no other sensor on there that's just dedicated to actual charging. Or at least I'm not seeing one xD

I have loads of questions for @wattmatters lined up :D
 
I’m using HA in a Docker container and saicismartapi/saic-python-mqtt-gateway:latest with Mosquitto.
I'm using the ad-ha/mg-saic-ha: MG SAIC Custom Integration for Home Assistant. There are pros and cons to the two integrations but I'm surprised the one you are using doesn't have the charging_power sensor. Perhaps ask on the github page for that integration.
 
I'm using the ad-ha/mg-saic-ha: MG SAIC Custom Integration for Home Assistant. There are pros and cons to the two integrations but I'm surprised the one you are using doesn't have the charging_power sensor. Perhaps ask on the github page for that integration.
This integration also has an instant_power sensor which shows the power to the motor or negative regeneration. I don't use it for anything as it is the value at a moment in time which isn't of much interest. Perhaps the other integration combined the two sensors into one, although I don't really see the purpose in that.
 
I'm using:

There is no sensor just for charging power - the car reports the power flowing to/from the battery.

You could create a custom sensor which filters only for positive power and only when the car is at home.

I measure power and energy for the AC circuit supplying power to the EVSE I use to charge the car. That's from a different device/integration (Iotawatt).

I'm more interested in the power I have to actually supply to the car than in what the battery itself is consuming. Mine charges from excess solar PV.

Screen Shot 2025-11-23 at 12.06.03 pm.webp
 
@SteveMSJ Do you happen to know if ad-ha/mg-saic-ha supports the door lock status to be shown? I know it has a switch for locking and unlocking the doors, but is there a binary sensor that tells HA if a door is unlocked? The one I see is either closed or open so it doesn't tell the lock status, just if the door is closed or open.
 
@SteveMSJ Do you happen to know if ad-ha/mg-saic-ha supports the door lock status to be shown? I know it has a switch for locking and unlocking the doors, but is there a binary sensor that tells HA if a door is unlocked? The one I see is either closed or open so it doesn't tell the lock status, just if the door is closed or open.
It has a binary_sensor for the lock status of the car and individual binary_sensors for the open/closed status of each door, window, etc.
 
Last edited:
It has a binary_sensor for the lock status of the car and individual binary_sensors for the open/closed status of each door, window, etc.
Ah, as I suspected. Thanks! One more question if you don’t mind, but have you gotten remote climate starting to work? I added a Thermostat card into HA that had Climate as the entity, but none of the buttons/temp actually start the climate control 🤔
 
Ah, as I suspected. Thanks! One more question if you don’t mind, but have you gotten remote climate starting to work? I added a Thermostat card into HA that had Climate as the entity, but none of the buttons/temp actually start the climate control 🤔
Yes, I can start the climate control remotely from HA or from the App.
One oddity is that the HA integration doesn’t show the heating/cooling running when you set it in the car.
Some cons to this integration:
It is not supported currently.
It doesn’t check messages like the other integration so doesn’t force an update when the car is started. I get round this but it is a good reason to stick with the MQTT integration.
 
Yes, I can start the climate control remotely from HA or from the App.
One oddity is that the HA integration doesn’t show the heating/cooling running when you set it in the car.
Some cons to this integration:
It is not supported currently.
It doesn’t check messages like the other integration so doesn’t force an update when the car is started. I get round this but it is a good reason to stick with the MQTT integration.
Hmm, do you mind DM'ing or showing your entity settings for the climate control, as for whatever reason it just doesn't want to work for me :(
 

Are you enjoying your MG4?

  • Yes

    Votes: 1,047 77.8%
  • I'm in the middle

    Votes: 203 15.1%
  • No

    Votes: 96 7.1%
Support us by becoming a Premium Member

Latest MG EVs video

MG IM5 and IM6 Questions & Answers
Subscribe to our YouTube channel
Back
Top Bottom