Is it possible to listen to the PMP via websocket and receive events, like it is with the server?
I’m trying to write a small Eventghost plugin using Python which needs to be able to detect at least play, pause and stop, for trailers and movies. This is for automatic light control in my home theater.
I know this was possible with Plex for Home Theater, but has it been implemented to Plex Media Player?
home assistant and openzwave seem to be doing this, I can set up sceens that react to my plex setup, it sees my different plex clients and allows control of start/stop etc as well as showing what is playing where.
dont know if they are monitoring the server or the individual players however but that might be a place to look for answers …
home assistant is a python project so you my not want to reinevent the wheel its pretty good and its actively being developed
I’m really sorry for this late answer, but right after I asked this question I got seriously ill. When I recovered I had forgotten all about it.
Anyway, I needed to use Eventghost because I used it for several other automation events in my house, and I needed to separate the playback events for trailers and movies. I wanted to dim the lights halfway only when the trailers played, and all the way down for the movie.
Now that Plex has implemented webhooks, my question is not applicable anymore, and I’ve posted a feature request for separating trailers and movies.
Did you by chance figure out how to use the webhooks with EventGhost? I’ve experimented with the web server plugin, but it doesn’t handle the payload correctly.