A Python3 wrapper for interacting with LifeSmart Cololight, forked from BazaJayGee66 with some tweaks
Project description
pycololighto
A Python3 wrapper for interacting with LifeSmart Cololight, forked from BazaJayGee66 with some tweaks.
Supports the following cololight devices:
- hexagon
- strip
Usage
from pycololighto 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.1.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.1.tar.gz.
File metadata
- Download URL: pycololighto-2.1.1.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 |
7970e26697808bfdcb74258fb3f046019ea3d1c3695794fda4c3b89334a917de
|
|
| MD5 |
659531634876ece507106afdceab0d68
|
|
| BLAKE2b-256 |
657b3a39d9c968e3e9c96cc12b23e2c15b2c413ade90066fd183996291229fb7
|
File details
Details for the file pycololighto-2.1.1-py3-none-any.whl.
File metadata
- Download URL: pycololighto-2.1.1-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 |
72994ac0092141cea586e0db85f09a73320cfe425f30680b9523a9012a8c0a2a
|
|
| MD5 |
c93b92fc8341b069c5071dd155f19239
|
|
| BLAKE2b-256 |
dafd395ce912a901b8a362f9c59fc6f590e68cc25b77d773baf5526bdbb0f35a
|