All Projects → evandcoleman → homebridge-theater-mode

evandcoleman / homebridge-theater-mode

Licence: MIT license
A homebridge plugin to make your HomeKit devices react to the play/pause state of your Apple TV. Configured via the Home app.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to homebridge-theater-mode

homebridge-securitysystem
Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.
Stars: ✭ 114 (+39.02%)
Mutual labels:  homebridge, homekit
homebridge-simplisafe3
A complete Homebridge plugin for SimpliSafe 3.
Stars: ✭ 82 (+0%)
Mutual labels:  homebridge, homekit
hass config
My personal Home-Assistant configuration for my home.
Stars: ✭ 17 (-79.27%)
Mutual labels:  homebridge, homekit
homebridge-deebot
Homebridge plugin to integrate ECOVACS Deebot devices into HomeKit.
Stars: ✭ 39 (-52.44%)
Mutual labels:  homebridge, homekit
ESP8266-HomeKit-Air-Quality-Sensor-Elgato-Eve-Room
ESP8266 based  Homekit Indoor Air Quality sensor that acts like Eve Room🌱
Stars: ✭ 58 (-29.27%)
Mutual labels:  homebridge, homekit
AVPlayerItemHomeOutput
Coordinate the output of content associated with your HomeKit lightbulbs. #Ambilight
Stars: ✭ 38 (-53.66%)
Mutual labels:  homebridge, homekit
homebridge-blinds-cmd
🌅 Homebridge plugin to enable window blinds to be controlled by executing a command line.
Stars: ✭ 14 (-82.93%)
Mutual labels:  homebridge, homekit
homebridge-blinds
🌅 Homebridge Plugin to control my blinds over HTTP
Stars: ✭ 51 (-37.8%)
Mutual labels:  homebridge, homekit
homebridge-bravia-tv
Homebridge dynamic platform plugin for Sony Bravia Android TVs
Stars: ✭ 34 (-58.54%)
Mutual labels:  homebridge, homekit
homebridge-bravia-tvos
Homebridge plugin for Sony Bravia Android TVs
Stars: ✭ 293 (+257.32%)
Mutual labels:  homebridge, homekit
Homebridge-on-RaspberryPi
Example of Homebridge on RaspberryPi 3
Stars: ✭ 34 (-58.54%)
Mutual labels:  homebridge, homekit
homebridge-panasonic-air-conditioner
Panasonic Air Conditioner / Heat Pump plugin for HomeBridge using the Panasonic Comfort Cloud API to expose Panasonic Air Conditioners to Apples HomeKit
Stars: ✭ 32 (-60.98%)
Mutual labels:  homebridge, homekit
homebridge-zigbee
ZigBee Platform plugin for HomeBridge
Stars: ✭ 101 (+23.17%)
Mutual labels:  homebridge, homekit
homebridge-eveatmo
Homebridge plugin which adds a Netatmo weatherstation as HomeKit device and tries to act like Elgato Eve Room/Weather
Stars: ✭ 63 (-23.17%)
Mutual labels:  homebridge, homekit
homebridge-nature-remo-cloud-aircon
Homebridge Plug-in for Air Conditioner Managed by Nature Remo
Stars: ✭ 28 (-65.85%)
Mutual labels:  homebridge, homekit
homebridge-plex-sensors
Homebridge Sensors for Plex - a plugin for Homebridge to adds sensors triggered by Plex playbacks.
Stars: ✭ 110 (+34.15%)
Mutual labels:  homebridge, homekit
homebridge-pc-volume
Homebridge plugin to control your computer's volume using HomeKit and Siri
Stars: ✭ 55 (-32.93%)
Mutual labels:  homebridge, homekit
homebridge-z2m
Expose your Zigbee devices to HomeKit with ease, by integrating 🐝 Zigbee2MQTT with 🏠 Homebridge.
Stars: ✭ 197 (+140.24%)
Mutual labels:  homebridge, homekit
homebridge-cmd4-AdvantageAir
Catered shell script to integrate air conditioner control units by Advantage Air into HomeKit using the plug-in homebridge-cmd4.
Stars: ✭ 24 (-70.73%)
Mutual labels:  homebridge, homekit
homebridge-jablotron-alarm
Homebridge plugin for connecting Jablotron JA-100 alarm systems to Homekit.
Stars: ✭ 22 (-73.17%)
Mutual labels:  homebridge, homekit

homebridge-theater-mode

A homebridge plugin to make your HomeKit devices react to the play/pause state of your Apple TV. Configured via the Home app.

npm version License

Overview

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!

Installation

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.

Pairing

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>"
}

Usage

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")

Meta

You can find me on Twitter @edc1591

Distributed under the MIT license. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].