2024+ Chevy Blazer EV Forum banner

Smart Home, Now Smart Car

7.5K views 56 replies 12 participants last post by  Canadian  
#1 ·
I had a little bit of fun. I integrated the OnStar functionality into my smart home. I use Home Assistant, and it was pretty simple to connect it to Onstar2Mqtt and pull data and also send commands. One thing I am most excited about is that when it detects me having a shower in the early morning during a work day, it will start preconditioning my car at that time, rather than on a schedule. I like to sleep in. I am not very consistent with my hours. In some ways, it is better than the app because you don't have to wait for sign in, then press and hold, and generally, remembering to precondition the car. Probably be a lot of fun in the winter on cold days. I attached what it looks like in my dashboard. I am aware the background image is of an SS model, but it is really hard to find a nice image of the RS in an attractive pose for a wallpaper.

Image
 
#2 ·
I had a little bit of fun. I integrated the OnStar functionality into my smart home. I use Home Assistant, and it was pretty simple to connect it to Onstar2Mqtt and pull data and also send commands. One thing I am most excited about is that when it detects me having a shower in the early morning during a work day, it will start preconditioning my car at that time, rather than on a schedule. I like to sleep in. I am not very consistent with my hours. In some ways, it is better than the app because you don't have to wait for sign in, then press and hold, and generally, remembering to precondition the car. Probably be a lot of fun in the winter on cold days. I attached what it looks like in my dashboard. I am aware the background image is of an SS model, but it is really hard to find a nice image of the RS in an attractive pose for a wallpaper.

View attachment 1969
Very impressive! Paul Hibbart would love you for using Home Assistant. 🤣🤣🤣

I should consider this myself. I think I have a spare Raspberry Pi 3 sitting around here somewhere.
 
#3 ·
I just love it because almost everything smart home is supported and that means one app to deal with it all.

Plus there’s a home assistant app already for AAOS. It’s installed and tells me various things about the Android side of things inside of home assistant. It only it could tell me the last time it auto updated or something so I can know if fixes might have rolled out.
 
#6 ·
Well, an update. GM hates fun functionality. With the rollout of MFA, the integration is broken. This was the cool feature to talk about to counter my super big negative around the car. Because, who doesn’t want a car guaranteed to be warm in the winter or cool in the summer every time?
 
#10 ·
I had a little bit of fun. I integrated the OnStar functionality into my smart home. I use Home Assistant, and it was pretty simple to connect it to Onstar2Mqtt and pull data and also send commands. One thing I am most excited about is that when it detects me having a shower in the early morning during a work day, it will start preconditioning my car at that time, rather than on a schedule. I like to sleep in. I am not very consistent with my hours. In some ways, it is better than the app because you don't have to wait for sign in, then press and hold, and generally, remembering to precondition the car. Probably be a lot of fun in the winter on cold days. I attached what it looks like in my dashboard. I am aware the background image is of an SS model, but it is really hard to find a nice image of the RS in an attractive pose for a wallpaper.

View attachment 1969
Thanks for posting this. I got this working in my home assistant based on the links you posted.
I made a dashboard that includes both the onstar blazer mqtt feed and my ChargePoint home flex.

I really like the look in the mobile app, even more than the MyChevy app.

Image

Image
 
#11 ·
I really enjoy how much faster it is to send commands. No press to hold.

One idea I have is to tie the car to my alarm system when its at home. No need to get an outside buzzer; just have your car go nuts. But I am afraid that either testing or it tripping driving the neighbours nuts. I already once had my car alarm go off when I was at Dinsey World (though I am unsure if I was the cause, or there was an actual cause).
 
#13 ·
So I figured I should update everyone how I made this easier:

First, I am using an addon repository for the On-Star setup. The nice thing about the add-on is it has room for more than one care (only two; and I am not sure how well it works with ICE models because this was designed for the Volt and Bolt). It's also a lot easier to configure since it is in the GUI., The repository is: GitHub - BigThunderSR/homeassistant-addons-onstar2mqtt: OnStarJS wrapper for MQTT as a Home Assistant Add-on

Second, and I am not sure if this is experienced by a lot of people, but the remote start from the app or FOB fails a ridiculous amount of times. So here is my script to try multiple times until it does work (max 3 times). If it responds unexpectedly, I just assume it starts.

YAML:
blazer_ev_start:
  alias: Chevrolet Blazer EV Remote Start
  sequence:
    - variables:
        retry: true
    - repeat:
        count: 3
        sequence:
          - service: button.press
            target:
              entity_id: button.2024_chevrolet_blazer_ev_command_status_monitor_sensors_command_start
          - wait_template: "{{ is_state('sensor.2024_chevrolet_blazer_ev_command_status_monitor_sensors_command_startvehicle_status_monitor', 'Sent') }}"
          - wait_template: "{{ not is_state('sensor.2024_chevrolet_blazer_ev_command_status_monitor_sensors_command_startvehicle_status_monitor', 'Sent') }}"
          - choose:
              - conditions:
                  - condition: state
                    entity_id: sensor.2024_chevrolet_blazer_ev_command_status_monitor_sensors_command_startvehicle_status_monitor
                    state: "Command Failure"
                sequence:
                  - delay: "00:00:10"
              - conditions:
                  - condition: not
                    conditions:
                      - condition: state
                        entity_id: sensor.2024_chevrolet_blazer_ev_command_status_monitor_sensors_command_startvehicle_status_monitor
                        state: "Command Failure"
                sequence:
                  - variables:
                      retry: false
    - condition: template
      value_template: "{{ not retry }}"
  mode: single
  icon: 'mdi:car-electric'
 
#15 ·
It has stopped. The secrets necessary expired October 23rd and GM really doesn't like us doing this and they changed how it authenticates. Now it has to be reversed engineered yet again.

It is kind of disappointing. This functionality seems to get people interested and I'd think GM would love if I could say 'And GM vehicles are the only vehicles cool enough to do this.' I am starting to think GM is sleepwalking into the trash that is Google's business model via AAOS. 3rd party integrations doesn't work. Their app doesn't work. They killed Google Assistant voice commands. All I have is my keyfob. So 90s.
 
#18 ·
I have been playing close attention, but it seems Canada has a very different login process than the USA and we are not permitted third party app MFA options. So I have to wait and hope they do migrate the USA system to Canada.

This might also explain why the MyChevrolet app performs like absolute shit after they required MFA. I can't remote start my car. I can't see my charge status. I can't do anything with that app unless I delete everything re-install, and re-login. Then, for a glorious first load of the app, everything works. It should be disgusting that despite the longterm outage of Onstar2Mqtt project; it proven way more reliable since I bought the car. LOL
 
#22 ·
Hi @Canadian , thanks for all your very informative posts. I am mostly setup and ready to go except for the pesky TOTP code. I tried the app(GM-MS-TOKENS.exe) and it seems to crash on an error. On my first attempt it accepted my username and password and sent me an access code via email. When I entered the code it flashed something on the screen and then crashed. I retried and it crashed right after I entered the password. I also tried the NPM method which I could not get to work. It just says "> node-oauth2-gm@1.0.0 start > node auth/app.js Server running on http://0.0.0.0:3000" but does not ask for a username and password. I am in BC so I am wondering if there are still issues with the Canadian MFA or if I am just missing something. Cheers
 
#23 ·
I never used the NPM module directly. I’m not sure what might be the problem.

I have used the GM-MS-TOKENS app without too many issues. I’d suggest either posting the issue to their GitHub. But without knowing much about the error, it’s hard. But did it produce the JSON file? That’s all it does once it’s generated and exits. I always run it from a command prompt so I can read the output.
 
#26 ·
I wasted a lot of time trying to get this to work using michaelwoods/onstar2mqtt which involves setting up docker and bridging mqtt. Luckily I found Canadian's post above which was a lot simpler and easy to setup.

"First, I am using an addon repository for the On-Star setup. The nice thing about the add-on is it has room for more than one care (only two; and I am not sure how well it works with ICE models because this was designed for the Volt and Bolt). It's also a lot easier to configure since it is in the GUI., The repository is: GitHub - BigThunderSR/homeassistant-addons-onstar2mqtt: OnStarJS wrapper for MQTT as a Home Assistant Add-on
- Canadian"

If you follow the instructions in the Bigthunder repo you should be fine. I ran into difficulties because in Canada it turns out we cannot use TOTP. You should be able to get a TOTP code as an American user.

This addon requires the installation of Mosquito Mqtt first. There are lots of Youtube video on how to setup Mosquito if you don't already have it installed.
Once you have Mosquitto and the addon all you have to do is go into the config page where Bigthunder has provided a handy config form. If you need help with any of the fields let me know.

Hope this helps. Bruce
 
#27 ·
I was looking at that repo and was wondering how I add the script to Home Automation since I don't see anything for that particular add-on nor do I see a section to add a custom script without having to build it first. I'm quite familiar with YAML since my job is scripting and we use YAML for our scripting pipelines.
 
#28 ·
Go to SETTINGS/ADDONS at the bottom right is a button that says ADDON STORE.
Click on the button and search for OnStar2MQTT Home Assistant Add-on.
When you select the addon you will see a link in BLUE that says INSTALL. Just hit the link and it will install. Once installed you can go to the config tab.

I am new to HA myself and found it a bit confusing that there are 3 different ways to install a repo.
ie system/add integrations
system/addons
and HACS
 
#30 ·
I've been wanting to get Home Assistant set up for years in my house, finally pulled the trigger and got a Raspberry PI 5 yesterday and set it up.

Definitely not for the non-technical user. Thanks to @Canadian, I was able to add:

OnStar2MQTT Home Assistant Add-on (BigThunderSR) for Vehicle 1

However, it seems to only show data from my Blazer EV. Is there another add-on for the ability to push data to car. i.e.~ start/stop, set precondition temp, etc.?


Image
 
#31 ·
Go to settings/devices and services/devices/2024 Chevrolet Blazer EV/commands

Select the command(s) that you need and click-on enable. All the available commands are there but are disabled by default.

It would be nice if there were more commands available but I guess that would need a GM change.

I would particularly like to have a Trip Counter Reset command, 12v Battery Status, and a window close command or at the very least a window open sensor.

I would also love to see more info about charging so that I could build a charging curve graph.
I used to have all this charging info but it disappeared when Enel X decided to brick my charger intelligence.
 
#45 ·
Go to settings/devices and services/devices/2024 Chevrolet Blazer EV/commands
In Devices, I've got 2025 Chevrolet Equinox EV and I have 2025 Chevrolet Equinox EV Command Status Monitor Sensors. Is it the first one in which I want to click on each Controls entity desired to enabled them? They look the same, but since the latter is labeled "Status Monitor Sensors," I'm guessing that's not the right one to use to issue commands.
 
#33 ·
Hi Canadian,
thx for keeping us up to date. I have this working now. So when you say "takes care of itself",
do you mean that TOTP key will stay the same or will we have to update it periodically?
I found that using the old method I had to renew the code every few days. (This MFA stuff is all new to me.)
Cheers
 
#39 ·
Authentication no longer works. It stopped before 1.24 came out - the goal was to fix authentication.

GM is actively trying to block such access. Don't know why. This is cool. And they still get whatever value might exist in knowing when I start my car when selling to data providers 🤷‍♂️. And also, gives me a good reason to continue to subscribe to OnStar as someone who hates subscribing to anything.

They are working on it; but it could take a while. There is a Github issue already open and investigating.
 
#41 ·
I am using version 1.23.1 (in Canada), and it is retrieving the correct data. I moved to this version last month. I have not tried a remote start.
I guess I won't try the latest version.
Has nothing to do with the version.

The second your token expires, you lose access. Tokens can be somewhat long lived; but they are not forever.
 
#44 ·
So finally got OnstarMQTT to connect to the GM servers. The issue I'm encountering now is that MQTT is not seeing any device related to the Onstar Add On. I have Mosquito and the MQTT integration functioning properly with my Sol-Ark inverter for the past several months. I can't recall how I got it working. I think it actually discovered the inverter automatically via Solar Assistant MQTT. Can anyone provide a link to troubleshooting steps to get the new device recognized in the MQTT integration?