Jump to content


Photo

Plugin for controlling Hue light

hue hue lights phillips hue home automation ha

  • Please log in to reply
151 replies to this topic

#61 Biofects OFFLINE  

Biofects

    Newbie

  • Members
  • 8 posts
  • Local time: 06:04 AM
  • LocationAustin, Tx

Posted 09 January 2019 - 09:01 PM

Hello everyone, I am very vanilla (2 weeks new) to Emby and loving it! I was searching for a phillips hue plugin and found this article. I was bummed for about 30 min, that the original plugin was no longer working. Then I said I'll see if I can fix it. Well I have it working for Emby 3.6.0.84. I do have the fix for 3.5 also, ill need to compile it. I will fork the original and publish in the next day or so. Do I just link to my github here when I publish? I would love feedback.

Thanks

Edited by Biofects, 09 January 2019 - 09:02 PM.


#62 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 07:04 AM

Posted 09 January 2019 - 10:16 PM

Hi @Biofects, thanks and welcome !



#63 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 07:04 AM

Posted 10 January 2019 - 09:34 AM

Hi @Biofects. The plugin is still working for me as is so Im curious what isnt working on your end? Is it just the need to be running the beta server that is the issue?

 

I'd be happy to test out anything you create that might make this an even better plugin. @Luke should be able to give you instructions on how to get a plugin submitted to the catalog once  you get to that stage.



#64 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 07:04 AM

Posted 10 January 2019 - 12:28 PM

Yes I can help with that, thanks.



#65 Biofects1 OFFLINE  

Biofects1

    Newbie

  • Members
  • 4 posts
  • Local time: 05:04 AM

Posted 10 January 2019 - 01:54 PM

Thanks @Luke and @hstamas.

 

I have published release here Biofects. The reason I went down this road was I could not get the original plugin to work with my new install of Emby Server not the beta version. I also tried to update the base code to be on later versions. Please let me know if you have issues on the install and I will try to fix them.

 

Thanks.



#66 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138075 posts
  • Local time: 07:04 AM

Posted 10 January 2019 - 01:55 PM

To work with the beta version you'll need to use the beta nuget package. the version of the nuget package corresponds to the version of emby server.



#67 Biofects1 OFFLINE  

Biofects1

    Newbie

  • Members
  • 4 posts
  • Local time: 05:04 AM

Posted 10 January 2019 - 01:57 PM

Oh Sorry,I miss spoke. I have the latest nuget package, and working the update is Working in Emby 3.6.0.78-beta. Also I messed up my account and I am @Biofects


Edited by Biofects1, 10 January 2019 - 02:02 PM.


#68 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 07:04 AM

Posted 10 January 2019 - 04:11 PM

My bad guys. I though we were talking about the Webhooks plugin that this discussion thread turned into (which works well with the latest Emby server beta).

 

@Biofects1, I will definitely test out your updated Hue specific plugin this weekend and give you feedback here.


Edited by hstamas, 10 January 2019 - 04:12 PM.


#69 GreyBeard OFFLINE  

GreyBeard

    Advanced Member

  • Members
  • 55 posts
  • Local time: 05:04 AM

Posted 11 January 2019 - 12:05 AM

I so wish this could somehow be tied to the cinema mode plugin. I used to use the Cinema Experience plugin with Kodi. It made for a very cool "movie night" experience. Select play for the movie and before movie starts dim certain lights, start music and play trivia slides for 10 minutes. End trivia, turn off lights, turn on light behind tv and play two trailers. Play the movie. Movie gets paused, raise lights to dim level. Movie ends, raise lights to normal level. The only thing they didn't have figured out when I was using it was how to save a time credits start for each movie to raise the lights to dim level then full when it ends. Add in the ability to control the curtains I'll eventually have to change the screen size for 2.35:1 vs 1.85:1 and we're golden. Really wish I knew more about programming.....



#70 GreyBeard OFFLINE  

GreyBeard

    Advanced Member

  • Members
  • 55 posts
  • Local time: 05:04 AM

Posted 11 January 2019 - 12:26 AM

BTW, the plugin from @Biofects works fine in the latest beta. (Which for some reason my dashboard says I'm running 4.0.0.0 beta instead of what I think is 3.6.85?) Thanks for the fix. Looking forward to more options such as colors and controlling more than one group doing different things.



#71 Biofects1 OFFLINE  

Biofects1

    Newbie

  • Members
  • 4 posts
  • Local time: 05:04 AM

Posted 11 January 2019 - 12:41 AM

Thanks @GreyBeard, I want to add some more features soon. Starting simple

#72 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 07:04 AM

Posted 11 January 2019 - 10:26 AM

Thanks @Luke and @hstamas.

 

I have published release here Biofects. The reason I went down this road was I could not get the original plugin to work with my new install of Emby Server not the beta version. I also tried to update the base code to be on later versions. Please let me know if you have issues on the install and I will try to fix them.

 

Thanks.

 

Had the chance to quickly test out the plugin last night and it work perfectly. In my use case I would need the ability to choose which specific lights to control or if thats not possible be able to trigger a scene instead? Also the ability to have different actions based on what playback is doing, IE: Play = Turn off  / Pause = Raise to 50% etc. Great work so far!



#73 Biofects OFFLINE  

Biofects

    Newbie

  • Members
  • 8 posts
  • Local time: 06:04 AM
  • LocationAustin, Tx

Posted 11 January 2019 - 11:05 AM

Had the chance to quickly test out the plugin last night and it work perfectly. In my use case I would need the ability to choose which specific lights to control or if thats not possible be able to trigger a scene instead? Also the ability to have different actions based on what playback is doing, IE: Play = Turn off  / Pause = Raise to 50% etc. Great work so far!

 

 

Thanks for testing, Im hoping to have some time this weekend to start adding features as you have described. Like I said I am still very vanilla to Emby, so it might take a bit. I have added a function to auto discover the bridge, just need to add a few more features before next release. 



#74 Biofects OFFLINE  

Biofects

    Newbie

  • Members
  • 8 posts
  • Local time: 06:04 AM
  • LocationAustin, Tx

Posted 27 January 2019 - 04:29 PM

Hey Everyone, 

 

Sorry for the delay, I have added a couple features:

 

Get the latest here Biofects Emby Phillips Hue Plugin

 

  • Multiple Light Group Support
  • Individual Dim Control for Play Pause and Stop

 

5c4e146f3a935_ScreenShot20190127at22752P

 

Please test and let me know what you think.

 

I also want to give a shout out to a bud NicK who helped me with C# and getting bugs worked out.


Edited by Biofects, 27 January 2019 - 05:17 PM.


#75 DarzLir OFFLINE  

DarzLir

    Member

  • Members
  • 25 posts
  • Local time: 01:04 PM

Posted 27 January 2019 - 09:38 PM

OMG, a few months ago I read something about the possibilities of Philips HUE and Emby, but I did not have any device and I was not interested anymore. But last Christmas I received an Amazon Dot 3rd and a week ago I bought a starter kit with two bulbs and a bridge.
 
I just tried it and it works great! I created a routine with Alexa, an "emby mode", where Alexa and a Broadlink RM mini 3 open the TV app, decrease the brightness and turn the lights blue. But this works more directly and by devices, a light bulb in the bedroom for example with settings different from those of the living room.
 
 
 
I guess the next step could be to customize the colors of the groups or devices. And I think the greatest (and maybe most complicated) thing is to detect that you have logged in Emby in a device and launch a change in the lights.
 
For example:
 
In the living room I have lights in warm white mode so, when you enter and log in Emby App, the lights change to a certain color, then we got the preferences of play, pause and stop and when you disconnect or log out you return to the previous setting or another you want.
 
 
I do not know if it is possible because I do not know what can or can not be done. But since I do not know too much about programming, at least my contribution is to try and give ideas.
 
 
thank you very much @Biofects and hit it :)


#76 GreyBeard OFFLINE  

GreyBeard

    Advanced Member

  • Members
  • 55 posts
  • Local time: 05:04 AM

Posted 27 January 2019 - 09:54 PM

Only issue I have is my entire house is hue bulbs. Thus I have about 15 groups and can only see the first four. I was able to get to the rest of them using the tab key. Perhaps a scroll bar is needed?



#77 GreyBeard OFFLINE  

GreyBeard

    Advanced Member

  • Members
  • 55 posts
  • Local time: 05:04 AM

Posted 27 January 2019 - 11:15 PM

One more thing that ties in with the cinema experience. My current movie flow for the main room is play two trailers, play a theater intro, play any codec intros (4K, Atmos, etc) then the movie. (Would still love to be able to play trivia slides with music behind for a preset time, but that's another plugin, not hue.) Right now the lights briefly come up, then lower again between each video. Press play, dim, plat trailer one, lights up, im, play trailer two, lights up, dim, play theater intro, lights up, etc. Maybe an option to ignore stop on any video less than xx minutes?


  • hstamas likes this

#78 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 07:04 AM

Posted 28 January 2019 - 12:43 PM

One more thing that ties in with the cinema experience. My current movie flow for the main room is play two trailers, play a theater intro, play any codec intros (4K, Atmos, etc) then the movie. (Would still love to be able to play trivia slides with music behind for a preset time, but that's another plugin, not hue.) Right now the lights briefly come up, then lower again between each video. Press play, dim, plat trailer one, lights up, im, play trailer two, lights up, dim, play theater intro, lights up, etc. Maybe an option to ignore stop on any video less than xx minutes?

 

Yes I would definitely need some sort of way to only have my lights react to a particular type of media (movie versus TV) or if thats not possible, by duration? I do not want my lights to react if Im watching regular television programming, only if Im watching a movie. Either a minimum video length would work (this is how most of the other Hue plugins for Kodi handle it) or, like the webhooks plugin for Emby does, allow you to select the library type that would react. In this case only libraries set up as "movie" types.

 

Excellent progress though - Thanks for all your hard work!!



#79 Biofects OFFLINE  

Biofects

    Newbie

  • Members
  • 8 posts
  • Local time: 06:04 AM
  • LocationAustin, Tx

Posted 28 January 2019 - 12:48 PM

Thanks for the feedback. I will look into adding a feature to only set dim on movies or all, as well as adding scene support. As for the scroll bar that should be an easy fix with some css magic. I will work on this. I also like the idea of movie trivia plugin to Cinema mode. @GreyBeard, if you have the koi plugin that does this that will help a lot to see how and where they are getting the triva.



#80 noakd8601 OFFLINE  

noakd8601

    Member

  • Members
  • 10 posts
  • Local time: 05:04 AM

Posted 08 February 2019 - 12:47 AM

I'm digging the start of this plugin! Any movement in regard to scene support, media type selection, or ability to ignore stop on videos shorter than xx minutes? Those things will get this pretty close to perfect I think!

Edited by noakd8601, 08 February 2019 - 12:49 AM.






Also tagged with one or more of these keywords: hue, hue lights, phillips hue, home automation, ha

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users