Plex Webhooks

Thanks for doing this, however you only need Plex pass if you are using webhooks, you can also use an exe or polling, but webhooks is much easier.. :slight_smile:

1 Like

Got this working quite easily with my plex server.

@jebbett have you ever considered making a sister app for Emby webhooks?

Thank you so much

It's been mentioned before on the SmartThings version, but I don't use it and have plenty of other projects higher up my list.. anyone is welcome to take my code and make an emby version, although you have to be a little hacky for Plex so you'd probably strip out most of the code

1 Like

@jebbett Is there a way to get this to work with multiple plex clients simultaneously? I'm running PlexKodiConnect on my Shield and also have the standard plex app installed. I'd like to be able to trigger the lights with both of those apps, but it looks like you have to pick only one.

I go back and forth between Kodi (eye candy for guests) and Plex (stable high resolution audio support), but still want my lights to turn off when I press 'play.'

I'm just too damn lazy to ask "Hey Google, Turn off the Lights."

1 Like

Thanks for putting that together, flawless install

i cant login no matter what i do

app:8782020-02-29 03:24:36.414 am errorgroovyx.net.http.HttpResponseException: Unauthorized on line 319 (authPage2)

app:8782020-02-29 03:24:35.760 am warnnull

app:8782020-02-29 03:24:35.748 am warnHit Exception groovyx.net.http.HttpResponseException: Unauthorized on [uri:https://plex.tv/users/sign_in.json?user[login]=user&user[password]=password, requestContentType:application/json, headers:[X-Plex-Client-Identifier:PlexCommunicator, X-Plex-Product:Plex Communicator, X-Plex-Version:1.0]]

app:8782020-02-29 03:24:34.984 am debugGetting authentication token for Plex Server 10.0.0.26

i replaced my username and password but this is what i get when i try to log in

Setup two rooms this will do it.. otherwise setting the field to multiple as true should work I think?

1 Like

This implies that your login or password is incorrect, do you have Plex pass? Do you have special characters in your username or password?

So basically duplicate rooms with the same rules and just select the other Plex? Makes sense. Will give it a shot.

I'll poke around and see how to set the field to multiple. Don't recall seeing it before, and I'm not in front of a comouter. Is that a field/toggle or is that in the code?

No I'll check my login again

it works now but can you make a tile with the info on it

It's in the code, just search the code for the field name, in that line you can change it to multiple, I'm not sure why it's not TBH, but I can't guarantee it will work once you change it but no harm in trying

In theory it's possible, but I don't have the time at the moment

Changed the code to "multiple=true" in the MediaScene Child app code and it seemed to have implemented properly.

But it is not controlling my lights with the second player.

I didn't see any other "multiple" settings that I'd have guessed would matter. Should I be looking elsewhere?

Setting up separate rooms works, though. So I'm happy enough with that workaround.

image

No that will be the one, I'm guessing there is something in the code that needs to look at each device, so will need to update with loops, I was hoping it could be done without but I haven't looked at the code for ages.. will just have to do it with different rooms..

1 Like

will this display the movie name playing

1 Like

works for me. not like it was much work at all for me. took 5 mins.

what template am i supposed to use i get playing no matter if plex is on or not what am i doing wrong