deprecated

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

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.

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

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

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

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…

@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!

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.

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

@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 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 !!

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

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.

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.

I’m excited to give this a shot!

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.

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