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

#41 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 12 January 2018 - 11:25 AM

It will take some time to create a web interface to set the brightness, hue, and saturation for each light that also takes into account the varying capabilities of different light bulbs.  So here is what I am thinking. 

In the setup you select the lights you want to control.

Then, through another application (official Hue Apps) you set the lights to the desired value for the pause event. Click a button in the plugin config and it saves the light states of the selected lights. Then set the lights to values you want for the play event and click another button.

This would cover everything besides the color randomization.

 

After that, I'll look into adding web based controls that will allow you to edit the scenes.

Any hopes that this is still on your radar @nxenos83?



#42 robrhedrick OFFLINE  

robrhedrick

    Advanced Member

  • Members
  • 164 posts
  • Local time: 11:29 AM
  • LocationKansas

Posted 27 February 2018 - 11:21 PM

I can't get this plugin to load on 3.2.60... any thoughts? Here are the start up logs after putting the dll in the plugins folder.


2018-02-27 21:09:36.024 Info App: Loading assemblies
2018-02-27 21:09:36.056 Info App: Loading TVHeadEnd, Version=1.1.0.1, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading MBBackup, Version=1.1.7.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading GoogleDrive, Version=3.0.6440.36832, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading HueControl, Version=1.0.6251.15105, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading MediaBrowser.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading MediaBrowser.WebDashboard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.056 Info App: Loading MediaBrowser.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading MediaBrowser.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading MediaBrowser.Controller, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading MediaBrowser.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Photos, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Server.Implementations, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Server.MediaEncoding, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Dlna, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading MediaBrowser.LocalMetadata, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading MediaBrowser.XbmcMetadata, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Server.CinemaMode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Server.Connect, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.057 Info App: Loading Emby.Server.Sync, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Controller, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Common, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Common, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Controller, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Controller, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.118 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Common, Version=3.2.27.3, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.121 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Controller, Version=3.1.259.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.121 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Common, Version=3.1.259.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.121 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.1.259.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.121 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.1.259.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

2018-02-27 21:09:36.121 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=3.1.259.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

Edited by robrhedrick, 27 February 2018 - 11:22 PM.


#43 WilhelmStroker ONLINE  

WilhelmStroker

    Advanced Member

  • Members
  • 234 posts
  • Local time: 05:29 PM

Posted 20 April 2018 - 02:58 PM

Here's hoping this is still active as I'm trying to dim the lights in my living room when starting a movie on Emby. I'm also getting the 'Unable to get light groups. Check URL' error.
Currently playing with Hone Assistant on a Pi but it would be nice to be able to use this plugin instead.

#44 Senna OFFLINE  

Senna

    Advanced Member

  • Members
  • 1132 posts
  • Local time: 06:29 PM

Posted 31 May 2018 - 06:47 PM

MrMC has implemented a Hue Client in latest Testflight builds and for now, is still in test fase.

 

What is working now in MrMC is that user can set up Ambilight and dimming features for entertainment rooms and individual Hue lights when the user has the square Hue bridge.

 

So user can setup the Hue Client in MrMC to gradually dim the lights with the start of the movie, un-dim gradually when movie is paused and gradually dim again when movie is continued. Should be nice if Emby devs also implement this into Emby @Luke.



#45 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137694 posts
  • Local time: 12:29 PM

Posted 31 May 2018 - 09:54 PM

It's a great idea for the future. Thanks.

#46 DelSol OFFLINE  

DelSol

    Member

  • Members
  • 21 posts
  • Local time: 06:29 PM

Posted 11 July 2018 - 06:09 AM

Hey, any news on this? I'd love to have my hue lights go bright when I stop a movie.

I tried the plugin from 2017 but this did not work for me and caused my emby server to crash. 



#47 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137694 posts
  • Local time: 12:29 PM

Posted 11 July 2018 - 10:29 AM

It's something we'd like to explore in the future. Thanks.

#48 WilhelmStroker ONLINE  

WilhelmStroker

    Advanced Member

  • Members
  • 234 posts
  • Local time: 05:29 PM

Posted 11 July 2018 - 01:15 PM

If you don't mind a bit of tinkering and a seperate device, with Home Assistand on a Pi this is easily done.

https://www.home-ass..._playing_media/



#49 DelSol OFFLINE  

DelSol

    Member

  • Members
  • 21 posts
  • Local time: 06:29 PM

Posted 13 July 2018 - 09:16 AM

thanks for the reply. The Home Assistand workaround did not work for me. I could not get it to run on my windows server, did not try a raspberry yet. but as far as I understood, it would react to any play/pause event and I need it to react to just one device and one user. I don't want my lights in the living room to turn on and off while I'm wantching a movie in the bedroom. 


Edited by DelSol, 13 July 2018 - 09:28 AM.


#50 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 19 July 2018 - 05:48 PM

thanks for the reply. The Home Assistand workaround did not work for me. I could not get it to run on my windows server, did not try a raspberry yet. but as far as I understood, it would react to any play/pause event and I need it to react to just one device and one user. I don't want my lights in the living room to turn on and off while I'm wantching a movie in the bedroom.


I’m reluctantly looking into setting up Home Assistant to get Hue lights working with my Emby setup since all the other options have not panned out. Not looking forward to all the tinkering that looks to be involved but what ya gonna do.

I’ve read that you definitely want to set this up on a Linux system and not Windows to avoid all the headaches so it’s probably going to be worth getting a Raspberry.

I did read on the Home Assistant forums that you can specify what type of media and specificy the client to trigger the automation so it is possible to only have movies activate it from a specific device.

#51 WilhelmStroker ONLINE  

WilhelmStroker

    Advanced Member

  • Members
  • 234 posts
  • Local time: 05:29 PM

Posted 24 July 2018 - 08:10 AM

Yes, windows is not recommended for home assistant, so a pi is your best bet. Or a linux machine for example. I have 2 Emby clients in my living room, and what my automation does is trigger a certain activity for JUST the lights in my living room, if I'm on any of those devices. It looks a bit like this, but there's likely better examples to be found on the Home assistant forums. This is pretty much borrowed from the link I posted earlier.

You need to configure both Hue and Emby as prerequisites.

 

automation:
  - alias: "Emby Playback paused/stopped"
    trigger:
      - platform: state
        entity_id: media_player.emby__androidtv__nvidia_shield_android_tv, media_player.emby__emby_theater__xbox_one_x
        from: 'playing'
        to: 'idle'
    action:
        service: scene.turn_on
        entity_id: scene.livingroom_normal

  - alias: "Emby Playback starting"
    trigger:
      - platform: state
        entity_id: media_player.emby__androidtv__nvidia_shield_android_tv, media_player.emby__emby_theater__xbox_one_x
        to: 'playing'
        from: 'idle'
    action:
        - service: scene.turn_on
          entity_id: scene.livingroom_dim
        - service: light.turn_on
          entity_id: light.hue_lightstrip_plus_1

 

The scenes look like this:

scene:
  - name: Livingroom normal
    entities:
        light.living_room_big:
            state: on
            transition: 2
            brightness_pct: 100
        light.living_room_small:
            state: on
            transition: 2
            brightness_pct: 100
  - name: Livingroom dim
    entities:
        light.living_room_big:
            state: on
            transition: 2
            brightness_pct: 10
        light.living_room_small:
            state: on
            transition: 2
            brightness_pct: 10



#52 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 24 July 2018 - 01:15 PM

Thanks for posting that example @WilhelmStroker. I havent really attempted to try Home Assistant yet as I would need to get a Pi set up first but have been studying examples trying to familiarize myself why the syntax used.

 

Would you know what could be added to your above example to only get this automation to happen when watching a movie and be ignored for TV and Live TV? I would be using Kodi as my player so maybe it reports something that could trigger it or possibly just add a video length condition and have it trigger only if the video is of a certain duration?

 

​I don't want my lights to go off when watching regular TV shows or live tv.


Edited by hstamas, 24 July 2018 - 01:20 PM.


#53 WilhelmStroker ONLINE  

WilhelmStroker

    Advanced Member

  • Members
  • 234 posts
  • Local time: 05:29 PM

Posted 24 July 2018 - 01:37 PM

Not sure, I had a look around but didnt really find much for Home Assistant, although apparently there's a Kodi plugin that's mentioned here:

https://community.ho...l-or-delay/6317

 

Not sure if that would work with emby though but worth a test.



#54 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 13 December 2018 - 01:24 PM

Just wanted to share that I finally found a solution for integrating Philips Hue lighting with Emby. 

 

Using this webhooks plugin (I believe you need to be using the latest Emby beta for this to work) along with the IFTTT webhooks service got it working perfectly for me: 

 

https://github.com/n...plugin.Webhooks


  • DelSol likes this

#55 DelSol OFFLINE  

DelSol

    Member

  • Members
  • 21 posts
  • Local time: 06:29 PM

Posted 13 December 2018 - 07:18 PM

hstamas can you please share how you managed to get this to work? I added my IFTTT maker url including the api key in the first text field, checked movies and my options and entered the name of my webhook "turn_on_lights" that I created in IFTTT. this does not work for me.



#56 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137694 posts
  • Local time: 12:29 PM

Posted 14 December 2018 - 01:06 AM

Did you verify in IFTTT that it received the request and then attempted to act on it?



#57 DelSol OFFLINE  

DelSol

    Member

  • Members
  • 21 posts
  • Local time: 06:29 PM

Posted 14 December 2018 - 08:39 AM

when I fire the IFTTT trigger manually via the URL or another app it works perfectly, but it seems that emby does not trigger the webhook at all.

 

this is my setup:

 

5c13a3ef10810_20181214133400.png



#58 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 14 December 2018 - 12:23 PM

Did you verify in IFTTT that it received the request and then attempted to act on it?

 

Yes the IFTTT trigger works properly.

 

Like I mentioned this did NOT work for me using the stable release of the server. Once I updated to the beta (Mac OSX) it started working.



#59 hstamas OFFLINE  

hstamas

    Advanced Member

  • Members
  • 575 posts
  • Local time: 12:29 PM

Posted 14 December 2018 - 12:30 PM

hstamas can you please share how you managed to get this to work? I added my IFTTT maker url including the api key in the first text field, checked movies and my options and entered the name of my webhook "turn_on_lights" that I created in IFTTT. this does not work for me.

Did you make sure your event name in IFTTT is the exact same name used in the web hook web url? I had an issue early on not knowing what to put in the placeholder part of the url. attached are my setups in both the plugin and IFTTT. Your event name has to be the exact same thing in both places.

Now I havent watched a movie in about a week. I sure hope this hasn't stopped working and I am just not aware of it??

Just checked and it is still working as expected.

Attached Files


Edited by hstamas, 14 December 2018 - 06:45 PM.


#60 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137694 posts
  • Local time: 12:29 PM

Posted 23 December 2018 - 01:18 PM

Thanks for the info !







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