CarConnectivity plugin for improving compatibiity with Home Assistant
Project description
CarConnectivity Plugin for MQTT compatibility with Home Assistant
CarConnectivity is a python API to connect to various car services. If you want to provide data to Home Assistant the CarConnectivity MQTT Plugin will enable the MQTT protocol. In order to improve the compatibility with Home Assistant, this plugin adds the Home Assistant Device Discovery for automatically provisioning devices in Home Assistant and adds further topics specifically for Home Assistant.
Install using PIP
If you want to use the CarConnectivity Plugin for Home Assistant, the easiest way is to obtain it from PyPI. Just install it using:
pip3 install carconnectivity-plugin-mqtt_homeassistant
after you installed CarConnectivity and the CarConnectivity MQTT Plugin.
Install in your CarConnectivity Docker Container
Add carconnectivity-plugin-mqtt_homeassistant
to the ADDITIONAL_INSTALLS
environment variable (multiple entries can be separated by a space).
...
carconnectivity-mqtt:
image: "tillsteinbach/carconnectivity-mqtt:latest"
environment:
- ADDITIONAL_INSTALLS=carconnectivity-plugin-mqtt_homeassistant
...
Configuration
In your carconnectivity.json configuration add a section for the mqtt_homeassistant plugin like this. A documentation of all possible config options can be found here.
{
"carConnectivity": {
"connectors": [
...
]
"plugins": [
{
"type": "mqtt", // Definition for the MQTT Connection
"config": {
"broker": "192.168.0.123", // Broker hostname or IP address
"username": "testuser", // Broker username to login
"password": "testuser" // Broker password to login
}
},
{
"type": "mqtt_homeassistant",
"config": {}
}
]
}
}
Afterwards you start CarConnectivity in your preferred way, e.g. using
carconnectivity-mqtt carconnectivity.json
Once the device is created in Home Assistant all Entities will display as "Not Available". The reason is that Home Assistant does not know the states yet. In order trigger a resend of all topics, restart CarConnectivity. This will make all entities available.
Updates
If you want to update, the easiest way is:
pip3 install carconnectivity-plugin-mqtt_homeassistant --upgrade
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file carconnectivity_plugin_mqtt_homeassistant-0.2.tar.gz
.
File metadata
- Download URL: carconnectivity_plugin_mqtt_homeassistant-0.2.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde2045b787400a6999be5d0dedb94f9330b1e42225467a3855e4b633d14ab14 |
|
MD5 | 7ce3ce6ab3553540b08b2529e5a27171 |
|
BLAKE2b-256 | f20442d6030b5098a34bf6b299f597c54d21f16a7385319ee033ff486cb4fc3d |
Provenance
The following attestation bundles were made for carconnectivity_plugin_mqtt_homeassistant-0.2.tar.gz
:
Publisher:
build_and_publish.yml
on tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
carconnectivity_plugin_mqtt_homeassistant-0.2.tar.gz
- Subject digest:
dde2045b787400a6999be5d0dedb94f9330b1e42225467a3855e4b633d14ab14
- Sigstore transparency entry: 185757412
- Sigstore integration time:
- Permalink:
tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant@73a6503cd2d2875ca9eaedb337267ad46d58eca4
- Branch / Tag:
refs/tags/v0.2
- Owner: https://github.com/tillsteinbach
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
build_and_publish.yml@73a6503cd2d2875ca9eaedb337267ad46d58eca4
- Trigger Event:
push
- Statement type:
File details
Details for the file carconnectivity_plugin_mqtt_homeassistant-0.2-py3-none-any.whl
.
File metadata
- Download URL: carconnectivity_plugin_mqtt_homeassistant-0.2-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1772fe84eb01002eaa7c47196659c2cfd674161d8eba32fc0cae6c0557e09af8 |
|
MD5 | 47e81d09f31639e72d94628858484f7a |
|
BLAKE2b-256 | 90ad174c87854dedaedaadc67ede1feacc3f4360ebf264c75a967d55c36cf9fa |
Provenance
The following attestation bundles were made for carconnectivity_plugin_mqtt_homeassistant-0.2-py3-none-any.whl
:
Publisher:
build_and_publish.yml
on tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
carconnectivity_plugin_mqtt_homeassistant-0.2-py3-none-any.whl
- Subject digest:
1772fe84eb01002eaa7c47196659c2cfd674161d8eba32fc0cae6c0557e09af8
- Sigstore transparency entry: 185757413
- Sigstore integration time:
- Permalink:
tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant@73a6503cd2d2875ca9eaedb337267ad46d58eca4
- Branch / Tag:
refs/tags/v0.2
- Owner: https://github.com/tillsteinbach
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
build_and_publish.yml@73a6503cd2d2875ca9eaedb337267ad46d58eca4
- Trigger Event:
push
- Statement type: