Skip to content

Integration from Plex to SmartThings, notifying a smartapp when media starts playing on Plex.

License

Notifications You must be signed in to change notification settings

appiekap653/Plex2SmartThings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plex2SmartThings

Integration from Plex to SmartThings, notifying a smartapp when media starts playing (or pauses/stops) on Plex.

Requirements

How to install it

1. Create the SmartApp

  1. Go to https://graph.api.smartthings.com/ide/apps and create a new SmartApp.

  2. Fill out the required fields.

  3. Replace the generated app source code with the code from the file SmartApp_Source.groovy.txt.

  4. Save and publish the app for yourself.

  5. Either configure the app online and note down the API Token and API Endpoint values, or install the app through the SmartThings app and click Api Information to find the token and endpoints.

2. Configure the Plex2SmartThings application

  1. Compile the Plex2SmartThings application.

  2. Open the config.config file.

  3. In config/smartThingsEndpoints fill in your API token and endpoint urls. Be sure to keep the /statechanged/on* at the end of the urls.

  4. 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.

  5. If you have Plex Pass users with PINs be sure to append your plex_token to the end of the url in the step above. (e.g. http://localhost:32400/status/sessions?X-Plex-Token='myPlexToken'). To find your plex token follow this guide.

  6. Configure the rest of the file to your likings.

3. Run Plex2SmartThings

You can now run Plex2SmartThings 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.

About

Integration from Plex to SmartThings, notifying a smartapp when media starts playing on Plex.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 58.7%
  • Groovy 41.3%