A Python3 wrapper for interacting with LifeSmart Cololight
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycololight-2.1.0.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file pycololight-2.1.0.tar.gz
.
File metadata
- Download URL: pycololight-2.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.15.32-v8+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc63800cf0b48bc1f25d043ee013dacf4e64868ac774d199580a8b3e47ad24fa |
|
MD5 | ce6c0800cfb86c812ad443803dd0834e |
|
BLAKE2b-256 | 2ef694025b5e68d3d0faee9f723d4a673245b04eaeb713e8dda3f5cc38ef3abd |
File details
Details for the file pycololight-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycololight-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.15.32-v8+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16af691771c0f1869cc0136f22f05e9a4e9e6529cc054d302b3bf6de3e894697 |
|
MD5 | 3a105599c16fe86f0d531194cbd06219 |
|
BLAKE2b-256 | c91ca255522e52ebc6088adcfeac05bf8d2cb793f65abaae0766bddf17c29ad9 |