Hi all,
I am trying to use a plex webhook to trigger different things, mainly a scene, in Smartthings.
I have created the rule and set up the URL in Plex and I can see the JSON file in the logs, however I have no idea how to use this data to trigger anything.
Is someone able to help?
Below is the data that is being received. The key data that i want to use is event media.play (pause, resume & stop) UUID to determine which device is being used and librarySectionType" “movie” (show)
[
{
"type": "event",
"subtype": "http",
"data": {
"source": "HTTP",
"params": {
"event": "media.play",
"user": true,
"owner": true,
"Account": {
"id": 12345678,
"thumb": "https://plex.tv/users/XXXXXXXX/avatar?c=XXXXXXXX",
"title": "Geoff Crane"
},
"Server": {
"title": "GC_Plex",
"uuid": "XXXXXXXX"
},
"Player": {
"local": false,
"publicAddress": "XXX.XXX.XXX.XXX",
"title": "Galaxy S23 Ultra",
"uuid": "XXXXXX-com-plexapp-android"
},
"Metadata": {
"librarySectionType": "movie",
"ratingKey": "92",
"key": "/library/metadata/92",
"studio": "Warner Bros. Pictures",
"type": "movie",
"title": "Blended",
"librarySectionTitle": "Movies",
"librarySectionID": 1,
"librarySectionKey": "/library/sections/1",
"contentRating": "au/PG",
"summary": "After a blind date gone horribly wrong, Jim and Lauren agree they never, ever want to see each other again. Well, that's all about to change when the two find themselves and their respective families (including children) all stuck together in one suite at an African Safari vacation spot."