Skip to main content

CarConnectivity Connector for Audi

A Python connector for Audi vehicles that integrates with the CarConnectivity framework by Till Steinbach, allowing you to interact with your Audi vehicle's data and controls through a standardized API.

About CarConnectivity

This connector is built for the CarConnectivity framework, which provides a unified interface for connecting to various car manufacturers' APIs. CarConnectivity is developed and maintained by Till Steinbach.

Features

  • 🚗 Vehicle Status: Access battery/fuel levels, range, odometer readings
  • 🔐 Remote Control: Lock/unlock doors, start/stop charging and climatization
  • 📍 Location Services: Get vehicle position and parking information
  • 🔧 Maintenance: Check inspection and service due dates
  • 🌡️ Climate Control: Remote climate control and window heating
  • 💡 Vehicle Lights: Monitor and control vehicle lighting
  • ⚡ Charging: Monitor and control electric vehicle charging

Installation

Install the connector using pip:

pip install carconnectivity-connector-audi

You'll also need the CarConnectivity CLI:

pip install carconnectivity-cli

For more information about the CarConnectivity framework, visit:

Configuration

Quick Start with Template

  1. Copy the provided template and customize it with your credentials:

    cp audi_config_template.json audi_config.json
    # Edit audi_config.json with your actual Audi credentials
    
  2. Or create a configuration file manually (e.g., audi_config.json) with your Audi credentials:

{
    "carConnectivity": {
        "connectors": [
            {
                "type": "audi",
                "config": {
                    "username": "your.email@example.com",
                    "password": "your_password"
                }
            }
        ]
    }
}

Usage

List all available resources

carconnectivity-cli audi_config.json list

Get vehicle state

carconnectivity-cli audi_config.json get /garage/YOUR_VIN/state

Get battery/fuel level

carconnectivity-cli audi_config.json get /garage/YOUR_VIN/drives/primary/level

Get vehicle position

carconnectivity-cli audi_config.json get /garage/YOUR_VIN/position/latitude
carconnectivity-cli audi_config.json get /garage/YOUR_VIN/position/longitude

Control charging (for electric vehicles)

carconnectivity-cli audi_config.json set /garage/YOUR_VIN/charging/commands/start-stop start

Control climatization

carconnectivity-cli audi_config.json set /garage/YOUR_VIN/climatization/commands/start-stop start

Lock/unlock doors

carconnectivity-cli audi_config.json set /garage/YOUR_VIN/doors/commands/lock-unlock lock

Running with Docker

You can run the Audi connector using Docker with the CarConnectivity-MQTT image made by Till. This allows you to publish vehicle data to an MQTT broker for integration with home automation systems.

Docker Compose Setup

Create a docker-compose.yml file:

services:
  carconnectivity-mqtt:
    image: "tillsteinbach/carconnectivity-mqtt:latest"
    environment:
      - ADDITIONAL_INSTALLS=carconnectivity-connector-audi
      - TZ=Europe/Berlin  # Set your timezone
    volumes:
      - ./carconnectivity.json:/carconnectivity.json
    restart: unless-stopped

Configuration for Docker

Create a carconnectivity.json configuration file:

{
    "carConnectivity": {
        "log_level": "info",
        "connectors": [
            {
                "type": "audi",
                "config": {
                    "interval": 600,
                    "username": "your.email@example.com",
                    "password": "your_password"
                }
            }
        ],
        "plugins": [
            {
                "type": "mqtt",
                "config": {
                    "broker": "192.168.1.100",
                    "port": 1883,
                    "username": "mqtt_user",
                    "password": "mqtt_password"
                }
            }
        ]
    }
}

Running the Container

docker-compose up -d

For detailed Docker configuration options, refer to the CarConnectivity-MQTT Docker documentation.

Development

Building from source

  1. Clone the repository:
git clone https://github.com/acfischer42/CarConnectivity-connector-audi.git
cd CarConnectivity-connector-audi
  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
pip install build
  1. Build the package:
python -m build
  1. Install locally:
pip install dist/carconnectivity_connector_audi-*.whl

Requirements

This connector is part of the CarConnectivity ecosystem:

Supported Vehicles

This connector works with Audi vehicles that support myAudi connected services, including:

  • Electric vehicles (e-tron models)
  • Hybrid vehicles
  • Modern ICE vehicles with connectivity features

Security

  • Credentials are securely handled through OAuth2 authentication
  • Tokens are cached locally and refreshed automatically
  • No credentials are stored in plain text after initial setup

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Credits

  • Till Steinbach for creating the CarConnectivity framework
  • Based on authentication patterns from the broader CarConnectivity ecosystem

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This is an unofficial connector not affiliated with Audi AG or Till Steinbach's original CarConnectivity project. Use at your own risk and ensure you comply with your vehicle's terms of service.

Metadata

Release files for carconnectivity-connector-audi 0.3.2

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

Source distribution (sdist)

Source distribution for carconnectivity-connector-audi 0.3.2
File Size Uploaded Provenance Actions
carconnectivity_connector_audi-0.3.2.tar.gz 81.4 kB With provenance Details for carconnectivity_connector_audi-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for carconnectivity-connector-audi 0.3.2
File Interpreter ABI Platform Actions
carconnectivity_connector_audi-0.3.2-py3-none-any.whl Python 3 none any Details for carconnectivity_connector_audi-0.3.2-py3-none-any.whl

Total release size: 146.1 kB

Release files / carconnectivity_connector_audi-0.3.2.tar.gz

Download URL carconnectivity_connector_audi-0.3.2.tar.gz
Size 81.4 kB
Tags Source
SHA-256 checksum
How to use checksums
098ab153f84325dbc715109f9ee9e7f90b0edb53682e54c382df289467a16098
BLAKE2b-256 checksum
How to use checksums
597434d02e7df59266a46e3f8023eec3d7e8982718ebb5b2c76ea77bc693077f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 25, 2026.

Transparency log

Release files / carconnectivity_connector_audi-0.3.2-py3-none-any.whl

Download URL carconnectivity_connector_audi-0.3.2-py3-none-any.whl
Size 64.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eab844229301d9a7ed3ec19f2798e936a37a73a0b05932b273a935e5b859348
BLAKE2b-256 checksum
How to use checksums
bfc4bf9f7f6e11c8f78f3d4038ad5ba82e01ea3a8967b23c63094ec0feabd7de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 25, 2026.

Transparency log

Security for carconnectivity-connector-audi 0.3.2

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 carconnectivity_connector_audi-0.3.2.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 Jun 25, 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