在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:evandcoleman/homebridge-theater-mode开源软件地址:https://github.com/evandcoleman/homebridge-theater-mode开源编程语言:TypeScript 100.0%开源软件介绍:homebridge-theater-mode
Overview
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! InstallationFollow 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 PairingThe pairing process makes use of the command line utility that ships with # 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 {
"accessory": "AppleTVTheaterMode",
"name": "Living Room Apple TV",
"credentials": "<credentials>"
} UsageTwo devices are added to your Home app by 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.
MetaYou can find me on Twitter @edc1591 Distributed under the MIT license. See |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论