Skip to content

Gladys module to control your Yeelight wifi bulbs

Notifications You must be signed in to change notification settings

Coxyca/gladys-yeelight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gladys-yeelight

Gladys module to control your Yeelight wifi bulbs. Requires Gladys > 3.2

Installation

  1. Install the module through Gladys modules pannel and reboot Gladys when it's done.
  2. Go to the modules pannel and click 'Config'. This process takes around 8 secondes to complete.
  3. Your bulbs should now be listed in the devices pannel. If they are not, feel free to repeat step 2.

DO NOT FORGET TO ENABLE DEVELOPER MODE IN YOUR BULBS SETTINGS FROM THE YEELIGHT PHONE APP.

Usage

After installation is done, you can control power, brightness, hue and saturation for each bulb in the devices pannel. If you need more complex things to happen, you can also call the 'send' function from scripts:

gladys.modules.yeelight.send({id: device_id, method: 'method_name', params: []});

Methods names and their corresponding parameters can be found on the Yeelight API spec document: http://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf

There's one exception though: the 'set_rgb' function requires an array [R, G, B] as first parameter instead of an integer.

Some examples:

gladys.modules.yeelight.send({id: 3, method: 'toggle'});
gladys.modules.yeelight.send({id: 3, method: 'set_rgb', params: [[32, 0, 255], 'smooth', 1000]});

gladys.modules.yeelight.send({id: 7, method: 'set_power', params: ['on']});
gladys.modules.yeelight.send({id: 7, method: 'set_hsv', params: ['', 47]}); // Keep the current hue and set saturation to 47

About

Gladys module to control your Yeelight wifi bulbs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published