CarConnectivity connector for Audi services - integrates with Till Steinbach's CarConnectivity framework
Project description
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:
- Main Repository: CarConnectivity
- CLI Repository: CarConnectivity-CLI
- Documentation: See the CarConnectivity Wiki
Configuration
Quick Start with Template
-
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
-
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
- Clone the repository:
git clone https://github.com/acfischer42/CarConnectivity-connector-audi.git
cd CarConnectivity-connector-audi
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install build
- Build the package:
python -m build
- Install locally:
pip install dist/carconnectivity_connector_audi-*.whl
Requirements
- Python 3.9 or higher
- CarConnectivity framework >= 0.8
- Valid myAudi account with connected vehicle
Related Projects
This connector is part of the CarConnectivity ecosystem:
- CarConnectivity - The main framework by Till Steinbach
- CarConnectivity-CLI - Command-line interface
- WeConnect-python - Volkswagen connector
- VWConnect - Alternative VW solution
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file carconnectivity_connector_audi-0.2.2.tar.gz.
File metadata
- Download URL: carconnectivity_connector_audi-0.2.2.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fbf8d160487fe2cc429053ed4e0fba2d97e6984d64cbaf433d9709965e52519
|
|
| MD5 |
f8c2805abbf6e8f0d6e49c9337333b14
|
|
| BLAKE2b-256 |
ef302d0bc7a0318128a4bf3eba6b68b3a1a224dd1c29dc55e59b1fea45a3a4e2
|
Provenance
The following attestation bundles were made for carconnectivity_connector_audi-0.2.2.tar.gz:
Publisher:
publish.yml on acfischer42/CarConnectivity-connector-audi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
carconnectivity_connector_audi-0.2.2.tar.gz -
Subject digest:
1fbf8d160487fe2cc429053ed4e0fba2d97e6984d64cbaf433d9709965e52519 - Sigstore transparency entry: 819460982
- Sigstore integration time:
-
Permalink:
acfischer42/CarConnectivity-connector-audi@3d2d4c83a3ebe25dc0dc704e11f411d5faba24cc -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/acfischer42
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d2d4c83a3ebe25dc0dc704e11f411d5faba24cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file carconnectivity_connector_audi-0.2.2-py3-none-any.whl.
File metadata
- Download URL: carconnectivity_connector_audi-0.2.2-py3-none-any.whl
- Upload date:
- Size: 61.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d87afaf32856e0d812e1baed9870670e3b6ae20326f0b52ccc3ccdf4680d202c
|
|
| MD5 |
f8deef4611f03049ded800b8f7518740
|
|
| BLAKE2b-256 |
d12bfb6e18750ee69049861d1f28d3fd1568779c83a2abe360dddefc373d481a
|
Provenance
The following attestation bundles were made for carconnectivity_connector_audi-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on acfischer42/CarConnectivity-connector-audi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
carconnectivity_connector_audi-0.2.2-py3-none-any.whl -
Subject digest:
d87afaf32856e0d812e1baed9870670e3b6ae20326f0b52ccc3ccdf4680d202c - Sigstore transparency entry: 819461016
- Sigstore integration time:
-
Permalink:
acfischer42/CarConnectivity-connector-audi@3d2d4c83a3ebe25dc0dc704e11f411d5faba24cc -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/acfischer42
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3d2d4c83a3ebe25dc0dc704e11f411d5faba24cc -
Trigger Event:
push
-
Statement type: