A homebridge plugin to make your HomeKit devices react to the play/pause state of your Apple TV. Configured via the Home app.
homebridge-theater-mode
started as a pet project of mine. I loved using Plex's webhooks to control my Hue bulbs, but I wanted that to extend to other apps on my Apple TV.
To enable this project, I created node-appletv to communicate with the Apple TV. This uses a new protocol introduced by Apple with the 4th-generation Apple TV and there still isn't much out there about it. I did my best to reverse engineer the iOS Apple TV app to determine how it tracks the play/pause state, depsite the quirks I ran into with the new protocol.
Because of this, at times the plugin can be slightly slow to receive state changes, but it always does seem to settle out after a few seconds. It works well enough for me, so I hope it does for you, too!
Follow the steps below to pair your Apple TV after installation is complete.
# Install homebridge
$ npm install -g homebridge
# Install plugin
$ npm install -g homebridge-theater-mode
or add homebridge-theater-mode
to your install.sh
file.
The pairing process makes use of the command line utility that ships with node-appletv
. You must be on the same network as your Apple TV to pair.
# Install node-appletv
$ npm install -g node-appletv
# Scan for Apple TVs and follow the prompts
$ appletv pair
At the end of the process, you'll received a credentials string. This string should be input into the credentials
field in your config.json
entry for the Apple TV. See the example below or config.example.json for a practical use.
{
"accessory": "AppleTVTheaterMode",
"name": "Living Room Apple TV",
"credentials": "<credentials>"
}
Two devices are added to your Home app by homebridge-theater-mode
for each paired Apple TV.
The Theater Mode Switch is used to toggle theater mode on and off. It is recommend that you turn this off when you are done watching. This will prevent your lights from going crazy when you start AirPlaying music later. Each Apple TV gets its own Theater Mode switch.
The Apple TV Programmable Light Switch is used to define what should happen when theater mode is enabled and your Apple TV enters one of three states (playing, paused, and stopped). This programmable switch has three "buttons," one for each state. 3D touch on the programmable switch and tap details. You'll then be able to configure each of these three buttons. See below for which button is which.
Apple TV State | |
---|---|
Button 1 | Play |
Button 2 | Pause |
Button 3 | Stop (Tapping "Menu") |
You can find me on Twitter @edc1591
Distributed under the MIT license. See LICENSE
for more information.
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
Modern Forms Homebridge Plugin Add support for Modern Forms fans to Homekit using Homebridge. Prerequisites Have Homebridge setup Setup Add any fans you'd like to control to your home network. Downloa
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support
homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A
homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r
Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg