Skip to main content

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 and dimmer (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

casambi_web_controller-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

casambi_web_controller-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for casambi_web_controller-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dfab262da059d319490a8b887f159a2bd904cd8c322bc554ca2e345431f605a6
MD5 d2ad00b025d06b875cf6b2f17bd37a23
BLAKE2b-256 9f5340d8a72ec6d1bedc76528d23cd8ccc4169fad0eb0eb9b1a8a0c080d54da5

See more details on using hashes here.

Provenance

The following attestation bundles were made for casambi_web_controller-0.1.0.tar.gz:

Publisher: python-publish.yml on dongnh/casambi_webcontrol

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

File details

Details for the file casambi_web_controller-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for casambi_web_controller-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 271e317bf1fe9a4a5fcb2ae289d7b532bc80c3fcad9beb45d79207d15979d3d4
MD5 fddaf7afd2eb417c849a77709afd3ea9
BLAKE2b-256 76e07caf42fa94b535ab08675de0328dbe2c9646120ef50e69801176b18f3a92

See more details on using hashes here.

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

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