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
The project is configured via pyproject.toml. Install the project and dependencies using your package manager.
To install in development mode, apply the editable installation flag.
Execution
Initiate the server execution script. The system will securely request the network password via the command-line interface (CLI) before establishing the connection.
API Endpoints
1. Acquire device inventory
- URL:
/api/lights - Method:
GET - Description: Returns a list of all available devices and their current dimmer values.
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.
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.
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.1.0.tar.gz.
File metadata
- Download URL: casambi_web_controller-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfab262da059d319490a8b887f159a2bd904cd8c322bc554ca2e345431f605a6
|
|
| MD5 |
d2ad00b025d06b875cf6b2f17bd37a23
|
|
| BLAKE2b-256 |
9f5340d8a72ec6d1bedc76528d23cd8ccc4169fad0eb0eb9b1a8a0c080d54da5
|
Provenance
The following attestation bundles were made for casambi_web_controller-0.1.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.1.0.tar.gz -
Subject digest:
dfab262da059d319490a8b887f159a2bd904cd8c322bc554ca2e345431f605a6 - Sigstore transparency entry: 975703206
- Sigstore integration time:
-
Permalink:
dongnh/casambi_webcontrol@7a08bf9363e7d206e63f69f0e5e8b40a05173b24 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dongnh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7a08bf9363e7d206e63f69f0e5e8b40a05173b24 -
Trigger Event:
release
-
Statement type:
File details
Details for the file casambi_web_controller-0.1.0-py3-none-any.whl.
File metadata
- Download URL: casambi_web_controller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
271e317bf1fe9a4a5fcb2ae289d7b532bc80c3fcad9beb45d79207d15979d3d4
|
|
| MD5 |
fddaf7afd2eb417c849a77709afd3ea9
|
|
| BLAKE2b-256 |
76e07caf42fa94b535ab08675de0328dbe2c9646120ef50e69801176b18f3a92
|
Provenance
The following attestation bundles were made for casambi_web_controller-0.1.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.1.0-py3-none-any.whl -
Subject digest:
271e317bf1fe9a4a5fcb2ae289d7b532bc80c3fcad9beb45d79207d15979d3d4 - Sigstore transparency entry: 975703210
- Sigstore integration time:
-
Permalink:
dongnh/casambi_webcontrol@7a08bf9363e7d206e63f69f0e5e8b40a05173b24 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/dongnh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7a08bf9363e7d206e63f69f0e5e8b40a05173b24 -
Trigger Event:
release
-
Statement type: