For me a password with special characters was not working. Had to create one without special characters and then the integration worked.
Champion, I changed the password and I can login.
Anyone able to explain step by step to us newbies how to set this up?
I did a thing… my car is connected
care to share?!
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.