Bridge Avion Bluetooth mesh lights to MQTT/Home Assistant
Project description
avionmqtt
A python library to bridge between Avi-on based lights and Home Assistant using MQTT
support
This should support any devices that uses Avi-on's technology, including Halo Home and GE branded BLE lights (both discontinued, but both supported by Avi-on's cloud infra and mobile apps).
features
- creates lights for devices and groups in Home Assistant
- supports creating meta lights such as for 'all', usefull for automation of color temperature
- supports changing brightness and color temperature
- for:
- individidual devices
- groups
- the entire mesh at once
- color temperature can be set without turning on the light
- for:
- polls the whole network on startup to get the current state of each device
- updates Home Assistant whenever devices are updated externally
how to use
# if bluepy fails to compile, try installing libglib2.0-dev first (apt-get install libglib2.0-dev)
pip install avionmqtt
avionmqtt -s settings.yaml --log=INFO
service install script
See Running as a service.md for how to install this as a service using systemd.
settings.yaml
avion:
email: email@example.com
password: ********
mqtt:
host: mqtt_broker.local
username: avion
password: avion
devices:
import: true
# If set, include only these pids when importing devices
include:
- abcde...
- bcdef...
# If set, exclude these pids when importing devices
exclude:
- abcde...
- bcdef...
# If set, automatically adds all devices part of a group to the exclude list
exclude_in_group: true
groups:
import: true
include:
exclude:
# Controls if a single device, or one per light is created. Defaults to false.
single_device: true
# If you need to add additional overrides to dimmable or color_temp capabilities, then you can do so here.
# If new products are discovered to work with this library, create an issue on github so that it can be added in.
capabilities_overrides:
dimming:
- 123
- 234
color_temp:
- 123
acknowledgements
This project would not have been possible without the original work done in https://github.com/nkaminski/csrmesh and https://github.com/nayaverdier/halohome
License
This project is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later). See the LICENSE file for the full license text and details.
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
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 avionmqtt-2.0.9.tar.gz.
File metadata
- Download URL: avionmqtt-2.0.9.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c866eb558315b577b2b7855a2c2cdf11dd253a3ac218262149450bc2a1dffba4
|
|
| MD5 |
2650185f543562e04c5c4ec088b53183
|
|
| BLAKE2b-256 |
9fcc00ceed69509be82da98ef1bc251d81d47649d80d703939a4a6c7ffeaaaa6
|
Provenance
The following attestation bundles were made for avionmqtt-2.0.9.tar.gz:
Publisher:
workflow.yml on oyvindkinsey/avionmqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
avionmqtt-2.0.9.tar.gz -
Subject digest:
c866eb558315b577b2b7855a2c2cdf11dd253a3ac218262149450bc2a1dffba4 - Sigstore transparency entry: 937676655
- Sigstore integration time:
-
Permalink:
oyvindkinsey/avionmqtt@28b0bbf42e077a963dd942b5d87b04ece428ab86 -
Branch / Tag:
refs/tags/v2.0.9 - Owner: https://github.com/oyvindkinsey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@28b0bbf42e077a963dd942b5d87b04ece428ab86 -
Trigger Event:
push
-
Statement type:
File details
Details for the file avionmqtt-2.0.9-py3-none-any.whl.
File metadata
- Download URL: avionmqtt-2.0.9-py3-none-any.whl
- Upload date:
- Size: 21.2 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 |
7bf75d4e76da083e12a9abffa37e9f45163f28ae1bb3bda938d1836851181597
|
|
| MD5 |
daecade01ae9847d7a4f1243f28c9bc8
|
|
| BLAKE2b-256 |
57a82b2ca9c5daa39c82cf4437b14c7a904e0c7ad071ef62fb8e802411dd0248
|
Provenance
The following attestation bundles were made for avionmqtt-2.0.9-py3-none-any.whl:
Publisher:
workflow.yml on oyvindkinsey/avionmqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
avionmqtt-2.0.9-py3-none-any.whl -
Subject digest:
7bf75d4e76da083e12a9abffa37e9f45163f28ae1bb3bda938d1836851181597 - Sigstore transparency entry: 937676679
- Sigstore integration time:
-
Permalink:
oyvindkinsey/avionmqtt@28b0bbf42e077a963dd942b5d87b04ece428ab86 -
Branch / Tag:
refs/tags/v2.0.9 - Owner: https://github.com/oyvindkinsey
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@28b0bbf42e077a963dd942b5d87b04ece428ab86 -
Trigger Event:
push
-
Statement type: