Would also appreciate a step by step guide if anyone have it
Also do I understand correctly as you only can have one user the car app would be logged out all the time or vice versa ? Can’t be two active. ?
What did you have to do to get it working?
I’ll try. I dont know how to do that…
How can I add images and so?
copy and paste them directly into the message box. The website should take care of posting them.
Looking forward to seeing what you managed to achieve!
That used to be annoying but the latest versions of app and integration play together fairly well provided you only use the app occasionally. I can start my (Android) app without re-logging in each time, and the integration doesn’t get in the way.
I managed to install the integration. To succeed, you’ve got to do some things
- Add a user
- Install the MQTT broker
- Install the MG integration
- Fill in your credentials
Add a user
- click your name
- select advanced mode
- then click Settings → People → Users
- Add a user
- You will need the name and the password for the MQTT broker
Install MQTT broker
- Click Settings → Add-ons → Add-on store
- Search for MQTT and select Musquitto broker and install
- check start on boot, and if you like watchdog and auto update
- Click Configuration
- click the three dost and edit in YAML
- Fill in the user and password of your broker user and safe it
- Click Info and start
Add the SAIC iSmart add-on
You need this link:
https://github.com/SAIC-iSmart-API/saic-home-assistant-addon
- Click Settings → Add ons → Add-on store
- Click the three dots in the right upper corner
- Select Repositories
- Fill in the link above and select Add, close the window
I choose the SAIC MQTT gateway (Python), this one works for me.
- Click your choise and select Install
- Click Configuration
- Fill in:
MQTT_URI tcp://[ipadress where the broker is installed on]:1883
MQTT_USER [step Add a user]
MQTT_PASSWORD
SAIC_USER [login email adress of your SAIC app on your phone]
SAIC_PASSWORD [Password of your app]
-Safe it
The rest I did not fill in
- Return to Info and select Start
NEXT
- I restarted HA
- Select Settings → Devices & Services
- Select Configure in MQTT
- Select Submit
that should be it!
I tried the Java option ass well, ther it shows up under the Home Assistant Supervisor button
I have to find out how to work with it
That is very cool and helpful. Thanks for taking the time to write it up for us. Will try tomorrow
let me know
It just works, and first time so many nice statistics popping in. Thanks for sharing again.
Maybe a last question? is there something in the settings that should be changed. I read someone said that the 12v batteri could be getting too low because of polling. But if I understood it was not this gateway version. But I just want to be sure so I don’t risk draining the battery. Did you do anything special besides what you wrote and you didn’t see your battery having an issue. I also guess if you drive it each day, then it gets recharged but what would happen if it was standing still for a weekend or week. Just thinking,.
Now of to create a new dashboard for the car excited.
Have a great evening.
I’m pretty sure the car looks after the 12v battery and charges it from the main battery when ever it gets low.
I also thought so, and maybe I’m wrong. But I think I read an article (will see if I can find it) where to my understanding the cars main battery and the 12V battery is not connected. So it’s not charged through the big battery. And even if the 12v battery does die you can’t even charge the main battery as the main system to charge the battery won’t boot up. In this article case they had to get a booster to charge the 12V before they could even charge their main battery. That’s why I asked if there was some depletion check as it’s a hassle if you drain it completely ( apparently )
Another question. I can see in the new MG iPhone app that they removed the possibility to preheat battery an hour before you drive. I at least can’t find it anymore. Is there a way to schedule it from within HA using this addon ? Can’t seem to find it. Also it would be great to schedule heating in the morning. But I guess that is just an automation.
I think it is the Gateway ineractive refresh period
.
You can choose either periodic of forced refresh. And ofcourse off… but it is nice to have some refreshed data
I am not sure about it. As I observed the 12V battery will be drained, if you start the car it complains about the low battery, but from the main accu the 12V will be loaded.
My MG4 has been parked at the panel beaters since late September, and will still be sitting there for at least a month while waiting for parts.
With this integration we’ll now know exactly what happens to the 12V battery over time with constant polling ( default settings ) without being driven
Once I see a bit of a trend hopefully in a few days, I’ll post back.
BTW, when I parked the car at the panel beaters, SOC was 80%.
Now sitting at 77.6%. So while sitting without being used, it looks like SOC drops <1% per month.
Sorry to hear about you waiting for your car
My integration is running, when I drive the car and turn it off. And it’s set to periodic, but unless I hit the force button it does not update after the car is parked. When is “periodic” supposed to run for others?
I just set it up so I don’t have much experience with the add-on yet, I noticed it yesterday around midnight that it did not update any values since I came home around 19:00 so I thought the integration had issues and I restarted it. Then everything also updated fine once. It also updates fine while it charged during night. But again after I was done driving this morning it does not update after for hours until I then drive again or charge it. Is that as expected or ? It would be nice to have the periodic updates as it is set to
Where are those setting? (gateway active refresh periodo, gw grace periodo…). I cant find them at the addon configuration -edited: they are created by the addon, got it-.
hi,
what is the SAIC_USER is it ISMART user of the MG app ?
from where do i get it ?
Yes you are right it is the same user that you use in the Phone App. And it has to be the email and not phone number, you can log in with both in app but not with this integration it has to be email.
Want to share my new observations with the integration now running for a few days and also hear your experience with it if its same or different.
I have Marvel R and the integration works to collect a lot of sensors but here is what I have found out.
-
It only updates when im driving the car.
-
Initially I thought it also updated the progress during charging, but it does not.
-
I do have the “periodic” setting enabled( its default) , but It does not update. Now my sensors haven’t been updated for 19 hours since I last used the car. It only updates from the system if I use the force or if I drive the car.
Again, could anyone tell me what is the expected behaviour of the integration? I could possibly setup an automation that would hit the force state at a specific interval, but I thought the whole point is that it should be doing it is self on a regular basic. Perhaps it is also working as expected for others, but then I need to find out what could be wrong with my system since it does not fetch new values.
Thanks in advance.