Just installed this (quite challenging!)
Many of the states are OK.
But I’ve currently got the car charging and…
Charging Status: Not Charging
Charging current: 0A
Charging Voltage: 0 V
Charging Gun State: Unplugged
Just installed this (quite challenging!)
Many of the states are OK.
But I’ve currently got the car charging and…
Charging Status: Not Charging
Charging current: 0A
Charging Voltage: 0 V
Charging Gun State: Unplugged
Hi,
It may change when the integration updates and receives new data. Also keep in mind that it is dependant on the API sending the right data, which sometimes does not happen.
Try to reload the integration, to force a refresh, and see if the status changes.
Cheers
Hi
I just released a new version of the integration:
@cliver this already includes the Set Target SOC service.
@Terkel this should address the issue with the update intervals.
Cheers
This looks great, anyway to set to Miles instead of KM?
Hi,
Thabks for the feedback.
That’s something on my to-do list. I wanted to try to sort something out before start messing with that.
I will try to get imperial units on a next release.
Cheers
Thanks, also would be nice to have the LV battery status like other integrations and perhaps if it can be logged in with the shared key owner so you don’t need to logout main account?
Hi,
There’s a battery level sensor already present. It shall be called sensor.brand_model_battery_voltage
See below:
Well, the accessories battery (12v) is automatically charged, yes, but when the vehicle is working or charging. If the vehicle is turned off, the 12v battery level can go very low and you may not be able to start the car. That’s why we need to limit the calls to the vehicle.
Cheers
Hello again download the new version, and tried to set up an automation, to charge car. I ran it and got
Im new to this, do i need to put in the VIN for my car ?
Where and how? Please.
Hi,
For that you have to use the VIN of the car on the service/action. Bear in mind that you may have more then one car on the same HA instance, so you need to specify the VIN.
Your automation “Action” should look something like this:
Hope it helps
Hi, everyone.
So I just released a new update to this integration. More info here:
Cheers
Hi everyone,
Latest updates to the integration on release 0.4.4
Cheers
I set this up yesterday with my MG4. The integration is installed and it connected to my car once when I added the integration but then it never updates. Any ideas? I have changed the update interval to see if that helps but still nothing. When I try any of the switches nothing works.
Hi @rt45433
It might be an issue of MG not sending valid data and only sending generic data, which is discarded.
Although, did you launch your phone App after doing the integration? If you did, the token gets revoked and the integration is not able to get any valid data afterwards. You need to reload it.
I logged out of the MG app on my phone prior to installing in HA and have not logged back since. I have also tried to reload and delete the integration and reinstall but it does the same thing. It shows the entities connected just once then that’s it’s but the whole time I have not been able to control any of the functions. I installed the integration a couple of months ago and it worked fine so maybe it’s since it’s been updated?
So it might be something with MG, probably. Check the logs (activate Debug logs, see here how to; Login failed · Issue #3 · ad-ha/mg-saic-ha · GitHub)
Sometimes MG fails to send valid data, and it might be the case. In my production instance I’m not having issues, aside from some regular generic responses, which sometimes go on for a couple of days.
Hi
I also have the following problem: as soon as it reads out the VIN and I specify BEV (MG4), I get ‘Invalid flow specified.’ I log in with my email because using the phone number +43 for Austria is not available. I’m using NabuCasa, so it can’t be due to the cloud
THX
BR Nico
Morning all.
Very new to HA (literally last night) so please excuse the silly question.
How do i install this to my dashboard (ive added my other devices that could be found in the “store”) but couldnt see how to add this to my account.
Thanks in advance
A
You first need to download HACS, just watch a YouTube video for it—it’s the easiest way
BG
Thank you, literally on a HACS video now
A
Hi @all
this is my Probelm:
Error setting up entry MG SAIC - LSJWHxxxxxxxxx for mg_saic
Traceback (most recent call last):
File “/config/custom_components/mg_saic/coordinator.py”, line 73, in _async_update_data
self._is_generic_charging_response(charging_info)
File “/config/custom_components/mg_saic/coordinator.py”, line 191, in _is_generic_charging_response
raise GenericResponseException(
custom_components.mg_saic.coordinator.GenericResponseException: Generic charging response received.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 635, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/mg_saic/init.py”, line 42, in async_setup_entry
await coordinator.async_setup()
File “/config/custom_components/mg_saic/coordinator.py”, line 53, in async_setup
await self.async_config_entry_first_refresh()
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 309, in async_config_entry_first_refresh
await self._async_refresh(
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 382, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/mg_saic/coordinator.py”, line 141, in _async_update_data
await asyncio.sleep(delay)
File “/usr/local/lib/python3.12/asyncio/tasks.py”, line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError