http://projects.lanik.org/KodiProject_YeeMee.htm
YeeMee addon
This addon controls Xiaomi Yeelight from Kodi. It is possible to set addon to turn on/off light(s) on video start, stop or pause. Also you can specify whether to turn it on/off immediately or smoothly and specify time in which to perform the transition (is smooth transition specified). You can also specify light color for all operation(s) individually as well as light intensity in percent.
If option is stop (video stopped), you can set to return to previous state (if it was on it will return to on if it was off it will return to off).
Advanced features allow you to specify time-frame i.e. turn lights on/off only between 10pm and 7am, and you can also disable light activation/deactivation for videos shorter than specified time.
You can set up to 4 YeeLights, and each can be set and controlled individually, i.e. different operation, color and intensity.
In order to install it, first install my REPO: Lanik Repo
Since this addon is BETA, it is available only in my TEST repo. Install the TEST REPO from my repo and then install YeeMee.
Then install add-on, and configure it:
First set up how many Yeelights you have (1-4). Then set IP address for each Yeelight. Finally, set actions and options (color, transition, effect, brightness) for play, pause and stop.
This should work on all platforms. Any comments welcome.