Anybody Connected their ZS EV to Home Assistant

How does that work? Is it to schedule charging or to use the car battery for power?
I have it also.

It gives you all of the info from the app and then some.

Climate temperature vs commanded temperature
Added range in last charge
12V battery, voltage
Bonnet closed status
Boot status (Including unlocking boot from HA)
Charging enable / disable
Charging current limit
Charging duration
Charging gun connected status
Charging power
Charging status
Charging voltage
Dipped beam status
4 doors open/closed status
Expected range
Engine status
Exterior temperature
HVAC Status
Instant power
Interior temperature
Last powered off
Lock status
Main beam status
Mileage
Mileage driven since last charge
Power mode
Power used since last charge
Remaining charging time
Side light status
Current speed
SoT
Target SoT
Tyre pressure for each tyre
Window open status for all 4 windows
 
How does that work? Is it to schedule charging or to use the car battery for power?
See here for earlier info.

It's for whatever you want to use it for. I use it for tracking info on the car, and occasionally have used it with some automations regarding charging (mainly as load dump in my last home as I had to carefully management peak current draw).

Here's an example of a couple of charts where I track economy over time:

Screen Shot 2025-06-01 at 7.18.55 pm.webp


Guess when I did a bunch of towing?

I prefer for charging automation to be managed by an independent charger control though, as I think it's best not to be reliant on the car's connectivity and SAIC's servers for that task.

But for the most part you certainly could use it to manage charging. In fact I might just trial it tonight for my wife's car with the plug-in charger during the super off-peak period (mine will get charged with our wall charger).

You could do all sorts of things - e.g. if you were a regular commuter and needed to pre-warm the battery and cabin in winter on certain days of the week then you could automate that to happen at a certain time of day if the exterior temperature goes below a set threshold. Easy to set a toggle to turn the feature on/off.

Or set up an alert if the 12 V auxiliary battery voltage drops too low too often, indicating it might be good idea to tend to it or replace it.

I have a sensor I set up to tell me how many days it's been since the car was fully charged to 100%. I could set a trigger to remind me to do that if it's been a bit long.

Really it's a function of your imagination and thinking "wouldn't it be good if... ?".
 
See here for earlier info.

It's for whatever you want to use it for. I use it for tracking info on the car, and occasionally have used it with some automations regarding charging (mainly as load dump in my last home as I had to carefully management peak current draw).

Here's an example of a couple of charts where I track economy over time:

View attachment 37111

Guess when I did a bunch of towing?

I prefer for charging automation to be managed by an independent charger control though, as I think it's best not to be reliant on the car's connectivity and SAIC's servers for that task.

But for the most part you certainly could use it to manage charging. In fact I might just trial it tonight for my wife's car with the plug-in charger during the super off-peak period (mine will get charged with our wall charger).

You could do all sorts of things - e.g. if you were a regular commuter and needed to pre-warm the battery and cabin in winter on certain days of the week then you could automate that to happen at a certain time of day if the exterior temperature goes below a set threshold. Easy to set a toggle to turn the feature on/off.

Or set up an alert if the 12 V auxiliary battery voltage drops too low too often, indicating it might be good idea to tend to it or replace it.

I have a sensor I set up to tell me how many days it's been since the car was fully charged to 100%. I could set a trigger to remind me to do that if it's been a bit long.

Really it's a function of your imagination and thinking "wouldn't it be good if... ?".
Looking good.

To be honest i would not want to uninstall the ISmart app though, the connection to the servers via HA, seems even more dodgy than the app.

I have had literal days, where HA was not able to connect to the MG server and when i asked about it, i was just told, the error meant that MG servers were not accepting my token. 2 days later it worked again, so must be their servers being bad.
 
What integration do I need to look up?
See post #5 above for the link to the discussion.

So how is it connected to the car? You need to have something wired up in the car?
A Home Assistant add-on connects to the SAIC API, the same system as the iSmart app uses. If you are already using the SAIC iSmart app, then you can connect Home Assistant to it.

There are a couple of Home Assistant integrations which can do this, I'm using this one:

But see the link I referenced in post #5.
 
But for the most part you certainly could use it to manage charging. In fact I might just trial it tonight for my wife's car with the plug-in charger during the super off-peak period (mine will get charged with our wall charger).
It appears setting the scheduled charging didn't work but that just could have been user error on my part.

I will try setting up a Home Assistant automation today instead.
 
OK, have set up an initial automation, at least for now. This will enabled charging during set windows (cheaper power) and disable it outside those windows if we are importing too much power from the grid.

It started charging at 10 AM as expected.

Screen Shot 2025-06-02 at 1.12.02 pm.webp


Turn on charging:

YAML:
alias: MGZS Start Charging
description: ""
triggers:
  - trigger: time_pattern
    minutes: /5
conditions:
  - condition: state
    entity_id: binary_sensor.xxxx_charger_connected
    state: "on"
  - condition: not
    conditions:
      - condition: state
        entity_id: binary_sensor.xxxx_battery_charging
        state: "on"
  - condition: numeric_state
    entity_id: sensor.xxxx_soc
    below: 90
  - condition: or
    conditions:
      - condition: time
        after: "09:59:00"
        before: "15:00:00"
      - condition: time
        after: "00:00:00"
        before: "04:00:00"
  - condition: numeric_state
    entity_id: sensor.sigen_0_grid_sensor_export_power
    above: 1000
    enabled: false
actions:
  - type: turn_on
    device_id: xxxxx
    entity_id: xxxxx
    domain: switch
mode: single

Turn off charging:
YAML:
alias: MGZS Stop Charging
description: ""
triggers:
  - trigger: time_pattern
    minutes: /5
conditions:
  - condition: state
    entity_id: binary_sensor.xxxxx_charger_connected
    state: "on"
  - condition: state
    entity_id: binary_sensor.xxxxx_battery_charging
    state: "on"
  - condition: not
    conditions:
      - condition: or
        conditions:
          - condition: time
            after: "09:59:00"
            before: "15:00:00"
          - condition: time
            after: "00:00:00"
            before: "04:00:00"
  - condition: numeric_state
    entity_id: sensor.sigen_0_plant_grid_sensor_active_power
    above: 500
actions:
  - type: turn_off
    device_id: xxxxx
    entity_id: xxxxx
    domain: switch
mode: single
 
So how is it connected to the car? You need to have something wired up in the car?

Looks amazing !
Using the HA integration, you will make another driver in the ISmart app so the integration essentially connects like it was another ISmart user
 
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