I have been using the MyChevy integration for some time now, but it’s turned up dead in June 2021 thereabouts. The log is full of errors, but perhaps more telling is that GM is probably changing their backend…
I saw this on the website today as I was looking at the website (to check that my password was still working)
EV STATUS AND STATISTICS
ATTENTION: This September, this electric vehicle information will be accessible only on the myChevrolet mobile app. Go to Google Play or the iOS App Store to download the app to your compatible device.
and in the error log:
2021-07-11 14:06:27 ERROR (Thread-3) [homeassistant.components.mychevy] Error updating mychevy data. This probably means the OnStar link is down again
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/mychevy/__init__.py", line 146, in run
self.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 280, in wrapper
result = method(*args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/mychevy/__init__.py", line 119, in update
self._client.login()
File "/usr/local/lib/python3.9/site-packages/mychevy/mychevy.py", line 254, in login
nonce = urllib.parse.parse_qs(initial_url.query).get("nonce")[0]
TypeError: 'NoneType' object is not subscriptable
Thoughts on this matter? Sounds like maybe it’s the end of the line for now…
I’ll add a couple of my experiences (which may or may not apply in your case):
Whenever I parked my car in the garage with the garage door closed, I believe the cellular signal was too weak for OnStar Connected Services to be able to talk to my car. Subsequently, I would get a similar Log that you did. Once I pulled the car out of the garage and drove around, the errors would clear up.
My OnStar Connected Services subscription expired a couple of months ago, and the Login failed all the time… I eventually removed the My Chevy integration in late May/early June.
MyChevy Integration hasnt worked for me for a few months now. Pretty sure its related to Chevy releasing their 5.0 app and now requiring a 4 digit pin on log in each time.
I started using this:
Michael does a great job keeping this updated. I run it as a docker image on my docker host and have it sending the messages to the official MQTT integration.
I got this running and the mqtt sensors appear and update in Home Assistant. My issue is that I can’t seem to send commands using the script example code on the repo site.
Anytime I try to send a command, the following:
Message 0 received on homeassistant/MY-VIN/available at 9:09 PM:
true
immediately changes to false for about 10-30 seconds, before changing back to true and the command is never successfully executed.
My scripts are basically the same as what is in the repo’s example:
alias: Car - Start Vehicle
sequence:
- service: mqtt.publish
data:
topic: homeassistant/MY-VIN/command
payload: '{"command": "startVehicle"}'
mode: single
icon: 'mdi:car-electric'
I have found that if your vehicles has sat for awhile that the commands don’t always flow to MyChevy successfully. At time I have to wait 5+ minutes before the command starts my truck.
What do the logs say? You should see something like “command successful sent” or you’ll get a bunch of jiberish back from the mychevy side.
I’m a newbie so take it easy if this question can be answered somewhere else. How can I start an MQTT server and add the MichaelWoods/Onstar2MQTT? If anyone could point me in the right direction, it would be greatly appreciated. Thanks in advance.
Just a quick update, I have been able to load the docker with success as an add-on. Im now making the config to be home assistant friendly, and try to load password thought the !secrets.
Thanks for doing this. I have installed this and is running without error but I do not see any sensors created. Should there be any sensors or is just to issue commands?
It does create this one mqtt sensor:
homeassistant/VIN/available
thanks!