Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

unofficial-polestar-api

Unofficial async Python client and Home Assistant integration for Polestar gRPC APIs.

This project aims to bring you as much control as possible over your car. It uses the same APIs as the official mobile app and exposes most functionality.

Supported Cars

This library implements the C3 (Volvo Cars Cloud Connectivity) backend. If you use this library (or the HA integration) please report back what works and what doesn't, for your model. Contributions and testing from owners of other models are welcome and encouraged
Not all features are available on all models. Look at the features list for some comments on different models.

Usage

Home Assistant

Open your Home Assistant instance and open the repository

Unofficial Polestar is in the default community store, so you don't need to add a custom repository.

  • Home Assistant 2026.11 or newer: go to Settings → Marketplace, search for Unofficial Polestar and select Install.
  • Older versions: install HACS, then open HACS, search for Unofficial Polestar, click Download and restart Home Assistant.

Beta versions: in the Marketplace, open Unofficial Polestar → ⋮ → Include pre-releases. In HACS, use ⋮ → Redownload, turn on Show beta versions and pick the beta.

Then add the integration via Settings → Devices & Services → Add Integration → Polestar. Enter your Polestar ID email and password — the integration discovers the cars on your account and lets you pick your vehicle from a list and set the polling interval. Each config entry sets up one vehicle — to add more than one car, add the integration again and pick the other vehicle.

  • Secondary / guest accounts (no vehicles listed): choose "My vehicle is not listed" and enter the VIN (Vehicle Identification Number) manually.
  • Demo mode: tick Demo mode on the first step and enter any VIN to get a fake vehicle with static data (no API connection needed).

See the HA integration README for setup, entities, services, and dashboard cards.

As a library

python  
from polestar_api import PolestarApi  
  
async with PolestarApi(email="you@example.com", password="...") as api:  
 vehicles = await api.get_vehicles() car = vehicles[0]  
 battery = await car.get_battery() print(f"{battery.charge_level}% — {battery.range_km} km")  
 location = await car.get_location() print(f"Lat {location.coordinate.latitude}, Lon {location.coordinate.longitude}") 

Features

  • Battery — charge level, range, charging status, power (with real-time streaming)
  • Location — last known and last parked position (with real-time streaming)
  • Climate — start/stop climatization with target temperature, seat and steering wheel heating
  • Climate timers — view and manage scheduled parking climate timers
  • Locks — lock, unlock, trunk unlock
  • Honk & flash — flash lights or honk+flash
  • Windows — open/close all windows
  • Exterior — door, window, sunroof, hood, tailgate, and alarm status.
  • Charging — target SOC, amp limit, charge timers, start/stop immediate charging
  • Charge locations — full CRUD for saved locations with per-location amp limits, min SOC, timers, departure times, and smart charging
  • Health — service warnings, fluid levels, tyre pressures (kPa), all exterior light warnings, 12V battery
  • Availability — vehicle online status with unavailable reason
  • Weather — temperature at car location
  • OTA — software update info, scheduling, install now, cancel
  • Pre-cleaning — air quality status (PM2.5, AQI) and start/stop cabin pre-cleaning

For the full API reference with all methods, models, and enums, see the docs.

Feature availability by model

Not all features are available on all models. Unsupported commands are detected at runtime — the corresponding HA entities become unavailable automatically and re-enable if a future software update adds support.

Feature Polestar 2 Polestar 3 Polestar 4
Battery ✅ ✅ ✅
Location / parked location ✅ ✅ ✅
Climate (start/stop/temp/seats) ✅ ✅ ✅
Climate timers (list) ✅ ✅ ✅
Climate timer settings ✅ ✅ ❌
Lock / unlock ✅ ✅ ✅
Trunk unlock ✅ ✅ ✅
Honk & flash ✅ ✅ ✅
Windows open/close ✅ ✅ ❌
Exterior status ✅ ✅ ✅
Charging start/stop ✅ ✅ ✅
Target SOC ✅ ✅ ✅
Amp limit ✅ ✅ ❌
Charge timer ✅ ✅ ✅
Charge locations ✅ ✅ ✅
Health (tyre pressures) ❌ (no TPMS) ✅ ✅
Availability ✅ ✅ ✅
Weather ✅ ✅ ✅
OTA software info ✅ ✅ ✅
OTA schedule / install / cancel ✅ ✅ ❓
Pre-cleaning ✅ ✅ ✅
Dashboard (legacy PCCS) ✅ ❌ ❌
Connectivity (legacy PCCS) ✅ ❌ ❌

Note: Availability was tested on a Polestar 4 (software version as of Jul 2026). Polestar 2 and 3 columns are based on community reports and may vary by software version. Please report back what works and what doesn't for your model.

FAQ

The charging switch doesnt work? It uses the same StartOverride/StopOverrideChargeTimer calls as the official app, which only override an active charge schedule. If no schedule is active (the car is charging freely), there's nothing to override, so the switch has no effect. I have yet to find an API to directly start/stop a charge session. The only ways to stop a free charge is to set a charge schedule that excludes the current time, or to set the target SOC lower than the current SOC.

Disclaimer

This project is not affiliated with, endorsed by, or in any way officially connected to Polestar, Volvo Cars, or any of their subsidiaries.

This library does not contain any proprietary code, or copyrighted material from Polestar or Volvo. All code is written from scratch by observing the behaviour of the official app.

All API interactions are based on reverse-engineered, undocumented interfaces. These may change or break without notice. Use at your own risk. The authors are not responsible for any consequences of using this software, including but not limited to vehicle malfunctions, warranty implications, or account restrictions.

Metadata

Release files for unofficial-polestar-api 0.4.0b5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unofficial-polestar-api 0.4.0b5
File Size Uploaded Provenance Actions
unofficial_polestar_api-0.4.0b5.tar.gz 740.5 kB With provenance Details for unofficial_polestar_api-0.4.0b5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unofficial-polestar-api 0.4.0b5
File Interpreter ABI Platform Actions
unofficial_polestar_api-0.4.0b5-py3-none-any.whl Python 3 none any Details for unofficial_polestar_api-0.4.0b5-py3-none-any.whl

Total release size: 819.3 kB

Release files / unofficial_polestar_api-0.4.0b5.tar.gz

Download URL unofficial_polestar_api-0.4.0b5.tar.gz
Size 740.5 kB
Tags Source
SHA-256 checksum
How to use checksums
77f71ed126d1051b615bc8d63b59ac36fb5bae4c65a6483816dae47e55858024
BLAKE2b-256 checksum
How to use checksums
d86111f0da7886edf0648717c8f198277a94367f9475289cb502adb3e7fa0b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / unofficial_polestar_api-0.4.0b5-py3-none-any.whl

Download URL unofficial_polestar_api-0.4.0b5-py3-none-any.whl
Size 78.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95851e35d75ef4b37048249bbb83d3643cbc54cb0113b8c248fa559f89697722
BLAKE2b-256 checksum
How to use checksums
e521b48beba075aa7458fd63a49d24550997ad4df00b1c7b867d8d3e1f1f0087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for unofficial-polestar-api 0.4.0b5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unofficial_polestar_api-0.4.0b5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page