[OBSOLETE] PlexPlus - Control Lighting with Plex Play Status

Hi John,

What have you got in the field “Player name, User or IP” under your Room “Basement”

And what have you got under the Last Event tab on the main page?

These are also case sensitive…

By the way if you still can’t work it out, take the latest version of the code from GitHub (I’ve just updated) open the Smart App with a Live Logging window open, and go in to the room and hit Done…

You should get something starting with this and about 8 more lines:

PlexPlus [Bedroom] >> App settings: [bTreatTrailersAsPause1:false…

If you can share that, I can probably tell you what’s wrong… but you are right the exe appears to be working fine :slight_smile:

Jake,

Thanks for the replY. I think you nailed it. I didn’t realize I needed to put the Player. Instead, for the IP, I typed the static IP of my server. Silly me for not reading correctly! I am changing it to the player info and will test it out. I’ll let you know!

No worries, as it is now built to handle a lot of different scenarios and requirements it has ended up getting quite complex so easy to get confused :slight_smile:

Just confirming that did the trick! It’s working great now! Thanks!

1 Like

Hi,

I just installed Plex Manager. The author suggested I also install PlexPlus. I followed the instructions and am going to install.

Maybe I am reading it wrong, but You want the server IP but then I can only pick 1 ST Media Player Device at a time? My thought was any time any 1 or several plex players are running and the phone rings pause Plex for example.

I’m the author of PlexPlus, Tom (iBeech) is the author of Plex Manager, be I frequent both threads :slight_smile:

You can ignore the IP address etc… If you go down to “ST Media Player Device” on the same page and you can just add the device you created in Plex Manager in this field…

IP etc is used if you use the Plex2Smartthings exe to generate the events…

1 Like

So can I have Alexa through ST launch a movie on Plex? Or pause a movie?

I don’t believe that there is any integration created to launch a movie, I just don’t believe this is possible in ST yet, although I don’t think it would be impossible, however there are other projects outside of ST that I believe can!

In terms of controlling play/pause/stop, you would probably need to use ask Alexa to trigger a piston in CoRE unless multimedia control is supported in Ask Alexa (I suspect that the dev may add it if requested) Plex plus is for actioning based on Plex state not for controlling Plex, Plex HT manager does the control side of things and doesn’t currently have Alexa support…

I have Core on my list to learn.

In this instance it should be very easy, you just need to create a ‘Do’ piston and then select a media player and an action, repeat for each play pause stop action per device.

However some good news, doesn’t look like you need to do this… if you add the device as a music player in Ask Alexa then this provides the control.

Just to be clear as well, normal Alexa doesn’t support this device type, this is why you would need to do it via Ask Alexa.

I am sorry, I am stuck here. I have the App ID and Access token (using the SmartApp Method) however I am not seeing Additional Requirements or where to enter the IDs to complete this step.

It’s the very next step in the guide after the bit you quoted?

But arent you using Plex Manager for polling? Or are you now using the exe? You only need to configure this if configuring the exe (a seperate application that needs to run on a computer)

That was what i wasn’t following. So if I am only using the app via ST I do not need the OAuth step?

Correct as I said in my earlier post you just need to add the media player device below the IP address box :slight_smile:

1 Like

Thanks!

I set up a room so that when I pause it turns the light in that room back on. I used this as a monetary option. However the input is slow to run the command and turns the light on and off within a sec I stead of leaving it on when paused and off when play.

The delay is likely to be caused because you are using the Plex Manager, this polls every 10 seconds for a change of state, so it could be up to 10 seconds before anything happens… the only way to avoid this is to adjust the polling in Plex Manager (not advised) or if you are running Plex server on a computer then move to the EXE approach above…

For the momentary option, I think you are using it incorrectly? This is meant for instances where scenes are triggered via a switch, momentary switches by their very design only go on briefly then back off, as they a momentary… if you just want to turn lights on then move the lights to either “Switches off when playing” which by default turn on when paused… or “adjust level of these bulbs”/“Adjust level and color of these bulbs” and specify the “Level On Pause”

However sounds like you may already have the pause value set, which is why you are seeting them come on then shortly after go off :slight_smile:

Hope that helps!

Pulling this in via the github integration.

Lower case was created successfully but the upper case failed (no given error):

smartapps/jebbett/PlexPlus.src/PlexPlus.groovy

Is the lower case one (plexplus.src/plexplus.groovy) the right one to use here?

Yeah use the lowercase only, when I saved initially it was in uppercase which was incorrect as ST pushes updates in lowercase and the whole thing gets confused :slight_smile:

:slight_smile: Thanks!

1 Like