Plugin: Ledenet/Ufo led controller

Python and python framework

Moderator: leecollings

Post Reply
elgringo
Posts: 96
Joined: Thursday 18 May 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Left
Contact:

Plugin: Ledenet/Ufo led controller

Post by elgringo »

I made a controller for the Ledenet/Ufo led controller. Controller is able to set saturation of a color, which is not possible with a (for example) MiLight Controller.

After installing the plugin you get a few switches: (beacuse the colorpicker won't work within python)
Capture.PNG
Capture.PNG (69.14 KiB) Viewed 487 times
One for each color (red/green/blue/(warm)white), A global on/off switch and a auto option. This will turn on/off the light and changes color at a random interval. Made this beacuse I am lazy :)

Settings:
Capture2.PNG
Capture2.PNG (44.85 KiB) Viewed 487 times
For connection and for the automatic light option.

The automatic light option switches on based on the current sunset times. I am not able to retrieve them directly from Domoticz so I used a JSON call. To make this work you must update the domoticz username/password in the plugin.py

Source (with images) can be found here: https://github.com/ericstaal/domoticz/t ... in/ledenet
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest