This repo's intended purpose has been met by homebridge-plex-sensors.I recommend it in place of this package. The code here is still a decent starting point if you want to map a plexwebhook to some other form of web request, but it is not super useful in its current state.
In order to run this app:
npm install
.http://localhost:12000/
to your plex server (the port is configurable)homebridge
and homebridge-http-webhooks
npm install -g homebridge homebridge-http-webhooks
In ~/.homebridge/config.json
:
"platforms": [
{
"platform": "HttpWebHooks",
"webhook_port": "51828",
"sensors": [
{
"id": "plexContact",
"name": "Plex Webhook Contact Sensor",
"type": "contact"
}
]
}
]
This script filters for a specific player before hitting the homebridge webhook. To determine the player:
DEBUG=plex*\
ACCESSORY=plexContact\
PLEX_WEBHOOK_PORT=12000\
HB_WEBHOOK_URL=http://localhost:51828/\
node index.js
uuid
for the player<PLAYER_UUID>
with the copied player uuid
in the command in the Run section.pNow run the script with the PLAYER
argument:
DEBUG=plex*\
ACCESSORY=plexContact\
PLEX_WEBHOOK_PORT=12000\
HB_WEBHOOK_URL=http://localhost:51828/\
PLAYER=<PLAYER_UUID>\
node index.js
From now on, when you toggle the plex play state from the PLAYER
, you should see the contact sensor state update in the iOS 10 Home app. Using the Home app, you can create Automation rules based on these changes.
Thanks to plexinc/webhooks-home-automation.
Plex Plugin for Homebridge Use the active sessions on your Plex server as a sensor in Homebridge. Enable your cozy cinema light scene when Plex starts playing and go back to your normal lighting when
Homebridge Sensors for Plex This plugin for Homebridge adds sensor(s) to HomeKit that are triggered by Plex playbacks. You can use these sensors to trigger HomeKit scenes when Plex starts and stops pl
homebridge-mysmartblinds-bridge Homebridge plugin which communicates with MySmartBlinds through the MySmartBlinds Smart Bridge. Configure your blinds and bridge with the official iOS or Android app fi
homebridge-http-lightbulb Plugin homebridge-http-lightbulb is a Homebridge plugin with which you can configureHomeKit light bulbs which forward any requests to a defined http server. This comes in han
homebridge-http-switch Plugin homebridge-http-switch is a Homebridge plugin with which you can configureHomeKit switches which forward any requests to a defined http server. This comes in handy when y
Homebridge HTTP TV Plugin A Homebridge plugin to let you control your TV (or a bridge server) using HTTP Features Exposes a HomeKit TV accessory Characteristics changes trigger HTTP requests to user-d