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.0.0.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file pycololight-2.0.0.tar.gz
.
File metadata
- Download URL: pycololight-2.0.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 | a300616d7c1c2885afbcbc3ebea8f5433fcdc934a3cbe608d3db67e732c8d1db |
|
MD5 | ff9bfcfe464a110689feaebf0f26f889 |
|
BLAKE2b-256 | 607da018baa4eb55f66431bfe1d32e3d3b2d8ec5141b220fdab5be9f3d8ce6d5 |
File details
Details for the file pycololight-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: pycololight-2.0.0-py3-none-any.whl
- Upload date:
- Size: 7.9 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 | 3481ef86f8db10ec76b25947de6fb1da4352af8a7714274b04fbbda4ef5d56ab |
|
MD5 | ee15abcf6c843392b9e263a8bcb8cf04 |
|
BLAKE2b-256 | 206e7b9b5b08e21326be2b565f5f34ed922ec977a0ea85b68a2bf417fe9d81d5 |