I've created a plugin for plex home theatre.
GitHub url is:
Source and binary:
https://github.com/ToonDoom/PlexPlugin/releases/tag/1.0
I'll add an attached with the plugin when I'm back at the Mac.
Currently it just monitors state of plex clients to allow triggers. For example when a movie/tv show is paused or played. I created this as my use case is to raise the light brightess when media is paused.
To use configure the url and port at the plugin level. Then add devices for each plex client. When adding a client you need to start playing media (can be paused) so that the plex client machine Id can be captured (the plex api only returns info on clients that are currently playing media).
You don't need plex pass to use this as they exposed this apis use to everyone a couple weeks back.