Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

[REL] HelloHue 1.1.8.4 - Sync and control your Philips Hue lights with Plex!

ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass
edited November 2016 in Plex Channels

HelloHue for Plex and Philips Hue

Sync and control your Philips Hue lights with Plex!

Credits
This Channel is based on PlexWink by @vanstinator.

Behavior

This channel detects when a media is playing, paused or stopped on your Plex Clients. Then it checks if it's a video, the client name, and the user who owns the stream. If it matches your criteria it triggers your lights with the actions you have set up.
You can also turn your lights on and off inside the channel.

Configuration

The config is pretty simple and only needs to be done once. Configure your settings following the details below.
One room is composed of one client, one or multiple users and one or multiple lights, as well as the actions : on play, on stop, on pause, dim value, and only trigger if it's dark outside.

  • Plex.tv login is your Plex login.
  • Plex.tv passwords is your Plex password. It is only sent to plex.tv to get an identification token (so you must have a working internet access).
  • Plex Server Address is the local adress + port to reach your server (example : 127.0.0.1:32400).
  • Philips Hue Bridge Address is the ip address of your Philips Bridge.
  • Nearest city from your location Used to calculate to calculate sunrise/sunset hours at your location.
  • Activate HelloHue in room 1 Tick to activate room 1 (and fill the client, users and lights settings for room 1).
  • Name of plex client able to trigger in room 1 You can find the list of users in PMS -> settings -> devices. Only put ONE client per room. If your have two clients in the same room, activate an other room and fill the settings with the other clients name and the same lights names.
  • Name of the users able to trigger in room 1 You can find the list of users in PMS -> settings -> users -> myhome. You can put multiple users (comma separated values, case sensitive).
  • Name of the lights to trigger in room 1 is the list of lights that will be triggered in room 1. You can put multiple users (comma separated values, case sensitive).
  • When a media is playing in room 1 is the action that will fire when a media is playing in room 1.
  • When a media is paused in room 1 is the action that will fire when a media is paused in room 1.
  • When a media is stopped in room 1 is the action that will fire when a media is stopped in room 1.
  • Choose dim value in room 1 is the value your lights will dim to. (20 is the min brightness and 240 is max)
  • Randomize hue and saturation on Dim/Turn On in room 1 will randomize your light color each time the action turn on or dim is fired.
  • Only trigger lights if it's dark outside in room 1 Tick to only trigger your lights between sunrise and sunset.
  • Activate HelloHue in room 2 Same thing as Activate HelloHue in room 1 ...
  • ...

Usage

How to install:

  • go to Library/Application Support/Plex Media Server/Plug-ins/
  • If existing, delete HelloHue.bundle
  • get the release you want from https://github.com/ledge74/HelloHue/releases
  • unzip the release
  • restart your plex media server!!!
  • more indepth: see article on Plex website.

On first run:

  1. Configure your Channel preferences (see above for help, make sure that you are connected to the internet as the channel will request a token from plex.tv)
  2. Go to the channel (on any device)
  3. If you see, Press button and your bridge and click to connect click on this menu AFTER having pressed the physical button of your bridge.
  4. The click on Advanced --> Restart HelloHue
  5. If you see the menu My Lights then you are all good!
  6. Enjoy :)

Use the channel:

  • My Lights allows you to trigger your lights from the channel
  • Enable HelloHue disable the channel (stop listening to items being played)
  • Disable HelloHue resumes the channel (start listening to items being played)
  • Advanced --> ```Restart HelloHue`` takes into account your new Plex.TV login/password if you updated it in the channel settings.

How to report a bug and ask for features

If you have a problem with this channel, raise an issue on GitHub or on this topic. Don't forget to add a Log file of this channel : https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

Known issues

  • When stopping a media on PHT (for mac), the action will take some time (a few minutes). This is linked to a bug in PHT or PMS. --> use OpenPHT to fix this issue
  • HelloHue doesn't work with PlexBMC

Support the project

I've developed HelloHue on my free time, so if you like it please think about buying me a beer!



«13456720

Comments

  • vanstinatorvanstinator Plex for Windows Members, Plex Employee, Plex Pass, Plex Ninja Posts: 657 Plex Employee

    Looks good :)

  • KoontzyKoontzy Members, Plex Pass Posts: 12 Plex Pass

    can't wait to try this (tomorrow evening

  • WilhelmStrokerWilhelmStroker Members, Plex Pass Posts: 1,541 Plex Pass

    This works great, although I found a small issue. When testing various clients, I added the name of my Linx tablet to the devices that are allowed to control the lights. That worked, but because I don't have the need for this device to be used with HelloHue, I removed it. When I watched a movie on this device the other day, it turned on my lights unexpectedly. I tried restarting HelloHue but that didn't make a difference. I also can't find the device in the prefs file...THoughts?

  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass
    edited November 2015

    Version 1.0.3 is out!

    Changelog:

    • Possibility to choose a Dimming value
    • Possibility to randomize Hue color when turning on / dimming
    • Possibility to stop the plugin if it's sunny outside, based on the location of the user
    • Added possibility to configure up to 5 rooms, based on one clients, multiple plex users and hue lights
    • Bug fixes

    Download the new release here: https://github.com/ledge74/HelloHue/releases/tag/1.0.3 (don't forget to update your preferences)

    @WilhelmStroker said:
    This works great, although I found a small issue. When testing various clients, I added the name of my Linx tablet to the devices that are allowed to control the lights. That worked, but because I don't have the need for this device to be used with HelloHue, I removed it. When I watched a movie on this device the other day, it turned on my lights unexpectedly. I tried restarting HelloHue but that didn't make a difference. I also can't find the device in the prefs file...THoughts?

    Yeah I noticed this issue as well. Try the new release it should fix your problem. You will need to update your preferences. As this version brings rooms management, don't forget : one room = one plex client. If you have two clients and you want them to trigger the same lights, you need to activate two rooms in the channel preferences. Let me know if this works for you

  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass
    edited November 2015

    Sorry I went to fast with 1.0.3 and broke the "on playback stopped" action.

    So 1.0.4 is out! get it here : https://github.com/ledge74/HelloHue/releases

    Changelog:

    • Fixed the "on playback stopped" action
  • WilhelmStrokerWilhelmStroker Members, Plex Pass Posts: 1,541 Plex Pass

    Yup new version fixed the issue I had, great job :) Loving the new update too. Would it be possible to have specific actions per room?

  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass
    via Email
    Great ! I was thinking about that as well I will implement it in the next release. It should be easy to make.
  • WilhelmStrokerWilhelmStroker Members, Plex Pass Posts: 1,541 Plex Pass

    @ledge74 said:
    Great ! I was thinking about that as well I will implement it in the next release. It should be easy to make.

    That would be awesome!

  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass

    1.1.0 is out !

    Changelog:

    • added playback settings per room.
    • fixed issues with sunset/sunrise calculation.

    get it here: https://github.com/ledge74/HelloHue/releases

    I can't think of new features to implement, if you guys have any idea let me know :)

  • ac4ltac4lt Members, Plex Pass Posts: 153 Plex Pass

    This looks great! Look forward to trying it out but here are some thoughts:

    1. Is there a way to have this work for any user of a particular client (something like a "*" wildcard)?
    2. Our room has six lights in it. When a video plays I want them all on. When it finishes I'd like them to all come on to a preset level. But, when I pause I'd like just the two lights in the back of the room come on leaving the other four off. It sounds like I could accomplish this with two "rooms". One for the front four lights and one for the back two. Does that sound practical?
  • Bartlomiej BaraniecBartlomiej Baraniec Members, Plex Pass Posts: 1,707 Plex Pass

    It's working just great :)
    Whole setup took me like 2 minutes. The only problem is that PHT after pressing stop keeps reporting playback for 2-3 minutes. Bug is so old but still not fixed.
    Two requests:
    1.More clients/room.
    2.Let me choose either my color, or one of the Hue Scenes

    I love, it's so sweet and geeky and now I have less buttons to press :)

  • forgottentowelforgottentowel Members, Plex Pass Posts: 12 Plex Pass

    This is so great. Two quick questions:

    • I can't seem to get it working, can we use device names with spaces, i.e. "Apple TV"?
    • Which is the latest version: 1.0.4 is the most recent by date, 1.1.0 by version number?

    Thanks in advance!

  • WilhelmStrokerWilhelmStroker Members, Plex Pass Posts: 1,541 Plex Pass

    Yup devices with spaces in their name work fine, I have one called `Roku 3' and that works without issues. I couldn't get 1.1.0 to work for some reason so I'm now using 1.01 as that fits my needs. Maybe some more testing this weekend.

  • Bartlomiej BaraniecBartlomiej Baraniec Members, Plex Pass Posts: 1,707 Plex Pass

    @forgottentowel I'm using 1.0.4
    I want to address stop issues with PHT, forget PHT, OpenPHT is out :) https://forums.plex.tv/discussion/193529/release-openpht-1-5-0

  • PMAdminPMAdmin Members, Plex Pass Posts: 99 Plex Pass

    Nice plugin, going to test it and following this thread.

  • tylordurtontylordurton Members, Plex Pass Posts: 457 Plex Pass

    I'll give this a whirl, is there a possibility to add a time of day parameter to say only activate after 7pm [to choose my theatre lighting scene] ?

    Regards
    Tylor

  • PMAdminPMAdmin Members, Plex Pass Posts: 99 Plex Pass

    Strange, it works when i put in the lamp kitchen, but nothing is happening when i insert kitchen,livingroom1,livingroom2. Is there a log file of what is happening?

  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass

    @ac4lt said:
    This looks great! Look forward to trying it out but here are some thoughts:

    1. Is there a way to have this work for any user of a particular client (something like a "*" wildcard)?
    2. Our room has six lights in it. When a video plays I want them all on. When it finishes I'd like them to all come on to a preset level. But, when I pause I'd like just the two lights in the back of the room come on leaving the other four off. It sounds like I could accomplish this with two "rooms". One for the front four lights and one for the back two. Does that sound practical?
    1. is not possible, but you can manually add every users in your Plex home.
    2. This will be possible in the next release, you will be able to do it with this settings:

    Room 1:

    • client : rasplex
    • lights : 1, 2, 3, 4, 5, 6
    • playing: turn off
    • paused: nothing
    • stopped: turn on

    Room 2:

    • client : rasplex
    • lights : 5, 6
    • playing: nothing
    • paused: turn on
    • stopped: nothing
  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass

    @Bartlomiej Baraniec said:
    It's working just great :)
    Whole setup took me like 2 minutes. The only problem is that PHT after pressing stop keeps reporting playback for 2-3 minutes. Bug is so old but still not fixed.
    Two requests:
    1.More clients/room.
    2.Let me choose either my color, or one of the Hue Scenes

    I love, it's so sweet and geeky and now I have less buttons to press :)

    1. do you really need more than 5 rooms? Lucky you. I will add some more in the next release
    2. hue scenes are not supported with the library that I am using so I'll see how to add a preset color.
  • ledge74ledge74 Members, Plex Pass Posts: 256 Plex Pass

    @forgottentowel said:
    This is so great. Two quick questions:

    • I can't seem to get it working, can we use device names with spaces, i.e. "Apple TV"?
    • Which is the latest version: 1.0.4 is the most recent by date, 1.1.0 by version number?

    Thanks in advance!

    yes names with spaces should work. 1.1.0 is the latest but seems broken, I'll release a new one soon.

«13456720
Sign In or Register to comment.