Skip to main content

CarConnectivity plugin for improving compatibiity with Home Assistant

Project description

CarConnectivity Plugin for MQTT compatibility with Home Assistant

GitHub sourcecode GitHub release (latest by date) GitHub GitHub issues PyPI - Downloads PyPI - Python Version Donate at PayPal Sponsor at Github

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 Pre-packaged Addon

There is a packaged addon available here: carconnectivity-addon

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file carconnectivity_plugin_mqtt_homeassistant-0.4.1.tar.gz.

File metadata

File hashes

Hashes for carconnectivity_plugin_mqtt_homeassistant-0.4.1.tar.gz
Algorithm Hash digest
SHA256 8f70ed91d73753cbae1093bc2ada05fcb534c3ddfbc6984cbe3dd38e2a14449e
MD5 b42d6b6e95e6e0a486f141e734a1a065
BLAKE2b-256 309b5587a76fe99a372a9d4cb247616558b3fd60cc19c4f210ed14744279ccee

See more details on using hashes here.

Provenance

The following attestation bundles were made for carconnectivity_plugin_mqtt_homeassistant-0.4.1.tar.gz:

Publisher: build_and_publish.yml on tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file carconnectivity_plugin_mqtt_homeassistant-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for carconnectivity_plugin_mqtt_homeassistant-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e53064fa85195b007ea37c9f650d9a78e0ceba1989529560975f48c6cd1741ad
MD5 3220b67b8df2fbda903a56dce9a2bfb5
BLAKE2b-256 0b05ef2a0e8a017c06ef227060deeee304125706664ea02b137b87528b22e84f

See more details on using hashes here.

Provenance

The following attestation bundles were made for carconnectivity_plugin_mqtt_homeassistant-0.4.1-py3-none-any.whl:

Publisher: build_and_publish.yml on tillsteinbach/CarConnectivity-plugin-mqtt_homeassistant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page