Homebridge plugin that allows you to turn on and turn off AppleTV (Gen 4 and newer) with real On/Off status
npm install homebridge-appletv-onoff-switchThe code delivered AS-IS, due to lack of time I am not planning to provide any support, feel free to do with it whatever you want. :)
* Apple TV will be presented as a TV device in Home.app
* Apple TV will report a real On/Off status. Status is based on logicalDeviceCount, not a bulletproof solution, but currently is the best I've found.
1. Install homebridge (if not already installed) using: npm install -g homebridge
2. Install this plugin using: sudo npm install -g homebridge-appletv-onoff-switch --unsafe-perm
3. Pair your node-appletv-x with your Apple TV using: /
For example: /usr/lib/node_modules/homebridge-appletv-onoff-switch/node_modules/node-appletv-x/bin/appletv pair
4. Update your configuration file. See below for a sample.
````
"accessories": [
{
"accessory": "appletvswitch",
"name": "
"credentials": "
}
],