Using BLE to control a Casambi-based home lighting system via a web interface.
Project description
Casambi Web Controller
Using BLE to control a Casambi-based home lighting system via a web interface.
Prerequisites
- Python 3.12 or higher.
Installation
python -m venv venv
source venv/bin/activate
pip install casambi-web-controller
Execution
casambi-srv
API Endpoints
1. Acquire device inventory
- URL:
/api/lights - Method:
GET - Description: Returns a list of all available devices and their current dimmer values.
- Example:
http://localhost:8000/api/lights
2. Verify device status
- URL:
/api/status - Method:
GET - Parameters:
name(string) for the specific device name. - Description: Retrieves the status of a specified luminaire.
- Example:
http://localhost:8000/api/status?name=Entry Hall
3. Configure brightness
- URL:
/api/set - Method:
GET - Parameters:
name(string) for the device name anddimmer(integer) for the brightness level from 0 to 255. - Description: Configures the brightness level for the specified device.
- Example:
http://localhost:8000/api/set?name=Entry Hall&dimmer=128
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
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 casambi_web_controller-0.2.0.tar.gz.
File metadata
- Download URL: casambi_web_controller-0.2.0.tar.gz
- Upload date:
- Size: 3.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 |
017240e1bf10eef637aa8d1ed77d47ee94ba995ed29ff4973f6d3e0e69c5e1f1
|
|
| MD5 |
7fd8c3b4b652c2cb7c78a0271aed33fd
|
|
| BLAKE2b-256 |
71db5fdbc7682f1d6a2ad877080955c011504d461ec072967c9feaf1f7983784
|
Provenance
The following attestation bundles were made for casambi_web_controller-0.2.0.tar.gz:
Publisher:
python-publish.yml on dongnh/casambi_webcontrol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
casambi_web_controller-0.2.0.tar.gz -
Subject digest:
017240e1bf10eef637aa8d1ed77d47ee94ba995ed29ff4973f6d3e0e69c5e1f1 - Sigstore transparency entry: 975719653
- Sigstore integration time:
-
Permalink:
dongnh/casambi_webcontrol@4ebbe6a60110f4fd7fff1983e9c28afc670ac9e8 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dongnh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4ebbe6a60110f4fd7fff1983e9c28afc670ac9e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file casambi_web_controller-0.2.0-py3-none-any.whl.
File metadata
- Download URL: casambi_web_controller-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 |
ccbf59c428db322bb7a90611595ed60878be1a9a91d1f5ab380c06d6aa26baef
|
|
| MD5 |
2ac181ea43537158db657c4c1d34d08a
|
|
| BLAKE2b-256 |
c8dbff69dcdd8cbb57e3748b1938ad25c0e9173f6563029ef610de56447c7d7f
|
Provenance
The following attestation bundles were made for casambi_web_controller-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on dongnh/casambi_webcontrol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
casambi_web_controller-0.2.0-py3-none-any.whl -
Subject digest:
ccbf59c428db322bb7a90611595ed60878be1a9a91d1f5ab380c06d6aa26baef - Sigstore transparency entry: 975719655
- Sigstore integration time:
-
Permalink:
dongnh/casambi_webcontrol@4ebbe6a60110f4fd7fff1983e9c28afc670ac9e8 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dongnh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4ebbe6a60110f4fd7fff1983e9c28afc670ac9e8 -
Trigger Event:
release
-
Statement type: