在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lukasroegner/homebridge-philips-hue-sync-box开源软件地址:https://github.com/lukasroegner/homebridge-philips-hue-sync-box开源编程语言:JavaScript 100.0%开源软件介绍:homebridge-philips-hue-sync-boxHomebridge plugin for the Philips Hue Sync Box. The Sync Box can be exposed as a lightbulb. The following features are supported:
The Sync Box can be exposed as a switch. The following features are supported:
You can also enable additional TV accessories that support:
Each of the additional TV accessories supports the iOS remote widget:
Additionally, each TV accessory can have an integrated lightbulb with support for:
Important: TV accessories must be added to HomeKit manually, the logs show the pin for adding them (should be the same pin as for the plugin). InstallationInstall the plugin via npm: npm install homebridge-philips-hue-sync-box -g Prepare Sync BoxYou have to create new credentials to communicate with the Philips Hue Sync Box:
Hints:
Configuration{
"platforms": [
{
"platform": "PhilipsHueSyncBoxPlatform",
"syncBoxIpAddress": "<SYNC-BOX-IP-ADDRESS>",
"syncBoxApiAccessToken": "<ACCESS-TOKEN>",
"defaultOnMode": "video",
"defaultOffMode": "passthrough",
"baseAccessory": "lightbulb",
"tvAccessory": false,
"tvAccessoryType": "tv",
"tvAccessoryLightbulb": false,
"modeTvAccessory": false,
"modeTvAccessoryType": "tv",
"modeTvAccessoryLightbulb": false,
"intensityTvAccessory": false,
"intensityTvAccessoryType": "tv",
"intensityTvAccessoryLightbulb": false,
"entertainmentTvAccessory": false,
"entertainmentTvAccessoryType": "tv",
"entertainmentTvAccessoryLightbulb": false,
"isApiEnabled": false,
"apiPort": 40220,
"apiToken": "<YOUR-TOKEN>"
}
]
} syncBoxIpAddress: The IP address of your Philips Hue Sync Box. syncBoxApiAccessToken: The access token that you get while registration. defaultOnMode (optional): The mode that is used when switching the Sync Box on via HomeKit. Defaults to defaultOffMode (optional): The mode that is used when switching the Sync Box off via HomeKit. Defaults to baseAccessory (optional): Determines the type of the base accessory for the Sync Box. Defaults to tvAccessory (optional): Enables a TV Accessory for switching the inputs of the Sync Box. Defaults to tvAccessoryType (optional): Type of icon that the Apple Home app should show. Possible values are tvAccessoryLightbulb (optional): Enables an integrated lightbulb for the TV Accessory for switching the inputs. Defaults to modeTvAccessory (optional): Enables a TV Accessory for switching the modes ( modeTvAccessoryType (optional): Type of icon that the Apple Home app should show. Possible values are modeTvAccessoryLightbulb (optional): Enables an integrated lightbulb for the TV Accessory for switching the modes. Defaults to intensityTvAccessory (optional): Enables a TV Accessory for switching the intensity ( intensityTvAccessoryType (optional): Type of icon that the Apple Home app should show. Possible values are intensityTvAccessoryLightbulb (optional): Enables an integrated lightbulb for the TV Accessory for switching the intensity. Defaults to entertainmentTvAccessory (optional): Enables a TV Accessory for switching the entertainment area of the Sync Box. Defaults to entertainmentTvAccessoryType (optional): Type of icon that the Apple Home app should show. Possible values are entertainmentTvAccessoryLightbulb (optional): Enables an integrated lightbulb for the TV Accessory for switching the entertainment areas. Defaults to isApiEnabled (optional): Enables an HTTP API for controlling the Sync Box. Defaults to apiPort (optional): The port that the API (if enabled) runs on. Defaults to apiToken (optional): The token that has to be included in each request of the API. Is required if the API is enabled and has no default value. APIThis plugin also provides an HTTP API to control some features of the Sync Box. It has been created so that you can further automate the system with HomeKit shortcuts. Starting with iOS 13, you can use shortcuts for HomeKit automation. Those automations that are executed on the HomeKit coordinator (i.e. iPad, AppleTV or HomePod) also support HTTP requests, which means you can automate your Sync Box without annoying switches and buttons exposed in HomeKit. If the API is enabled, it can be reached at the specified port on the host of this plugin.
The token has to be specified as value of the
API - GETUse the
The response is a JSON response, the following properties are included:
API - POSTUse the
The body of the request has to be JSON and can contain any/some/all of the following values:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论