[OBSOLETE] Plex Home Theatre Manager SmartApp

The server is not a player, so you can’t control it?

If you are using the web browser, this is not the server, this is just a “Plex For Web” instance…

For the error can you see what is happening in live logging? I think Tom merged in an old pull request I put in from a while back, but not sure of the difference between that one and the version I have locally…

0d04d83a-002a-4c93-8ce1-d96e19ce02cb 2:53:55 PM: error physicalgraph.app.exception.UnknownDeviceTypeException: Device type ‘Plex Home Theatre’ in namespace ‘ibeech’ not found. @ line 279
0d04d83a-002a-4c93-8ce1-d96e19ce02cb 2:53:55 PM: debug This PHT does not exist, creating a new one now
0d04d83a-002a-4c93-8ce1-d96e19ce02cb 2:53:55 PM: debug getChildDevices(false), children=0

You appear to be missing the device handler? Have you installed and published that as well?

I did but i recopied and pasted the DH. It is working now. Thanks!

1 Like

No worries :slight_smile:

So in order to get functionality outside of on or off status I need to bind this to Core right?

Yes CoRE or PlexPlus depending on what you want to do with it all

PlexPlus is specifically designed to manipulate scenes for Plex (you only need to install the PlexPlus SmartApp, you don’t need the exe or PP device handler…)

1 Like

Moving this to the right thread…

Does the control work directly from the device in SmartThings? There are issues with controlling some devices, so no point adding to CoRE if it’s not working directly… we are looking at potentially looking at rewriting the control element, but the Plex API is a bit dodgy!

No it works through harmony but harmony only supports one hub in Alexa (which it the reason for the workaround)

If the DHT isn’t sending the command then that’s where you need to look… @ph4r posted some updated code a few posts back, I’d see if that solves your issue… if not then you will need to wait for a new version that may work, but it’s possible your device doesn’t support HTTP control…

Also not sure if the below helps:

1 Like

Sorry just thinking about this @Krystm didn’t you find a better work around for 2 harmony hubs?

And Merry Christmas both!

1 Like

@iBeech - thanks for creating this, very polished and easy to set up. One question; I have a Gen 4 Apple TV and although status is reported accurately I can’t control it. I’m guessing this is because the Plex app for Apple TV doesn’t support HTTP Control? Is there anywhere this can be enabled as far as you know or is it a case of it just doesn’t support it?

Thanks again for a great tool!

Hi @Fenix24,

You may want to take a look at the version I have linked below, I think this specifically works with Apple TV…

Unfortunately the Plex API is shoddy and doesn’t seem to be consistently used across devices, both @ph4r and I have the intention of attempting to try to develop come code to handle the variation across devices, but I haven’t had the time to start looking at this and suspect @ph4r hasn’t either, it’s definitely on my list of things to look at as I want to be able to control Plex using Alexa, and the first step is to get the control working reliably, but having time to do this is the problem… I know @iBeech occasionally makes an appearance to approve some pull requests etc… but think he is pretty busy too…

1 Like

Hey guys, yes I am here, and I do see your posts, but as you said, I am very busy and have little time to put into the plex app. I will review and merge pull requests though :slight_smile: glad to see the community is alive here!

1 Like

I honestly can’t believe the responsiveness and resourcefulness of this community. Thanks for that Fork, I’ve installed it and it’s controlling Plex straight away.

It’s a real shame that the UK version of the SmartThings IDE doesn’t support pulling straight from GitHub so I’ve got to manually keep track of SmartApp versions - does anybody have a graceful solution for this yet or are we just waiting for the official integration to arrive?


@Fenix24 GitHub is working in the U.K. We just need to use a different site to setup. Check out this link:

SmartThings + GitHub Integration Issues

It works pretty slow though when you have integrated it all. The bet way to stop the page not showing when looking at smart apps or device handlers is to use your web browsers incognito Mode. For some reason everything loads perfectly then

1 Like

@Entityxenon - I did actually spend some time playing with it last week, since I am now trying to use PMP in another room and it does not work with the Server Posted commands, so I have been trying to use the client commands but it is failing on what appears to be an invalid message in the log. It reports that I am missing a key that I am explicitly sending, and I can even get to appear directly in the logs. I’ve been log stalking how various things handle the Remote Control function that the official iOS Plex App has which uses the subscribe and timeline functions to build a more robust connection. I plan to dig more into how to use this and process the callbacks (from one or more connections) into a DTH Directly. Until then, I have posted about my PMP concern on the Plex Forums with no response as of yet.

@ph4r Nice good to hear! :slight_smile:

Let me know if there is anything I can help with… I just don’t have the time to dedicate to it and work out what I need to do, but appears you are making some good progress, I have a Samsung Smart TV, Roku, ChromeCast, windows 10 App and Plex HT… so more than happy to test, debug or try and work out a solution where I can…

Take a look at the below link, it mentions this, so I think the latter may be required…

“Required Headers: X-Plex-Client-Identifier, X-Plex-Device-Name”

Although I think that you might actually be sending the wrong ID:

“All commands sent to a player MUST include a X-Plex-Client-Identifier header identifying the controller.”

I think currently you are identifying the player, rather than controller…

This is awesome and only took a second to configure. I was curious, is there any way that Smartthings could notify me what movie has started? This would allow me to know if my kids have started playing a movie, even when I told them not to (sometimes they sneak in the playroom). Also, it would let me know if they are watching an inappropriate movie. I have security controls in Plex, but they got my password one time and I didn’t’ know it. Considering you already show the movie title, I’m hoping a notification wouldn’t be too difficult. I may be missing something… if this is already possible please let me know. Again, thanks for the awesome work.