Thank you, literally on a HACS video now
A
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
HI I think I found the problem: you can either use only the iSmart app or Home Assistant (HA). When I start the integration, I get logged out of the app. Then it works briefly, but when I log back into the app, it stops working in HA. Is there a solution for this?
BG Nico
Hi @NED21
No, by the moment there is no way to use both things at the same time. You either use the iSmart App or this integration. It is clearly stated on the repository and info.
MG says that they are working on it, but so far, no news on that update that I was told that was coming.
Hi All,
Im back for some help if possible, ive installed HACS, and Varetas repositry - its asked for my log in which i have done but now im stumped.
I cant see what i need to do next - is there a walkthough or help file please
Thanks
A
Hi,
You may check the repository Readme.
Without much more information on what/where are you stopped, I cannot be of help. Some more info and I may give you some hints.
But mostly check the instructions on GitHub - ad-ha/mg-saic-ha: MG SAIC Custom Integration for Home Assistant
Cheers
Thanks for replying.
I have followed your guide
Picked my VIN and then nothing happens.
Have lots of errors in the log file.
Maybe it isnt for me - all i wanted to do was schedule defrosting
A
So, if you have errors maybe is because you get generic responses based on the data provided by MG.
You may keep trying until you get the data available. Or, instead, you can share those logs on Github (Issues ¡ ad-ha/mg-saic-ha ¡ GitHub) and I can work on that to find a solution. If is something different from the issues on course.
Cheers
This is a fantastic integration - really chuffed with it. Accepting you cannot use the app and this at the same time, is there anyway to force it to reconnect when it loses connection due to using the app? I see in the logs it starts getting authentication failed messages. I know I can reload the integration and that logs it back in, but otherwise it just sits there in a failed state. Would be great to be able to set a timeframe to automatically go back in, if it loses it.
So the login is renewed if necessary, but only if the initial token is not revoked by using your own credentials on any other place (App or other HA instance, for example).
I may look into this, but is something that I did not explore yet, as I find the app quite cumbersome and the integration, on my own use case, is being way more useful.
Thanks for the feedback.
Iâve only had my MG4 less than a week but this is a fantastic integration, thanks for all your hard work.
I would appreciate a means of the integration automatically re-establishing the connection after being bumped off by someone using the app. Son and daughter also use the car so difficult to prevent someone logging on from time to time.
Probably a configurable time delay before re-enabling the integration and bumping them off the app would be bestđ
Thanks again,
Steve
Thanks for the feedback.
Sure, I will try to look into it and see if I may get a workaround for that.
Cheers
What an amazing, usefull integration on HA.
Iâm a MG4 owner too from Taiwan, When I try to add to my HA, the Phone Login information doesnât include Taiwanâs country code(+886), so the setup canât proceed, is there any fix for Taiwan users? that would be very grateful!
note: Region of Taiwanâs MG App called "My MG, itâs similar to your iSmart but not the same one.
I appreciate your patience in reading. I can assist you in testing so all MG4 users in Taiwan can use it smoothly. Thank you very much.
Hi. I can add the country code to the list, but I am not sure on which server your vehicleâs information is. Iâve added all country codes that appear on the iSmart app, which leads me to think that those are the ones where the info we are getting is valid.
So far I know and are tested the servers for Europe and Australia. Iâve an hint on the China server, but Taiwan I am not sure where does that links to. If you are able to get that info, it might be easier to manage.
As the app is different, maybe the server and dataset is also different. But letâs see what can we find and how can we work around it.
Canât you use the email login?
Hi @VaReTaS ,
However, the login method of the APP does not support email, I think the login information might saved in some other way and then sent to the EU Server
Information such as VIN can be obtained through the API request. Will this be helpful for integration?
Thanks for replying.
Hi @PizA
So seems like your app uses the same endpoint as the whole integration, but only login phone, which shall make it easy to manage.
Since it looks like you can handle this. Are you able to add Taiwanâs country code in const.py
on the integration, under country codes, restart Home Assistant and check if you are able to login?
If you follow the same code pattern, once you restart youâll have the Taiwan option.
If you are able to get it login, I will then add Taiwan to the country code list.
If you have any trouble, let me know.
Were you able to test on your instance if by adding Taiwanâs country code you were able to login?
Cheers
Hi everyone,
Latest updates to the integration currently on release 0.7.1.
There was a long way (although in a short period) with a lot of changes, new sensors, adaptations and modifications to get this integration better with every release. I hope that is now being better for all of you and that is improving your experience.
Any feedback will be appreciated.
in addition, sorry I do not come here with every update, but here is a list of the latest changes since the last announcement on 0.4.4.
Next Update Time
sensor.Thanks for adding the re-login feature! Will let you know how I get on.
No worries. Let me know if you find any issue.