{"id":44519714,"url":"https://github.com/michaelwoods/onstar2mqtt","last_synced_at":"2026-02-13T17:34:46.250Z","repository":{"id":37640053,"uuid":"317258569","full_name":"michaelwoods/onstar2mqtt","owner":"michaelwoods","description":"OnStarJS wrapper for MQTT","archived":false,"fork":false,"pushed_at":"2024-06-27T15:56:21.000Z","size":1645,"stargazers_count":101,"open_issues_count":10,"forks_count":37,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-06-27T19:22:28.351Z","etag":null,"topics":["bolt","bolteuv","boltev","cadillac","chevrolet","gm","gmc","home-assistant","homeassistant","mqtt","onstar"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelwoods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-30T15:03:01.000Z","updated_at":"2024-06-27T15:56:24.000Z","dependencies_parsed_at":"2023-10-12T00:32:55.754Z","dependency_job_id":"ebb3452d-bb18-41f5-bbdb-7e36e94be34a","html_url":"https://github.com/michaelwoods/onstar2mqtt","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/michaelwoods/onstar2mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwoods%2Fonstar2mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwoods%2Fonstar2mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwoods%2Fonstar2mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwoods%2Fonstar2mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelwoods","download_url":"https://codeload.github.com/michaelwoods/onstar2mqtt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelwoods%2Fonstar2mqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29413443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bolt","bolteuv","boltev","cadillac","chevrolet","gm","gmc","home-assistant","homeassistant","mqtt","onstar"],"created_at":"2026-02-13T17:34:45.558Z","updated_at":"2026-02-13T17:34:46.238Z","avatar_url":"https://github.com/michaelwoods.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onstar2mqtt\n\n**NOTE**: This service is no longer functional as the OnStar API has moved to TOTP backed auth. Work is in progress on converting to typescript and using the newer onstarjs2 library that includes TOTP compatibility.\n\nA service that utilizes the [OnStarJS](https://github.com/samrum/OnStarJS) library to expose OnStar data to MQTT topics.\n\nThe functionality is mostly focused around EVs (specifically the Bolt EV), however PRs for other vehicle types are certainly welcome.\n\nThere is no affiliation with this project and GM, Chevrolet nor OnStar. In fact, it would be nice if they'd even respond to development requests so we wouldn't have to reverse engineer their API.\n\n## Running\nCollect the following information:\n1. [Generate](https://www.uuidgenerator.net/version4) a v4 uuid for the device ID\n1. OnStar login: username, password, PIN\n1. Your car's VIN. Easily found in the monthly OnStar diagnostic emails.\n1. MQTT server information: hostname, username, password\n    1. If using TLS, define `MQTT_PORT` and `MQTT_TLS=true`\n\nSupply these values to the ENV vars below. The default data refresh interval is 30 minutes and can be overridden with ONSTAR_REFRESH with values in milliseconds.\n### [Docker](https://hub.docker.com/r/michaelwoods/onstar2mqtt)\n\n```shell\ndocker run \\\n  --env ONSTAR_DEVICEID= \\\n  --env ONSTAR_VIN= \\\n  --env ONSTAR_USERNAME= \\\n  --env ONSTAR_PASSWORD= \\\n  --env ONSTAR_PIN= \\\n  --env MQTT_HOST= \\\n  --env MQTT_USERNAME \\\n  --env MQTT_PASSWORD \\\n  michaelwoods/onstar2mqtt:latest\n```\n### docker-compose\n```yaml\n  onstar2mqtt:\n    container_name: onstar2mqtt\n    image: michaelwoods/onstar2mqtt\n    restart: unless-stopped\n    env_file:\n      - /srv/containers/secrets/onstar2mqtt.env\n    environment:\n    - ONSTAR_DEVICEID=\n    - ONSTAR_VIN=\n    - MQTT_HOST=\n```\nonstar2mqtt.env:\n```shell\nONSTAR_USERNAME=\nONSTAR_PASSWORD=\nONSTAR_PIN=\nMQTT_USERNAME=\nMQTT_PASSWORD=\n```\n### Node.js\nIt's a typical node.js application, define the same environment values as described in the docker sections and run with:\n`npm run start`. Currently, this is only tested with Node.js 18.x.\n\n### Home Assistant configuration templates\nMQTT auto discovery is enabled. For further integrations and screenshots see [HA-MQTT.md](HA-MQTT.md).\n\n## Development\n### Running\n`npm run start`\n### Testing\n`npm run test`\n### Coverage\n`npm run coverage`\n### Releases\n`npm version [major|minor|patch] -m \"Version %s\" \u0026\u0026 git push --follow-tags`\n\nPublish the release on GitHub to trigger a release build (ie, update 'latest' docker tag).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwoods%2Fonstar2mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelwoods%2Fonstar2mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelwoods%2Fonstar2mqtt/lists"}