grover / homebridge-dacp

Remotely control Apple TV and iTunes via HomeKit.
MIT License
152 stars 15 forks source link
appletv automation dacp home-automation homebridge homebridge-plugin homekit itunes

Homebridge DACP

This platform plugin enables Homebridge to control devices or programs, which implement DACP. Examples of programs or devices that can be controlled by this plugin are Apple TV and iTunes.

Any system capable of running Homebridge can be used to run homebridge-dacp. The only need is network access to the device or program in question. There is no need to run this on the same machine as iTunes to expose it via HomeKit.

homebridge-dacp provides volume control and play/pause controls via HomeKit. These can be used in conjunction with the homebridge-callmonitor plugin to pause media playback or to reduce the playback volume while on a phone call.

The Speaker service, which provides volume control and mute, can be disabled if it is not required - for example if the Apple TV is connected to an A/V receiver that is integrated with HomeKit via a different plugin.

Status

HitCount Build Status Node version NPM Version

Changelog

See the changelog for changes between versions of this package.

Documentation

Some asks for friendly gestures

If you use this and like it - please leave a note by staring this package here or on GitHub.

If you use it and have a problem, file an issue at GitHub - I'll try to help.

If you tried this, but don't like it: tell me about it in an issue too. I'll try my best to address these in my spare time.

If you fork this, go ahead - I'll accept pull requests for enhancements.

Contributors

This work is based on the work of others, see CONTRIBUTING for the credits.

License

MIT License

Copyright (c) 2017 Michael Fröhlich

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.