[Release] Plex Communicator V3

Sorry I didn't get notified of this! But you probably want your rule to say when x has been in status for x seconds and set it cancellable.

If you're still having the problem though let me know I might update the app to support it, a screenshot of the play states you are seeing would be useful as I may build the delay only for that scenario.

Thanks

Thank you for your reply. Unfortunately, I haven't yet fully mastered the creation of rules, which is a little more complex with Rules machine. Could you explain in a little more detail how to add the Wait & cancellable to my existing rule? Thank you very much for your help.

I believe you can now configure under the IF statement to say, IF it's at X for 3 seconds or similar

I am only getting information on the 3rd connection option. I did put the exact uri in Plex Webhooks but it would never update.

What am I missing?

Edit: Restarted my Plex server, all is fine now

1 Like

Hmm..

I have Plex servers I own on the East Coast and one here in AZ.

If it matters, there is a Site-to-site VPN joining the two networks. No ports are blocked between the two networks.

The local Plex server reports just fine

The East Coast server won't update the driver for my shield..

First, I tried one instance of the Plex Communicator app on the East Coast Plex server and, I have the play icon on the shield device I picked in the app.

I put the cloud uri in Plex Web and the info never shows.

Then, I tried a second instance of the app with the cloud uri in Plex Web Webhooks. It's reporting fine and dandy..

Either way, it seems that I just cannot get the driver to update anything playing on the East Coast server.

I see two issues here:

Using 2 instances of the PC app does not create a separate child device.

Something is blocking the east coast server from updating the driver.

I do have a Hubitat on the East Coast server farm, if I have to use it but it would be difficult to mirror to the AZ network. I'll try anything

Enable debugging and then play from the server, if the debug shows activity then the issue is likely on the Hubitat side, if it shows nothing then it’s on the Plex server side.

If nothing in debug, also provide details of how you are accessing the remote server, is it part of your main account, or are you connecting to it as a guest. I have a vague memory remote play from a server is not reported, you can test this by setting up webhook.site as an end point in Plex to see what Plex is sending

There is a Webhooks checkmark in network settings that was unchecked on that server.

All is fixed now.

Very cool.

Wonder what I'm going to do with it now :rofl::rofl::rofl:.

Webcore, mediascene, notifications.... So many things to try.

Is there a field in the Webhooks where it shows duration of movie?

I don't want to change my lights in some cases, and that would be easier determined by length.

This has been working fantastic until this weekend. All I keep getting now is Status code 401 reason phrase unauthorized.
I log into plex with google, so I'm not sure where to get my password for my plex server.
Plex has been making updates lately, did they change something?
Thoughts?

From what I can see, mine is working ok, so likely an issue related to using a Google login, I expect you can just add another login type. I’m on holiday right now so unable to look properly. Also how are you using it? Webhooks or a different method?

I'm using webhooks, but since I tried to redo the app and driver, I think the webhook link is no longer valid.
Everything I use on here, including my Plex Pass is linked to my Google login. Not sure how I'd create a new login on Plex and have it link to the app. And how as it worked until now is also a good question. I changed nothing on it, last weekend it worked, and this weekend it didn't. Very weird how it just quit.

I'm trying to track viewOffset to see if the program/movie is almost over, is there a way to make the Webhook refresh itself other than doing a play/pause action?

The web hook is generated by the app, so you can use the web hook and not actually need to login to Plex (I think) I think the Plex login is required to access some play info mostly for device detection, so most things will work without logging in, can’t see the code right now and wrote this a long time ago, just need to make sure the web hook in the app is what’s added to Plex

The web hook is entirely on the Plex side, so no I don’t believe you can, can’t remember if Plex sends periodic updates or not, but I guess even without, you’d just need to take the play time remaining and set a cron in Hubitat

I started getting unauthorized responses, so I basically tried to log in again.
The first thing the new app asks is to give your plex credentials from plex.tv and that's the part I can't get past right now. It's like it needs to open an authentication window like Overseerr does to authenticate with plex, rather than just asking for a login/password.

I got it.. Apparently there's another password on the server. I had to reset it, but I suspect i used a high security auto generated one. I got it working now. Thanks, Enjoy your holiday!

1 Like

I figured it out.

Added duration and viewOffet to your app then did this:


Still tinkering with what's better for my use case but this is enough to get it started.

Started to get a little deeper, now, I have this app/device working with a script that will tell me where the commercial markers are in milliseconds then turning the lights on in accordance (-60 seconds).

To get the credits markers, I had to use a script.

1 Like