Published using Google Docs
Plex2SmartThings - ReadMe
Updated automatically every 5 minutes

Create the SmartApp

  1. Go to https://graph.api.smartthings.com/ide/apps and create a new SmartApp.
  2. Fill out the required fields, and at the bottom of the app creation page be sure to enable OAuth by clicking the button "Enable OAuth in the Smart App".
  3. Note down the OAuth client id and secret. You will need both of them for later.
  4. Replace the apps generated source code with the code from the downloaded SmartApp_Source.txt. Remove any debug logging from the code if you don't want it.
  5. Save and publish the app for yourself.
  6. Configure the app and note down the API Token and API Endpoint values.

Configure the application

Open the config.config file.

In config/smartThingsEndpoints fill in your API token and endpoint urls.

Be sure to keep the /statechanged/on* at the end of the urls.

If plex and this application is not running on the same server then enter the url to the session status page of your plex server in the config/plexCheck/@plexStatusUrl attribute.

Configure the rest of the file to your likings.

Run the application

You can now run the application and the smartapp should be notified whenever any media plays on plex.

If anything isn’t working you can try enabling some extra debug output by adding the d1 or d2 arguments. E.g. running Plex2SmartThings.exe d1 from the command line.