Controller library for limitlessled/easybulb/milight Wi-Fi LEDs
Project description
Controller for LimitlessLED RGBW lights (should be compatible with easybulb/milight as well).
Installation
pip install ledcontroller
Usage
import ledcontroller led = ledcontroller.LedController("192.168.1.6") led.on() led.set_color("red", 1) led.white(2) led.set_brightness(50, 2) led.disco(3) led.disco_faster(3) led.off(4)
Notes
There is automatic 100ms pause between each command. Almost every action requires sending more than one command, thus requiring several hundred milliseconds. You can change this with keyword argument “pause_between_commands”. However, decreasing the delay will cause some commands to fail.
As the gateway seems to be rather unreliable, all commands are sent multiple times (three by default). If you want to change this, use “LedController(ip, repeat_commands=n)” to create new lightcontroller object.
If for some reason you need to change gateway port, use keyword port= to change it.
Run testsuite with “python setup.py test”. Tests only run the code without checking whether proper commands were sent.
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
Hashes for ledcontroller-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b825a639c1078355d04b89386e2f5083132b5075ef63dec05e7d789f5eccf6d |
|
MD5 | 641e50dac496dac9525a6ea165fa4d67 |
|
BLAKE2b-256 | 6c0decf66cfacd402aa27106d2c0471e3702012dc90f053e8bb3e031bd88c21d |