Skip to main content

Add your description here

Project description

Hue Control

Control Phillips Hue lights from your computer. No phone or Hue Bridge required!

Setup

Install uv and run the script with uvx huec.

Factory reset the lamp, then pair it using Bluetooth.

  • Linux: pair with bluetoothctl. Then use huec
  • macOS: just run the power on command once and you get a prompt to pair with the light. Pair and then after that the app can connect to your light.

Then use the cli tool to control hue light.

Make sure to pass the name of your light when controlling it.

Turn on your light with:

uv run main.py --device "Hue lightstrip" power on

Usage

uvx huec --help
usage: main.py [-h] [--debug] [-d DEVICE] [--timeout TIMEOUT]
               {interactive,power,color,alarms,dev} ...

Control Hue lightstrip over BLE.

positional arguments:
  {interactive,power,color,alarms,dev}
    interactive         Start HTTP server and keep BLE connection open.
    power               Turn the light on or off.
    color               Control color and brightness
    alarms              Control alarms(routines) to turn the light on/off
                        automatically.
    dev                 Developer utilities.

options:
  -h, --help            show this help message and exit
  --debug               Enable debug logging for BLE requests, responses, and
                        validation steps.
  -d, --device DEVICE   BLE device name. Default is Hue lightstrip plus
  --timeout TIMEOUT     BLE scan timeout.

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

huec-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

huec-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file huec-0.1.0.tar.gz.

File metadata

  • Download URL: huec-0.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for huec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd0387cec87721edf9be7f830ef664ac3f65eeea42df3fc2f76a5cdcb68742e0
MD5 9b2a396714589f7a83f90b8748b8805a
BLAKE2b-256 782ef9278b527be949fbf1c8769c66cac89e023ea9aa73fddc4f1955260ac78f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: huec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for huec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50dea03cede81d4f1ccdcfdeb99312f26e69b3bdd70b28732f8b6f0b068bafaf
MD5 67100b598fdd2bf2e918ec7a4c01748d
BLAKE2b-256 04c2fc9c5a27a4b1e4db01f8106a1483a236c03921dc6ac6328855330e753e5d

See more details on using hashes here.

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