HyperHDR Ambient Lighting Python Package
Project description
hyperhdr-py
A Python library for controlling HyperHDR ambient lighting systems.
This library is a modified version of Dermot Duffy's excellent hyperion-py.
Features
- Full async support with
asyncio - Connect to HyperHDR JSON API
- Control colors, effects, components, and more
- Subscribe to real-time state updates
- Support for HyperHDR v19 through v22+
New in v0.1.0 (HyperHDR v20-v22 support)
- Average color calculation - Get the average color of current LED output
- Smoothing control - Dynamically adjust smoothing parameters including new v22 interpolators
- HDR tone mapping - Control HDR tone mapping mode including automatic detection (v21+)
- Service discovery - Discover HyperHDR services on the network
- Current LED colors - Get the current colors being sent to LEDs
- Performance benchmarking - Run performance benchmarks
- Config management - Save/load configuration database
Installation
pip install hyperhdr-py-sickkick
Quick Start
import asyncio
from hyperhdr import client, const
async def main():
async with client.HyperHDRClient("hyperhdr.local") as hc:
if hc:
# Get brightness
adjustment = hc.adjustment
if adjustment:
print(f"Brightness: {adjustment[0][const.KEY_BRIGHTNESS]}%")
# Set a color
await hc.async_set_color(color=[255, 0, 0], priority=50)
# Set an effect
await hc.async_set_effect(effect={"name": "Rainbow swirl"}, priority=50)
asyncio.run(main())
Thank you dermotduffy!
This library would not exist without the excellent work on hyperion-py.
Feel free to open an issue if you run into any problems!
Project details
Release history Release notifications | RSS feed
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 hyperhdr_py_sickkick-0.1.0.tar.gz.
File metadata
- Download URL: hyperhdr_py_sickkick-0.1.0.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf2c57b6c0e4f5b455559b6514a97480b66d8e08d9190c75301783a7ce822bd
|
|
| MD5 |
21b8cf9ebca291200a93626da81508b9
|
|
| BLAKE2b-256 |
cfd42394c850ff7bf954bc64a64875993adc29397d1afa7779899c6b9c839cf6
|
File details
Details for the file hyperhdr_py_sickkick-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hyperhdr_py_sickkick-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25fc125e92944d287a246302e32be6365933de7cedbfd9ee54a9f8a20932bd0c
|
|
| MD5 |
6a67701995756b45c86c785575cb159a
|
|
| BLAKE2b-256 |
dc6366efd8eb6c493f658ad86479038a5a68e8df2e7ab3e9cdd3e27509f446df
|