A Python3 wrapper for interacting with LifeSmart Cololight, forked from BazaJayGee66 with some tweaks
Project description
pycololight
A Python3 wrapper for interacting with LifeSmart Cololight.
Supports the following cololight devices:
- hexagon
- strip
Usage
from pycololight import PyCololight
# Setup hexagon device
light = PyCololight(device="hexagon", host="1.1.1.1")
# Setup strip device, and include dynamic effects
light = PyCololight(device="strip", host="1.1.1.1", dynamic_effects=True)
# Turn on at 60% brightness
light.on = 60
# Set brightness to 70%
light.brightness = 70
# Set light colour
light.colour = (255, 127, 255)
# Set effect
light.effect = "Sunrise"
# Create custom effect
light.add_custom_effect(
name="custom effect",
colour_scheme="Shadow",
colour="Red, Yellow",
cycle_speed=11,
mode=1
)
# Turn off
light.on = 0
Mapping of modes for custom effects can be found here
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
pycololighto-2.1.0.tar.gz
(6.5 kB
view details)
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 pycololighto-2.1.0.tar.gz.
File metadata
- Download URL: pycololighto-2.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7979980432da6e2b8df398d0ac8b4fa4a23c1c7cf5d9007ba7f86a16474eb11b
|
|
| MD5 |
d2e19586341e5eefc6eb17904ab0f309
|
|
| BLAKE2b-256 |
21e2288d52309ddb30c6c90a1a6c534184b96cc91fb01fa4b1a43e231f28107a
|
File details
Details for the file pycololighto-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pycololighto-2.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb7c0f27aeabcfe0f2ac2ed2e07d2ae9565d174f8b8dca82cb5de8fd0d03a114
|
|
| MD5 |
893b3925154e5f6f0e2f108486864d9c
|
|
| BLAKE2b-256 |
bf44978dff117ff7831c7c079ba578f17435d3deb8c04003a367a4b53376e66d
|