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

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

casambi_web_controller-0.2.0.tar.gz (3.3 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.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for casambi_web_controller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 017240e1bf10eef637aa8d1ed77d47ee94ba995ed29ff4973f6d3e0e69c5e1f1
MD5 7fd8c3b4b652c2cb7c78a0271aed33fd
BLAKE2b-256 71db5fdbc7682f1d6a2ad877080955c011504d461ec072967c9feaf1f7983784

See more details on using hashes here.

Provenance

The following attestation bundles were made for casambi_web_controller-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for casambi_web_controller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccbf59c428db322bb7a90611595ed60878be1a9a91d1f5ab380c06d6aa26baef
MD5 2ac181ea43537158db657c4c1d34d08a
BLAKE2b-256 c8dbff69dcdd8cbb57e3748b1938ad25c0e9173f6563029ef610de56447c7d7f

See more details on using hashes here.

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

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