Kodi Community Forum
Release Philips Hue Service & Ambilight - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152)
+---- Thread: Release Philips Hue Service & Ambilight (/showthread.php?tid=344886)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


RE: Philips Hue Service & Ambilight - cw-kid - 2019-09-08

Does the Hue Service work with live TV channels?

I have a Blackgold DVB-T2 tuner in my server and using Dvblogic backend with the Kodi addon.

No Hue AmbiLight when playing the TV channels.


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-08

I never thought of that Smile So right now, no.

I wanted to get an antenna to use with an old Hauppage usb tuner and set up PVR eventually but I'm doubtful I'd get good reception here so I never got around to it.

In theory it might be able to work, but because it's checking if its a movie, TV show, duration etc it only works with items in your library. Live TV probably doesn't have meta data like library items. 

It's a good idea though so I'll see what I can do about it in the future, but probably not any time soon.


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-09

Hi, 

I released a new version which has some improvements for Ambilight. The algorithm is now about twice as fast, and there are two new options to adjust it so that there's less flickering and too fast colour changes. You can update via the repo or from the links in my signature.


Colour Sensitivity: How big the colour change must be for the lights to update. Can reduce flickering by filtering out colours that are too similar to the previous frame. The higher the value, the bigger the colour difference must be for the lights to update. The value represents the distance between two XY points in the CIE1935 colour space used by Hue.
Minimum Colour Proportion: The percentage of the frame a colour must take to update the lights. Can reduce flickering by filtering out colours that only take up a small portion of the screen.


RE: Philips Hue Service & Ambilight - zimz - 2019-09-10

@Snapcase Thank you for the info - I will sit down and do it when I get a moment.

May I make a request? Could you please allow manually inputing the bridge ip? I switched my hue emulator install to another device (from raspi to a laptop server) and for some reason it won't show up (maybe a upnp problem) anywhere, but works fine in various hue apps and controllers when I input the ip manually.


RE: Philips Hue Service & Ambilight - zimz - 2019-09-11

And a quick second request if possible: to make it possible to use custom ports to connect to the (emulated) bridge -- I run it on the same device as a server which needs ports 80 and 443.


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-11

Hi

The connection & login code is kinda tricky so I'm not sure I can add that easily without redesigning it, but I have a workaround for you. You can manually edit the file in userdata/addon_data/script.service.hue/settings.xml. If you need help finding it there's an article here: Userdata (wiki)

Look for the line that says BridgeIP and just change it to what you need. You should be able to put the IP in as well, for example: 192.168.1.10:8080. You'll need to restart Kodi for the change to take effect. When the addon starts if it's able to succesfully connect to whatever is set in BridgeIP and BridgeUser, it will just connect and bypass the discovery and login stuff


RE: Philips Hue Service & Ambilight - zimz - 2019-09-12

Thanks a lot, I'll get on it soon. There's a bunch of weird stuff that happens when you use an emulated diyhue bridge and import ikea lights from an ikea gateway it seems - not just wrt to this add on, but in general. I'm able to import the tradfri lights in diyhue and connect to the diyhue bridge and control the lights from apps etc, but some only recognize them as dimmable or temperature lights but not color, for instance, so there are a lot of potential hiccups. While I got your add on to connect to the diyhue bridge and I could pick the lights in the menu, I never got it to control them in any way (no initial flash etc) but once I do I'll have a look and see if it's able to do the ambilight stuff. I suppose scenes will be fine because you create them by manually changing the light color.

I tried the old discontinued hue ambilight add on and it works in theater mode, and I think ambilight worked as well (don't remember 100%) but at any rate the problem on android is that you have to disable mediacodec (surface) for it to fetch the screen content so it's pointless as about 1% of my files will play without hw acceleration.

Thanks for working on this btw, may I ask if you have any plans to create zones for the ambilight? Have you had a look at the recent work on huestacean (cross platform) on github?


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-12

Do you know what API version the emulator supports? My add-on uses the new style scenes that let you make scenes that are in multiple rooms, but the older add-ons didn't use it since it wasn't around at the time. I built it using the most recent API so it's possible some stuff changed. If you turn on the debug logs you should be able to see if the bridge is giving an error. 

Yeah it sounds like for the screen capture doesn't work with hardware acceleration on android but that's not something I can fix on my end.

I don't plan to support the entertainment zones. I looked into it and it was a lot more complex. The slowest part of the ambilight script is grabbing the screenshot & analyzing it; if I tried to do it based on where the lights are placed it would be even slower, so the faster light changes of the entertainment zones couldn't even be used. Unless someone better at Python than me figures it out, that is.


RE: Philips Hue Service & Ambilight - dave77 - 2019-09-16

Re Ambilight - I was about to ask what was answered in the previous post Sad

I haven't tried this plugin yet but tried the other on my Vero4K (linux I believe) and it failed as it doesn't work with hardware acceleration turn on
https://github.com/mpolednik/script.kodi.hue.ambilight/issues/124

I'll try your plug-in but I suspect it won't work either.


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-16

From what I've learnt so far, the limitation is more specifically with Android devices using MediaCodec Surface hardware acceleration. If it does run linux it might run fine, but it depends on the hardware capabilities. Either way it's not something I can do anything about. Try it out at let us know!


RE: Philips Hue Service & Ambilight - dave77 - 2019-09-16

(2019-09-16, 16:37)Snapcase Wrote: From what I've learnt so far, the limitation is more specifically with Android devices using MediaCodec Surface hardware acceleration. If it does run linux it might run fine, but it depends on the hardware capabilities. Either way it's not something I can do anything about. Try it out at let us know!

No joy on the Vero4K unfortunately. It works when I turn off hw acceleration but my movies struggle to play.


RE: Philips Hue Service & Ambilight - DAlba - 2019-09-17

This seems interesting for ambilight fans. https://www2.meethue.com/en-us/p/hue-hdmi-sync-box-/046677555221?cjevent=b20d2740d96111e9812000a60a240614


RE: Philips Hue Service & Ambilight - dave77 - 2019-09-18

(2019-09-17, 17:45)DAlba Wrote: This seems interesting for ambilight fans. https://www2.meethue.com/en-us/p/hue-hdmi-sync-box-/046677555221?cjevent=b20d2740d96111e9812000a60a240614

Yeah just been reading that, $229 is an expensive option though

https://www.theverge.com/2019/9/17/20864953/tv-light-sync-box-philips-hue-play-hdmi-passthrough-4k


RE: Philips Hue Service & Ambilight - Snapcase - 2019-09-20

Too bad about the Vero.

I'd be curious to see that Hue thing in action but yeah at that price I think I'll stick with my script for the time being. If anyone gets one I'd be really curious to hear your thoughts on it, and how the algorithm behaves


RE: Philips Hue Service & Ambilight - Cinephile - 2019-09-22

(2019-09-18, 10:34)dave77 Wrote:
(2019-09-17, 17:45)DAlba Wrote: This seems interesting for ambilight fans. https://www2.meethue.com/en-us/p/hue-hdmi-sync-box-/046677555221?cjevent=b20d2740d96111e9812000a60a240614

Yeah just been reading that, $229 is an expensive option though

https://www.theverge.com/2019/9/17/20864953/tv-light-sync-box-philips-hue-play-hdmi-passthrough-4k  

My Windows HTPC does it free with the official Hue Sync app. Big Grin