A homebridge that exposes Apple TV devices to Homekit, along with it's current Power State, Playback State and Now Playing Information.
npm install homebridge-appletv-now-playingyaml
{
"platform": "AppleTvNowPlayingPlatform",
"debug": true,
"devices": [
{
"name": "Lounge Apple TV",
"credentials": "C8309D5A-4AAD-4338-8B45....",
"showTVAccessory": true,
"inputs": [
{
"name": "Netflix",
"index": 9,
"applicationId": "com.netflix.Netflix"
}
]
}
]
}
`
$3
platform: The identifier for the platform (AppleTvNowPlayingPlatform*).
debug [optional*]: Enables limited debugging.
* devices: A list of devices you would like to register with the platform.
* name: The name you would like to expose for the device.
* credentials: The credentials needed to authorise connection to the device.
* showTvAccessory: Expose a TV Accessory for the device.
* inputs: A list of applications (shown as inputs) for the TV Accessory.
* name: The application name.
* index: The location (index) of the application on your Apple TV home screen. For example, Netflix is at index 9 in this screenshot. !Apple TV Home Scree
* applicationId: The Application Bundle Id used to change current input when now playing information is changed.
Retrieving credentials
In order to retrieve credentials for your Apple TV, please follow these step
1. Execute the cli application bundled with this package from the package directory.
You should be able to run `npm root -g` to find the NPN installation location, or if you are using the Docker image from Oznu it should be `/homebridge/node_modules/homebridge-appletv-now-playing`
`
/path/to/homebridge-appletv-now-playing $ node .\bin\cli.js
`
2. Choose the device with which you would like to pair.
3. Enter the PIN shown on your device.
Example:
`
/path/to/homebridge-appletv-now-playing $ node .\bin\cli.js
Scanning for devices...
These Apple TVs were found:
1 : Lounge [C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680]
Pair with Apple TV (enter index) : 1
Attempting to connect to Lounge [C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680]...
Attempting to pair with Lounge [C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680]...
Enter PIN shown on Lounge [C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680] : 1234
Successfully paired with Lounge [C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680].
Please update your configuration with the following credentials for this device:
C8309D5A-XXXX-XXXX-XXXX-2F7F2E813680:27y934hj523843kj2432423j4234kj23423kj4234j......
``