Plex Webhook

Hello,

I’m new to Home Assistant, and everything is confusing at the moment ^^.

So, I’ve setup lights and I have a plex server (not localy) and I’d like to dim some lights when a movie is played.
The plex intergration doesn’t seems to work well, so i found a github project : GitHub - JBassett/plex_webhooks: Plex Webhook support for Home Assistant
But I got an error.
I added the Repository in HACS, and then installed the script. I can see the folders.
In the setup they ask to add in the configuration.yaml this line

plex_webhooks:
   webhook_id: plex_webhook

Where plex_webhook is the webhook name of my automation I presume?
But when I check the configuration I get :

Integration error: plex_webhooks - Integration ‘plex_webhooks’ not found.

I’m good with Python, so I though i could just create a webhook and then send all the data into a python script, but python_script is limited, and I couldn’t find a way to start a specific pyscripts, it seems to reload all of them…

Could someone light me in this darkness :slight_smile:

Thank you

You have to restart after installing from HACS but before adding to your configuration, so that HA is aware it is installed.

I did it mulitples times. Still the same error…

Did you check the HA log for errors regarding that custom integration?

1 Like

Okay, so reinstalled it.
Logs are ok, but i saw an older error :

[homeassistant.loader] The custom integration ‘plex_webhooks’ does not have a version key in the manifest file and was blocked from loading. See Custom integration changes | Home Assistant Developer Docs for more details

When to the link, seems I need to add “version” : “1.0.0” to the manifest in order to be accepted to the new requirements of HACS integration.
I just did it, and restarted the server.

And now, adding the line :

plex_webhooks:
   webhook_id: plex_webhook

Seems to be valid! Thnak you :slight_smile:

So adding :

"version": "1.0.0"

to the manifest of the integration fixed it

Wow. That’s a very old integration. That requirement is there for years…

4 years old :sweat_smile:
But it works fine. Just finished to setup some automation. Not the easiest to understand in the beggining but now I’m all good

I’m fiddling with the same integration. What’s your automation looking like? I’m trying to filter the incoming webhook with no success.