Has Anyone played around with HomeASSISTANT addon for the MG4 ???

Hi .. what is the entity name that use to control the charging schedule ?
There are three:

select.lsjwhXXXX_scheduled_charging_mode
text.lsjwhXXXX_scheduled_charging_start
text.lsjwhXXX_scheduled_charging_end

The "XXXX" is my car's ID.

I don't however use them as I control charging with my wall charger.
 
So .. I think I have it working the way I want it to work .. I don't use the scheduling from the car, but instead I just turn it off and turn it on when the logic I created says it's time to charge (or to stop charging) ..
I have a dynamic energy contract - so the electricity price changes every hour and the 'cheap tariff' doesn't come at the same time every day .. by creating an automation rule, I don't have to think anymore .. just plugged-in the cable and let the HA automation logic works ..

questions .. what do you guys have for the intervals value ?
 
What do you mean by "intervals value"?

the values that you can configured at first :

1746528336412.webp
 
...I just turn it off and turn it on when the logic I created says it's time to charge (or to stop charging) ...

questions .. what do you guys have for the intervals value ?
Turn what off and on?
And which home assistant system are you using?
MG / SAIC - Custom Integration or the SAIC MQTT Gateway (Python) addon?
 
Turn what off and on?
And which home assistant system are you using?
MG / SAIC - Custom Integration or the SAIC MQTT Gateway (Python) addon?

turning charging on and off ..

I'm using the MG/SAIC - Custom Integration
 
I think @wattmatters uses the addon which is why he didn't understand your question about intervals.
I use that as well - it's more difficult to install but is more powerful than the custom integration.
So how do you turn charging on and off with the custom integration?
 
I think @wattmatters uses the addon which is why he didn't understand your question about intervals.
I use that as well - it's more difficult to install but is more powerful than the custom integration.
So how do you turn charging on and off with the custom integration?
ah ok ... didn't realize there were 2 options ...

I use this action to turn on charging and there's another action to turn it off

1746538701436.webp
 

Attachments

  • 1746538674426.webp
    1746538674426.webp
    5.4 KB · Views: 24
since yesterday afternoon, my MG SAIC integration does not work. I got the below error messages .. anyone else having problem ?

2025-06-01T04:24:58.907384+02:00 ubuntu hass[11852]: 2025-06-01 04:24:58.900 ERROR (MainThread) [custom_components.mg_saic] Failed to log in to MG SAIC API: return code: 500, message: API call POST /oauth/token failed unexpectedly
2025-06-01T04:24:58.913134+02:00 ubuntu hass[11852]: 2025-06-01 04:24:58.903 ERROR (MainThread) [custom_components.mg_saic] Failed to set up MG SAIC integration: return code: 500, message: API call POST /oauth/token failed unexpectedly
2025-06-01T04:25:26.435793+02:00 ubuntu hass[11852]: 2025-06-01 04:25:26.425 ERROR (MainThread) [custom_components.mg_saic] Failed to log in to MG SAIC API: return code: 6, message: The service is not available,please try again later.
2025-06-01T04:25:26.436061+02:00 ubuntu hass[11852]: 2025-06-01 04:25:26.426 ERROR (MainThread) [custom_components.mg_saic] Failed to set up MG SAIC integration: return code: 6, message: The service is not available,please try again later.
2025-06-01T04:25:55.261045+02:00 ubuntu hass[11852]: 2025-06-01 04:25:55.256 ERROR (MainThread) [custom_components.mg_saic] Failed to log in to MG SAIC API: return code: 500, message: API call POST /oauth/token failed unexpectedly
2025-06-01T04:25:55.262004+02:00 ubuntu hass[11852]: 2025-06-01 04:25:55.257 ERROR (MainThread) [custom_components.mg_saic] Failed to set up MG SAIC integration: return code: 500, message: API call POST /oauth/token failed unexpectedly
 
since yesterday afternoon, my MG SAIC integration does not work. I got the below error messages .. anyone else having problem ?

2025-06-01T04:24:58.907384+02:00 ubuntu hass[11852]: 2025-06-01 04:24:58.900 ERROR (MainThread) [custom_components.mg_saic] Failed to log in to MG SAIC API: return code: 500, message: API call POST /oauth/token failed...
Which home assistant system are you using?
MG / SAIC - Custom Integration or the SAIC MQTT Gateway (Python) addon?
 
hmm .. I wonder if we are connected to the same server .. I tried login with the iSmart app and it gave me "service unavailable" ..

try manually "curl https://gateway-mg-eu.soimt.com/api.app/v1/" also gives the same error ...
at the moment I'm using the HA add-on integration .. I want to try using the SAIC MQTT gateway ... I installed all the necessary python libs (at least it's not sending back error), but I also didn't get any response ... if I check the running process, it's not running ... this is how I run it, is it wrong ?

python src/mqtt_gateway.py -u [email_username] -p [password]
 

Are you enjoying your MG4?

  • Yes

    Votes: 969 77.7%
  • I'm in the middle

    Votes: 185 14.8%
  • No

    Votes: 93 7.5%
Support us by becoming a Premium Member

Latest MG EVs video

MG ZS EV Retrospective & First Look at the MGS5 EV | Live Q&A with Owners & MGEVs Panel
Subscribe to our YouTube channel
Back
Top Bottom