在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mpbzh/homebridge-plex开源软件地址:https://github.com/mpbzh/homebridge-plex开源编程语言:JavaScript 100.0%开源软件介绍:Plex Plugin for HomebridgeUse 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 playback stops. InstallationYou install the plugin the same way you installed Homebridge - as a global NPM module: sudo npm install -g homebridge-plex If you don't have a Homebridge installation yet, head over to the project documetation for more information. ConfigurationThe plugin uses the following config values:
Typical config example: {
"accessories": [
{
"accessory": "Plex",
"name": "Plex",
"plex_token": "...",
"filter": [
{
"user": "your-plex-username",
"player": "your-favorite-player"
}
]
}
]
} Filtering SessionsPlex will show up in your Home app as an "Occupancy Sensor". You can use this sensor in any automation you like. Let's assume you have a home cinema with an Apple TV and the Plex app installed. You want to switch to your cinema light scene when you start watching a movie, so that all the lights dim down. Now you probably also have a smartphone or a tablet from which you occasionally stream a movie. To avoid these devices or even other users triggering the light scene in your home cinema, you can configure your sensor ignore everything other than the Apple TV. You can configure an array of objects (we'll call that object a "filter rule"), each containing either a If you define a filter rule only containing a Finding your user and player nameJust start a movie on the device you want to trigger the sensor and head over to the Plex web app. Navigate to Status -> Dashoard -> Current playback. Toggle "show details" on the top right and find the player name here: The |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论