2015-03-27, 16:20
Hi All,
The last few weeks I've been getting very few hours of sleep wanting to give people something decent to play with. I don't know python very well but I have made an attempt to create this plugin for you all so you can use your Lifx bulbs with XBMC / Kodi.
I have tested this on my own system and it seems to work fine, however once this gets into the wild (i.e. your hands) it may not be as friendly. I have placed it on github so anyone can run with this and create something nice and new and polished.
There is a config file where you will be required to enter your details such as an API key which you can get from https://cloud.lifx.com . Having said that I'm not sure how open it is for people to get an API key but you will need to go to "settings" up the top of the page and request a key. Once you have a key you will need to open up the lifx.cfg file inside the ZIP folder and place your key after the apiKey =
You will also need to put in the group of lights or the bulb you wish to have Kodi turn off. This is either for example group:Living Room (which is in there) for the group called Living Room or label:Center which will manipulate a bulb called Center only. All these are names you have created in your phone app which are connected to your lifx cloud account.
Features:
This comes with no guarantee that it will work. It works as far as I've tested it. If I can I will try and help.
I am hoping there is someone out there who is cleverer than I am and is able to write some code which will allow people to edit the settings directly from within the Kodi interface and write them to the config file. Every time a video starts the config file is re-read to capture any changes you desire.
And here it is: NateKodiLifx
The last few weeks I've been getting very few hours of sleep wanting to give people something decent to play with. I don't know python very well but I have made an attempt to create this plugin for you all so you can use your Lifx bulbs with XBMC / Kodi.
I have tested this on my own system and it seems to work fine, however once this gets into the wild (i.e. your hands) it may not be as friendly. I have placed it on github so anyone can run with this and create something nice and new and polished.
There is a config file where you will be required to enter your details such as an API key which you can get from https://cloud.lifx.com . Having said that I'm not sure how open it is for people to get an API key but you will need to go to "settings" up the top of the page and request a key. Once you have a key you will need to open up the lifx.cfg file inside the ZIP folder and place your key after the apiKey =
You will also need to put in the group of lights or the bulb you wish to have Kodi turn off. This is either for example group:Living Room (which is in there) for the group called Living Room or label:Center which will manipulate a bulb called Center only. All these are names you have created in your phone app which are connected to your lifx cloud account.
Features:
- When a Movie is Playing it will fade the lights to off
- When a TV show is playing it will fade the lights to a dark blue at 5% brightness which is just enough light to walk around in without being obtrusive
- When you pause a video the lights will return to their original state before you started the video.
- When a video stops or comes to the end, the lights will return to their original state before you started the video.
- When lights are returned to their original state they are called how they were set.. not as a group, in case you had a theme going, they will return to those exact colours
- User definable fade in and out times within the lifx.cfg folder
This comes with no guarantee that it will work. It works as far as I've tested it. If I can I will try and help.
I am hoping there is someone out there who is cleverer than I am and is able to write some code which will allow people to edit the settings directly from within the Kodi interface and write them to the config file. Every time a video starts the config file is re-read to capture any changes you desire.
And here it is: NateKodiLifx