[Feature Request] Lifx or other smart light integration

The original post is here (https://plus.google.com/+OliverHamilton/posts/QwY9WSzB3RG) but I'll copy it below and expand a little.

 

+Plex​ feature request: +LIFX​ integration.

Use case:
I link Lifx lights to a Chromecast and set default color and brightness levels for playback states.

Case1:
- I select the Chromecast in the lounge to cast to
- I have the overhead and behind TV bulbs linked to the lounge Chromecast via the Plex app
- Plex playing state = lights fade down to a low level (say 10%)
- Plex paused state = lights fade up to a brighter level (say 30%)

- Plex stopped state = lights fade up to a brighter level (say 60%)

Case2:
- I select Chromecast in the bedroom connected to a cheap low brightness projector
- I have just the 1 bulb in the bedroom linked to this Chromecast
- On connecting to bedroom Chromecast = Lifx fades down to low (20%)

- Plex playing state = lights fade down to zero (0%)

 

A reply from someone who sounds like they're involved with Lifx...

Nice idea +Oliver Hamilton! The good folk at +Plex should have no trouble doing this with our lovely new HTTP API (oAuth available on request) at:http://developer.lifx.com.

 

 

I am very interested in something like this.

Bump!

+Plus the ability for the Lifx bulbs to sync with the primary onscreen color would be amazing!!! They can do this already on many apps.

+Imagine the lights changing subtly to the beat of music playing and the lights color theme would be based on the colors in the album art.

I already have this exact functionality set up with the PlexPlus smartapp on SmartThings, but it would be neat to have the LIFX bulbs get set straight from Plex.

I ended up making a program that runs on my server.
I linked LiFx bulbs to Chromecast ID’s and set it up pretty much exactly as my original post. It’s a wicked feature. I need to make it more generic and usable when I’ve got some spare time.

@oliver9523 could you make a post where you explain ruffly how you did it ? or post your code somewhere we can have a look at ?

This kind of automation can be easily done with Home Assistant. Take a look at https://home-assistant.io

Oh my god this looks amazing ! I didn’t know that existed thanks @strangler for this link ! Have you tried it yourself ?