[Release] Lifx Ambilight Addon for Kodi

  Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
harct Offline
Junior Member
Posts: 7
Joined: Sep 2016
Reputation: 2
Rainbow  [Release] Lifx Ambilight Addon for Kodi
Post: #1
Here is something I have built - Lifx Ambilight Addon for Kodi

* In Theater mode the add-on dims the Lifx lights as soon as a movie starts playing, and turns the lights back to original settings once the movie is done.
* Ambilight mode turns your Lifx lights in a room-sized Ambilight.

>Ambilight creates light effects around the television that correspond to the video content. Philips claims that a "more immersive viewing experience" can result. Ambilight is a lighting system that actively adjusts both brightness and color based upon picture content. Integrated into the television cabinet, Ambilight technology is aimed to enable the viewer to see more picture detail, contrast and color while eliminating on-screen reflections.

>Ambilight technology works by projecting light from the rear of the TV cabinet in a very wide range of colors, shades and intensities. Viewers can choose to have Ambilight follow the color and brightness of the programme content – automatically changing with the colors on the screen

# Features
## Fully customizable
1. Select All lights or a Group of lights.
2. Override brightness/hue/saturation for different states in Ambilight mode - playback started/resumed and paused.
3. Option to forcefully turn on or ignore lights which are powered off (not switched off)
4. Option to flash lights once on discovery
5. Option to disable the Theater/Ambilight mode for short videos
- Option to customize what is considered a *short* video
6. Experimental: Option to undim lights when credits start rolling. (Uses ChapterDB.org)
- Option to delay the credits start time.
- *Does not always work, may ruin your movie-watching experience*
7. Restore the lights to original states (color and power) when movie stops.

## 2 Modes for your Lifx powered media center room
1. Theatre Mode
- Dim or Turn off the lights when Movie starts playing
- Undim or Turn on the lights when you pause the movie
- Return the lights to original settings when Movie ends.
- Option to configure Fading time to be proportional to the current brightness. (e.g. take 7 seconds to change brightness from 100% to 30%, while taking 5 seconds to change from 50% to 0%)
2. Ambilight Mode
- Option to Dim the lights when Movie starts playing
- Option to change minimum and maximum brightness

# Demo
## Kodi + Lifx + Ambilight + Movie (LOTR) Test
http://www.youtube.com/watch?v=LZui0Ui4hTQ
find quote
DarrenHill Offline
Team-Kodi Minion
Posts: 5,507
Joined: Oct 2014
Reputation: 125
Location: UK, except when I'm not.
Post: #2
Just this thread would have been enough. There was no need to spam every vaguely related thread with the same post.

It is very poor etiquette to splatter post your add-on in other add-ons threads. Those posts have been removed.

| Banned add-ons (wiki) | Forum rules (wiki) | First time user (wiki) | FAQs (wiki) | Troubleshooting (wiki) | Add-ons (wiki) | Free content (wiki) | Debug Log (wiki) |
(This post was last modified: 2016-09-01 21:26 by DarrenHill.)
find quote
harct Offline
Junior Member
Posts: 7
Joined: Sep 2016
Reputation: 2
Post: #3
Ok, I understand. Thanks for pointing it out.
find quote
Ruckus Offline
Member
Posts: 63
Joined: Oct 2012
Reputation: 1
Location: Costa Rica
Post: #4
does this use the lifx api?
find quote
harct Offline
Junior Member
Posts: 7
Joined: Sep 2016
Reputation: 2
Post: #5
It uses Lifx LAN protocol
find quote
Ruckus Offline
Member
Posts: 63
Joined: Oct 2012
Reputation: 1
Location: Costa Rica
Post: #6
had a quick play with it last night, works really well and its really well laid out.

i like the options you have in there, but, (there's always a but right? Wink )

I have two white lamps and one color lamp in my living room set up, would it be possible that i can have a set up that the two whites would dim and then use the color lamp to ambilight?
find quote
harct Offline
Junior Member
Posts: 7
Joined: Sep 2016
Reputation: 2
Post: #7
Glad you liked it!

About your question, yes absolutely!
From your lifx app -
A. Add the color lamp to a separate group, if you haven't already
B. Add the other two white bulbs to different group

Now from addon settings
1. In the main settings, select the mode as Ambilight mode and enable for group of lights instead of All lights and use the group name from A.
2. In the Ambilight settings - enable Dim before playback for group of lights and use group name from B.

This should enable the white bulbs in theater mode and the color bulb(s) in Ambilight mode.
find quote
Ruckus Offline
Member
Posts: 63
Joined: Oct 2012
Reputation: 1
Location: Costa Rica
Post: #8
fantastico!, will have another look tonight. gracias
find quote
thekow Offline
Junior Member
Posts: 34
Joined: Jun 2009
Reputation: 0
Post: #9
Hi is there a way to just specify an IP address?
I know it has a discovery mode but my kodi server is behind a VPN and it wont discover while its on if it's off it will discover.
I know the light will have the same IP every time i use it.

Thanks
find quote
harct Offline
Junior Member
Posts: 7
Joined: Sep 2016
Reputation: 2
Post: #10
This has been requested by someone else too. The thing is the LifxLan module that I am using doesn't allow connecting to the bulb just by IP. It also need MAC address. I am not sure of adding the settings in user friendly manner. But I will update here when I update the addon to include manual IP/Mac settings.
find quote
thekow Offline
Junior Member
Posts: 34
Joined: Jun 2009
Reputation: 0
Post: #11
Ok awesome sounds good.
find quote
s.lee Offline
Junior Member
Posts: 12
Joined: Sep 2016
Reputation: 0
Post: #12
Hi,

This is awesome, thanks.

Tested on kodi default player and works perfectly.
Tested on mpc-hc as external player and it works for starting (slowly dim to off) and stopping (slowly back to last intensity) the movie but not pause (nothing happen)
Is this a limitation or is there a way to make it work?

Thanks
find quote
tabingzee Offline
Junior Member
Posts: 2
Joined: Sep 2012
Reputation: 0
Post: #13
Hi there,

This is working great. It did just stop the bulb from responding and I had to turn off / on so i will let you know if it happens again. Might be a one off.

Thanks.
find quote
Ruckus Offline
Member
Posts: 63
Joined: Oct 2012
Reputation: 1
Location: Costa Rica
Post: #14
(2016-09-06 21:22)harct Wrote:  Glad you liked it!

About your question, yes absolutely!
From your lifx app -
A. Add the color lamp to a separate group, if you haven't already
B. Add the other two white bulbs to different group

Now from addon settings
1. In the main settings, select the mode as Ambilight mode and enable for group of lights instead of All lights and use the group name from A.
2. In the Ambilight settings - enable Dim before playback for group of lights and use group name from B.

This should enable the white bulbs in theater mode and the color bulb(s) in Ambilight mode.

Finally got around to doing this tonight. WOW!

this works so awesomely well and just what us Lifx users were waiting for.

congrats on this superb addon!
find quote
bortek Offline
Member
Posts: 51
Joined: Mar 2013
Reputation: 0
Post: #15
Works like a charm!

HTPC homemade - BOX SilverStone Lascala LC17 - CPU Intel Core i3-3220T (2.8 GHz) - CM ASRock B75 Pro3 - HD Crucial M4 64 Go - CG ASUS GeForce GT 610 Low Profile 1 GB - RAM Corsair Vengeance Low Profile Blue Series 4 Go (2x2 Go) DDR3 1600 MHz CL9 - POWER Be Quiet! Power 7 400 W 80PLUS - REMOTE Harmony 650 - Frodo 12.2 XBMCbuntu Aeon-Nox 4.1.9 - MacPro 2010 - SMB
find quote
Post Reply