# deprecated

**URL:** <https://forums.plex.tv/t/deprecated/119267>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [October 19, 2015, 9:51pm UTC](https://forums.plex.tv/t/deprecated/119267 "2015-10-19T21:51:47Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 19, 2015, 9:51pm UTC](https://forums.plex.tv/t/deprecated/119267/1 "2015-10-19T21:51:47Z")

</div>

> **[\[REL\] PlexWink - Control your Wink and/or Philips Hue smart lights with Plex!](https://forums.plex.tv/discussion/205647/rel-wink-channel-for-plex)**
>
> Plex Wink Please do not submit log files here. PM them to me as they may contain sensitive information. Philips Hue support has been added! It’s not yet available via the UAS but it can be manually installed from GitHub. Once it’s been tested and...

---

<div class="post-metadata">

**Author:** ![c3ntauri](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/c3ntauri/32/167259_2.png) [@c3ntauri](https://forums.plex.tv/u/c3ntauri)\
**Post date:** [October 19, 2015, 9:57pm UTC](https://forums.plex.tv/t/deprecated/119267/2 "2015-10-19T21:57:18Z")

</div>

Thank you, I cant wait to try it.  
Hmm do you think this would work with the Philips Hue as well?

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 19, 2015, 10:04pm UTC](https://forums.plex.tv/t/deprecated/119267/3 "2015-10-19T22:04:24Z")

</div>

Hope it works well! Unfortunately this will 100% not work with Philips Hue. I could easily adapt it to do that, but I do not own a Philips Hue and at the moment purchasing one is not an option. Should the community want this functionality I’d gladly take a donated one, or even just borrow one for the time it took me to develop the integration.

---

<div class="post-metadata">

**Author:** ![c3ntauri](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/c3ntauri/32/167259_2.png) [@c3ntauri](https://forums.plex.tv/u/c3ntauri)\
**Post date:** [October 19, 2015, 10:32pm UTC](https://forums.plex.tv/t/deprecated/119267/4 "2015-10-19T22:32:24Z")

</div>

Ill have the extra money in a month. Ill talk to you then and maybe send you a starter kit. Love your work.

---

<div class="post-metadata">

**Author:** ![zombian](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/zombian/32/5750_2.png) [@zombian](https://forums.plex.tv/u/zombian)\
**Post date:** [October 20, 2015, 12:42am UTC](https://forums.plex.tv/t/deprecated/119267/5 "2015-10-20T00:42:48Z")

</div>

Just finished fixing my hub and sent the email for my API key. Can’t wait to try it out.

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 22, 2015, 8:35pm UTC](https://forums.plex.tv/t/deprecated/119267/6 "2015-10-22T20:35:34Z")

</div>

Released a new version today

**Changelog 1.1.0**

- adding option for multiple plex client triggers
- option for multiple authorized user triggers
- option for multiple wink lighting groups

---

<div class="post-metadata">

**Author:** ![zombian](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/zombian/32/5750_2.png) [@zombian](https://forums.plex.tv/u/zombian)\
**Post date:** [October 22, 2015, 9:17pm UTC](https://forums.plex.tv/t/deprecated/119267/7 "2015-10-22T21:17:13Z")

</div>

Waaaah! I’m still waiting on my api key. I’ve been using tasker + pushover triggers to get my lights to react on Plex playback. It works but not with the reliability I would like. Triggering wink directly I imagine will be a lot better. How long did you have to you wait for your api key. I’m an impatient man…

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 22, 2015, 9:29pm UTC](https://forums.plex.tv/t/deprecated/119267/8 "2015-10-22T21:29:50Z")

</div>

> @zombian said:  
> Waaaah! I’m still waiting on my api key. I’ve been using tasker + pushover triggers to get my lights to react on Plex playback. It works but not with the reliability I would like. Triggering wink directly I imagine will be a lot better. How long did you have to you wait for your api key. I’m an impatient man…

Mine took about a week to arrive. I experimented with a bunch of different ways to get this working before writing this so you’re probably right when you say it’ll serve you better. Hope you enjoy using it as much as I have!

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 25, 2015, 10:49pm UTC](https://forums.plex.tv/t/deprecated/119267/9 "2015-10-25T22:49:28Z")

</div>

I’ve got a test version of the code running on my local machine that listens on the Plex notification websocket vs. polling the server. The result is a much quicker change in the state of the lights due to the push vs. former pull of the play state on the server. Cleaning up after myself and then I’ll push an update once I’m confident my code handles it well.

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [October 27, 2015, 1:57pm UTC](https://forums.plex.tv/t/deprecated/119267/10 "2015-10-27T13:57:52Z")

</div>

New release today

**Changelog 1.2.0**

- ripped out the old polling code. the application now listens on a web socket
- significantly decreased the lag time between a plex action and lighting action
- caching wink group id numbers at launch instead of getting them every time they are needed
- broke logic apart to support other lighting brands such as philips hue in the future
- other code cleanup and optimization
- rewrote logging so it now contains useful time-stamped entries

---

<div class="post-metadata">

**Author:** ![ledge74](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ledge74/32/2893_2.png) [@ledge74](https://forums.plex.tv/u/ledge74)\
**Post date:** [November 6, 2015, 7:01pm UTC](https://forums.plex.tv/t/deprecated/119267/11 "2015-11-06T19:01:50Z")

</div>

@vanstinator Thanks for your plugin !! I don’t have Wink lights but I do have Philips Hue. Based on your original code, I [developed a channel](https://github.com/ledge74/HelloHue "developed a channel") to triggers the Hue Lights. If it’s okay with you I would like to post about it in a new thread on the forum? Thanks !!

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [November 6, 2015, 7:03pm UTC](https://forums.plex.tv/t/deprecated/119267/12 "2015-11-06T19:03:28Z")

</div>

Go for it. In return I’m going to take your code and make a channel for Wink 😉

---

<div class="post-metadata">

**Author:** ![hstamas](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hstamas/32/2006_2.png) [@hstamas](https://forums.plex.tv/u/hstamas)\
**Post date:** [November 18, 2015, 7:15pm UTC](https://forums.plex.tv/t/deprecated/119267/13 "2015-11-18T19:15:20Z")

</div>

One thing that the Kodi plugin for the Philips Hue lights does thats really nice is it has an option to not turn off the lights if the video thats playing is under 5 minutes in length. That way if your just watching a trailer or a Youtube video for example the lights wont turn off. By editing one of the config files I set the video length threshold to an hour so it basically only turns the lights off if Im watching a movie and doesn’t if Im watching a TV episode.

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [November 18, 2015, 8:31pm UTC](https://forums.plex.tv/t/deprecated/119267/14 "2015-11-18T20:31:01Z")

</div>

Interesting application. Rather than giving users an option to arbitrarily set a time length a file should be I’d be more comfortable writing logic to determine the source of the play and allowing the user the option to black-list certain sources. Another option would be to specify which libraries it activates for.

---

<div class="post-metadata">

**Author:** ![EthanSpitz](https://avatars.discourse-cdn.com/v4/letter/e/848f3c/32.png) [@EthanSpitz](https://forums.plex.tv/u/EthanSpitz)\
**Post date:** [January 13, 2016, 10:42pm UTC](https://forums.plex.tv/t/deprecated/119267/15 "2016-01-13T22:42:50Z")

</div>

I’m excited to give this a shot!

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [January 30, 2016, 3:03pm UTC](https://forums.plex.tv/t/deprecated/119267/16 "2016-01-30T15:03:58Z")

</div>

I’m in the process of converting this into a plex channel so it’ll run right inside Plex. Hope to have a working prototype in a few hours with a release in the next couple of days. I’ll be migrating this over to the plugin forum at that point so I’ll point all of you that way.

---

<div class="post-metadata">

**Author:** ![vanstinator](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/vanstinator/32/80946_2.png) [@vanstinator](https://forums.plex.tv/u/vanstinator)\
**Post date:** [February 4, 2016, 1:28am UTC](https://forums.plex.tv/t/deprecated/119267/17 "2016-02-04T01:28:46Z")

</div>

Future support will be available here: [https://forums.plex.tv/discussion/205647/rel-wink-channel-for-plex](https://forums.plex.tv/discussion/205647/rel-wink-channel-for-plex)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:52pm UTC](https://forums.plex.tv/t/deprecated/119267/18 "2020-01-08T19:52:18Z")

</div>


