Skip to main content

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
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

avionmqtt-2.0.4.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

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

avionmqtt-2.0.4-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file avionmqtt-2.0.4.tar.gz.

File metadata

  • Download URL: avionmqtt-2.0.4.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for avionmqtt-2.0.4.tar.gz
Algorithm Hash digest
SHA256 9a816b082ccb8731ca067dae450a1bfa83038d47a599dfc69aa8489406c7d82f
MD5 e18d164180d276e025b276d03af95894
BLAKE2b-256 d5e39b4f4bd47e75de83708ca8f579d8b40f9136ebe3b9dba40c097123396c94

See more details on using hashes here.

Provenance

The following attestation bundles were made for avionmqtt-2.0.4.tar.gz:

Publisher: workflow.yml on oyvindkinsey/avionmqtt

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

File details

Details for the file avionmqtt-2.0.4-py3-none-any.whl.

File metadata

  • Download URL: avionmqtt-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for avionmqtt-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 630c87f19f70f8e5e0a86ac254125057da2ecc5b381d69ed55d73571a8badafa
MD5 0342e8592553ff91799e0a75825dfe08
BLAKE2b-256 c3a444e967ff26e673d25869feead9dd1fe400618508a798e8b3f466ebcdfd81

See more details on using hashes here.

Provenance

The following attestation bundles were made for avionmqtt-2.0.4-py3-none-any.whl:

Publisher: workflow.yml on oyvindkinsey/avionmqtt

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