Beoremote Halo connecting and configuring Home Automation Systems.
Project description
Beoremote Halo Open API
The Beoremote Halo Open API is an open source async API that allows you to interact with a Beoremote Halo from a home automation system.
Using a WebSocket to communicate with the Beoremote Halo, it is possible to create a configuration of buttons to interact with your home automation to control your home applications.
Beoremote Halo supports buttons with icons or text for most general home automation applications.
You can find a list of the supported icons on our wiki pages.
For further details on the Open API list of commands please refer to the API description.
Installation
The Python package beoremote-halo
requires Python 3.9 or higher and contains a library for communicating with Beoremote Halo and a CLI tool for discovering Beoremote Halo on the network.
Install using pip:
pip3 install beoremote-halo
Basic Usage
In the following example a client instance connects to Beoremote Halo and listens for events. When a SystemEvent
is received the on_system_event
callback is executed and prints the Beoremote Halo's system state. Please refer to the API for details on each type of event.
from beoremote import Halo
from beoremote.events import SystemEvent
def on_system_event(client: Halo, event: SystemEvent):
print(event)
remote = Halo("192.168.1.57")
remote.set_on_system_event_callback(on_system_event)
remote.connect()
Example
Use the beoremote-halo
CLI tool to discover and then run a demo by connecting to your Beoremote Halo.
In the above demo the CLI is used to locate Beoremote Halo on the network.
beoremote-halo scan
Afterwards the CLI demo is run by passing the serial number of the discovered Beoremote Halo.
beoremote-halo demo --serial xxxxxxxx
The demo configures the Beoremote Halo and reacts to events received from Halo. The callbacks each handle a specific type of event.
on_system_event
is provided but unused in this example.
on_wheel_event
changes the indicator ring on the centered/controlled button.
on_button_event
changes the active/inactive state of a button, will start/pause/resume the timer if the "Oven Timer" button is pressed.
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 beoremote-halo-1.0.2.tar.gz
.
File metadata
- Download URL: beoremote-halo-1.0.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f40682be6216e48adffa87677f40f35f4a3e9979147d7f444b79471ae36d4b0 |
|
MD5 | f1ecbb6c753be73e4980f8a8e54f3537 |
|
BLAKE2b-256 | 101f31ab51345a0cc9640983e1facd6ca1e750b3ad3f082955808eb9ca2f1f4e |
File details
Details for the file beoremote_halo-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: beoremote_halo-1.0.2-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce4168f85c8daf6a246154c7547e4a653fa08127c620beab5997eebcff78f6d |
|
MD5 | fad9e2815f69efdf9bf4bcef7fde4c30 |
|
BLAKE2b-256 | 49f5a4be5c83ebc1b12d55aa7664d19e59a2098c1c05d0b8b7125be238ff0574 |