Webhooks for player, regardless of server

Hi, I’m not sure if I’m being dense, but I have been using the JSON RPC in Rasplex previously to trigger home automation task for my Living Room player, and was under the impression that webhooks with the Plex Media Player would provide me with equal functionality.

But given my current understanding, webhooks are only sent from my local server, when stuff is streamed from my local server. In the event that I play stuff from a remote server, no webhook is actually called, or it is called from the remote server which I can’t configure. Also, the remote server would not have the possibility to hit webhook endpoints that are on my local LAN anyway.

Is this actually the intended design? It seems a bit flawed, since it explicitly talks about home automation, but in my experience automated task has more use on a player basis, rather than on a server basis.

The current tasks that I actually do is dim my hue lights and switch the input to TV on the audio system when playback starts. I would think that is a pretty trivial and not very exotic example.