-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c65617
commit 6a70de3
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
# avionmqtt | ||
|
||
A python library to control 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 changing brightness and color temperature | ||
- 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 | ||
|
||
```bash | ||
pip install avionmqtt | ||
python -m avionmqtt -s settings.yaml | ||
``` | ||
|
||
> [!WARNING] | ||
> This script currently does not have any graceful handling of SIGINT and so will leave the BLE connection dangling. | ||
> Use the `sudo bluetoothctl power off && sudo bluetoothctl power on` or similar to reset the adapter. | ||
# settings.yaml | ||
|
||
```yaml | ||
avion: | ||
email: [email protected] | ||
password: ******** | ||
|
||
mqtt: | ||
host: mqtt_broker.local | ||
username: avion | ||
password: avion | ||
|
||
devices: | ||
import: true | ||
|
||
groups: | ||
import: true | ||
|
||
``` | ||
|
||
|
||
# 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 |