If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
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] PlexWink - Control your Wink and/or Philips Hue smart lights with Plex!

vanstinatorvanstinator Plex Voice ControlPosts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
edited September 2016 in Plex Channel Plugins

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 considered stable I'll push it to the UAS

Grab the latest 3.X.X release from the Unsupported App Store v2 or from https://github.com/vanstinator/PlexWink.bundle/releases

Major changes in this release. Lights, devices, and users are no longer configured via the channel settings. Logic is now contained in "rooms" that are dynamically created. See following text for instructions. Please post if you need help.

PlexWink is a Plex Channel that is designed to give Plex control of your home's smart lighting capabilities. The channel will monitor your Plex server for play criteria that you set up with the channel. If any of the criteria are met PlexWink will turn your lights off when Plex is playing a media item and will turn them back on when you are finished.

The channel logic is designed around the concept of a room. A room is just a collection of lights and clients. If you have multiple rooms in your home where you use Plex the channel supports that too! PlexWink can create and store as many rooms as one needs.

Creating a Room

To create a room in PlexWink click Create a Room and fill in the text field with the desired room name.

Plex Web will not show this button. Instead text must be entered in the search field. From the home screen of PlexWink type in the name of the room being created into the search field and hit enter.

PlexWink will take you back to the home screen of the channel where there will now be a button with the name of the new room you just created.

Adding lights and devices

Navigate to the home screen of PlexWink and click on the room that is to be configured. On the next screen click on Select lights. A list of the Wink light groups will be displayed. Select the groups you would like to trigger for this room. After selecting the lights click Select devices and select the devices that are in the room. These devices will determine whether or not Plex controls your lights when media playback is detected.

Support

Support is available on the Plex forums. Please do not open an issue on GitHub unless told by me or you have done sufficient technical analysis. I will close any issues that are not technical in nature. The forum thread where support can be had is https://forums.plex.tv/discussion/205647/rel-plexwink-control-your-wink-smart-lights-with-plex

Requirements
* A current version of PMS
* A Wink or Philips Hue Smart Hub and some at least one bulb
* At least one group configured in Wink or Hue

The config is pretty simple. Fill out your plex login credentials, your wink credentials, and your wink API credentials. You can get the API keys by emailing support@winkapp.com.

Roadmap
* Fix bugs

Changelog 3.1.1 - 9/14/2016
* bug-fix - Fixed bug where unused service providers may cause channel to not load
* bug-fix - plex status api would return 404 due to the site redesign

Changelog 3.1.0 - 3/10/2016
* new - Philips Hue support
* new - onscreen instructions for Plex Web users just starting out
* new - icons for editing room functions
* change - devices page now only shows devices that claim to be players
* bug-fix - removing light groups was breaking
* bug-fix - invalid Wink credentials would cause the plugin to not load in certain cases

Changelog 3.0.1 - 3/4/2016
* bug-fixes around simultaneous plays from shared users interfering with lighting logic

Changelog 3.0.0 - 3/2/2016
* Complete re-write of Wink integration
* new smart home module loader
* dynamic room building
* saves rooms to disk
* multiple room support

Changelog 2.0.0 - 2/3/2016
* PlexWink is now a channel

Changelog 1.2.0 - 10/27/15
* 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

Changelog 1.1.0 - 10/22/15
* adding option for multiple plex client triggers
* option for multiple authorized user triggers
* option for multiple wink lighting groups

Changelog v.1.0.1
* adding config option for the plex IP and PORT

Projects I currently develop or maintain

Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

«13

Comments

  • EthanSpitzEthanSpitz Posts: 11Members, Plex Pass Plex Pass

    Working on getting my API key, I'm interested in helping with development.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Excellent! I'm getting started on a refactor of the code as I made quite the mess converting it to a Plex plugin. When that is complete I will gladly start to take some submissions!

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Just picked up one of these full color bulbs. I've got some ideas on ways to implement color, but I'd also like some suggestions from anyone actively using the plugin!

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Major new release. You can get it on the UAS or https://github.com/vanstinator/PlexWink.bundle/releases/tag/3.0.0

    Changelog 3.0.0
    * Complete re-write of Wink integration
    * new smart home module loader
    * dynamic room building
    * saves rooms to disk
    * multiple room support

    Please see the readme on GitHub or the first post for full details. This release is big and will require manual interaction to set it up.

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    Will this ever support API v2 Keys? I requested keys and they sent me over v2 Keys. I sent back an email to see if I can accquire v1 keys so we will see! Looks like an awesome project.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Yes it will. There was unfortunately no official announcement. They quietly launched the new API a few weeks ago and I randomly stumbled across it while looking up the docs for some color stuff I was playing around with. I wasn't aware they were no longer giving out v1 keys. I haven't had time to go over it yet, and I've only just put in a request for keys. I'll see what I can do over the weekend so that new users such as yourself can get started!

    Sorry about this. Had better communication come from Wink I'd have been on top of this and incorporated it into my latest changes I recently released.

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Can you try it with the v2 keys? I'm looking at the documentation and it looks like it might just work. They didn't change the endpoint or urls, in fact it looks like they just addedd functionality if anything. I can't test it until I have my keys obviously but if you wouldn't mind running it with yours that would be helpful.

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Small bugfix release

    Changelog 3.0.1
    * bug-fixes around simultaneous plays from shared users interfering with lighting logic

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    Hi Vanstinator,

    I tried it the other night and it didn't seem to be working. I'll try again right now and let you know.

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    Doesn't seem to be working, I put in all my credentials but no options are showing when I click into the channel.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Are you using Plex Web? Type a room name into the search field. I need to clear up the instructions a bit more on that.

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    I see, i was able to add a room but when I went to select lights and a player nothing happened?

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    was actually able to add a player but when I try to add lights I get this:

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    SOLVED: looks like i had the wrong password for wink, it now shows the groups! will test to see if it works when I get home!

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    Awesome! And yes the messaging for errors still needs work. That area of the code is a mess

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • grahamtaustingrahamtaustin Posts: 14Members, Plex Pass Plex Pass

    An amazing feature would be to toggle lights back on at the end / or pause, of a movie. Great project.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    They should turn back on. I'm not home at the moment but I was watching show with my wife yesterday and they did just that. Are you running the latest version? I patched a bug yesterday where if multiple people were watching something it'd fail to trigger.

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee

    New stuff! This is a beta release and not yet available via the unsupported app store. Please install manually. https://github.com/vanstinator/PlexWink.bundle/releases/tag/3.1.0b

    Changelog 3.1.0beta
    * new - Philips Hue support
    * new - onscreen instructions for Plex Web users just starting out
    * change - devices page now only shows devices that claim to be players
    * bug-fix - removing light groups was breaking
    * bug-fix - invalid Wink credentials would cause the plugin to not load in certain cases

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • vanstinatorvanstinator Plex Voice Control Posts: 690Members, Plex Employee, Plex Pass, Plex Ninja Plex Employee
    edited March 2016

    3.1.0 has been moved to stable and is available via the Unsupported App Store

    Changelog 3.1.0
    * new - Philips Hue support
    * new - onscreen instructions for Plex Web users just starting out
    * new - icons for editing room functions
    * change - devices page now only shows devices that claim to be players
    * bug-fix - removing light groups was breaking
    * bug-fix - invalid Wink credentials would cause the plugin to not load in certain cases

    Projects I currently develop or maintain

    Classic Forum for Plex - A forum skin that aims to replicate the classic forum experience as best as possible without taking away some of the better things about the new forum.

    PlexWink - A Plex Channel that monitors Plex and controls your smart lights based on playback.

    UASViewer - A Plex Channel for the Unsupported App Store that lets you browse channels right from Plex.

  • TornadoContestTornadoContest Posts: 122Members ✭✭

    Will this work with my Quirky Aros AC that can be controlled by the Wink iOS App?

«13
Sign In or Register to comment.