在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:alexjsp/homebridge-plex-sensors开源软件地址:https://github.com/alexjsp/homebridge-plex-sensors开源编程语言:JavaScript 100.0%开源软件介绍:Homebridge Sensors for PlexThis 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 playback. Automatically dim the lights when you start watching TV, or turn them off completely for a movie. With advanced HomeKit automations you can even trigger different scenes depending on the time of day. Plex Sensors uses Plex's webhooks feature to get notified by your Plex server immediately when playback starts and stops, without needing to constantly poll your server. Note: Because webhooks require Plex Pass for the Plex Media Server account, this plugin also effectively requires Plex Pass. InstallationYou can install this homebridge plugin with npm:
Go to the Homebridge page to read more about installing and configuring Homebridge. Setting up the WebhookFor this plugin to receive playback events, you need to add a webhook to your Plex account. You can do this by visiting: https://app.plex.tv/desktop#!/account/webhooks On that page, click Note: to work with Plex servers outside your local network you'll need to expose the address used to the outside world via port forwarding etc. ConfigurationPlex Sensors supports various configuration options to suit your needs, and runs as a homebridge platform so it can add multiple sensors for different types of playback. Your config for the platform should include a
Additionally, you can set the following settings globally, outside of the
Example ConfigsExample config with one sensor triggered by any Plex playback by your account or from your server: {
"platforms": [
{
"platform": "homebridge-plex-sensors.Plex",
"sensors": [
{
"name": "Plex Playing"
}
]
}
]
} Example config with a sensor triggered by TV show playbacks, and a sensor triggered by movie playbacks (both filtered to a specific user and player): {
"platforms": [
{
"platform": "homebridge-plex-sensors.Plex",
"sensors": [
{
"name": "Movie Playing",
"types": ["movie"],
"players": ["Living Room"],
"users": ["MyUserName"]
},
{
"name": "TV Playing",
"types": ["episode"],
"players": ["Living Room"],
"users": ["MyUserName"]
}
]
}
]
} Example config with a horror movie genre-specific sensor: {
"platforms": [
{
"platform": "homebridge-plex-sensors.Plex",
"sensors": [
{
"name": "Horror Movie",
"types": ["movie"],
"genres": ["Horror"]
}
]
}
]
} Example config with a sensor triggered only by playing the TV show Breaking Bad (also shows a custom port number being set for the webhook server): {
"platforms": [
{
"platform": "homebridge-plex-sensors.Plex",
"port": "22988",
"sensors": [
{
"name": "Breaking Bad is on",
"types": ["episode"],
"customFilters":
{
"Metadata.grandparentTitle": "Breaking Bad"
}
}
]
}
]
} Example config with the {
"platforms": [
{
"platform": "homebridge-plex-sensors.Plex",
"logSeenPlayersAndUsers": true,
"sensors": [
{
"name": "Plex Playing",
}
]
}
]
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论