lprhodes / homebridge-apple-tv

Apple TV 4th & 5th gen plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
105 stars 15 forks source link

Is this still coming? #4

Closed RickHOZ closed 6 years ago

RickHOZ commented 6 years ago

Any idea if this is still coming?Any alternatives/

xlrx commented 6 years ago

Meanwhile you can take a look at homebridge-dacp.

Kyle1519 commented 6 years ago

Bump this for the author. Any info on a possible release? Thanks!

evandcoleman commented 6 years ago

This plugin should be pretty trivial to build using node-appletv

lprhodes commented 6 years ago

I'll be starting work on it one day this week.

epheterson commented 6 years ago

Apparently this is an active implementation of the dream: https://github.com/edc1591/homebridge-theater-mode

Edit: Actually, it's an interesting idea but not quite what this project was about. That project is only a theater mode, where lights can react to what your Apple TV is doing. It has no ability to control the Apple TV, which is what this project should enable (as well).

Kazom commented 6 years ago

wait so this doesn't actually work?

lowbatteries commented 6 years ago

Second line in the description: "Note: This is just a placeholder while I work on the plugin."

Kazom commented 6 years ago

@lowbatteries I thought he meant placeholder of that area in the description šŸ˜‚. So what the heck did I just download on my pi? install -g homebridge-apple-tv

added 11 packages

lowbatteries commented 6 years ago

I have it installed on my pi too. Installed it without reading too closely. :)

lprhodes commented 6 years ago

Working on it currently. Let me know if there's specific use cases you want me to support

leoneleone commented 6 years ago

@lprhodes Use Cases:

  1. Access to all main functions (buttons) on ļ£ætv remote - including implementation for basic Right/Left/Up/Down and Enter functions.

Ideally as 1x Accessory with multiple Switches with revert back to OFF after being turned ON (momentary switches) for each Remote function. These can then be Grouped in the Home.app (if they appear as separate HomeKit switches) under a group named ā€œApple Tv Remoteā€ or ā€œApple Tv Commandsā€. The user can then use these individual ā€˜momentaryā€™ switches to send the Remote functions to the Apple TV. Example: Apple TV Remote (Device/Accessory/Group):

Siri Commands: Seeing as the switches will revert back to the OFF position. You can simply call out the name of the switch (button) and Siri will send the command to the Apple TV. Example: ā€œHey Siri, Apple TV Playā€, ā€œHey Siri, Apple TV Menuā€ there is no need to use the words ā€˜turns onā€™ to toggle the command or switch, and if the switch itself automatically revert to OFF position, then all you have to do is use the same Voice Command by calling out ā€œHey Siri, ā€˜button/switchā€™ nameā€ for consecutive voice commands.

*if ā€˜Apple Tv Playā€™ is too confusing for Siri the Name of each individual switch can be prefaced by ā€˜ATVā€™

  1. A writable text (string) field which can be used in HomeKit apps like Elgato Eve for search field entries.

  2. Some way to have access to opening ļ£ætv apps directly using one Switch or Command in HomeKit??

lprhodes commented 6 years ago

Thanks for that. It should cover all of that except potentially the Siri commands. You have to specify that a switch be turned on I thought?

leoneleone commented 6 years ago

@lprhodes No, you do not need to specify that a switch be turned On. Siri Voice Command will turn on the switch if you simple say itā€™s Name. I have tested this with various HomeKit switches I have. You do have to specify a switch be turned OFF however, but seeing as the switches will turn off automatically (to simulate a button), you will never need to use Siri Voice Command for that šŸ˜Š

If you already have any HomeKit switches as part of your setup, please test this to confirm for yourself šŸ‘šŸ¼

I mainly use Siri Voice Command via my HomePod to execute HomeKit actions, very rarely use an app for control, and truly believe that Siri Voice Commands is where the power of HomeKit can be seen. Until ļ£æ decides to support ā€˜Remote Controlā€™ devices, the multiswitch Accessory/Device (Array of momentary switches) method is the way to go for creating DIY HomeKit ā€˜Remotesā€™ šŸ˜‰ The ease of Siri Voice Command control of the ā€˜Remoteā€™ would rely entirely on the naming of the individual momentary switches in the array šŸ™šŸ¼

leoneleone commented 6 years ago

@lprhodes

I think this Siri Voice Command trick should be mentioned in the README once youā€™ve completed the plugin, because it is very useful šŸ˜

lprhodes commented 6 years ago

Anyone managed to get node-appletv working? I'm getting "Timed out waiting for crypto sequence 2" which is preventing further development.

evandcoleman commented 6 years ago

Post an issue on the node-appletv github with some more info and Iā€™ll help you out

lprhodes commented 6 years ago

Thanks @edc1591 - I posted an issue. Just doing some debugging on this end.

Kazom commented 6 years ago

Will this support seeing the Apple TV state and triggering actions off of it. I.e. Hit the pause button, HomeKit reacts by turning on dim lights.

evandcoleman commented 6 years ago

@Kazom that is what my homebridge-theater-mode plugin does.

Kazom commented 6 years ago

@edc1591 awesome, I saw your project before but I thought you had to actually trigger the actions on the Apple TV 'button' yourself in the home app. Glad to know it's actually reading the states!

jlian commented 6 years ago

Will this support detecting if the Apple TV is asleep/standby vs on? And will this support turning on/off the Apple TV?

lprhodes commented 6 years ago

Yes we can detect if itā€™s asleep or not. Turning on just requires any command to be sent. Turning off will currently require navigating to the Sleep menu in settings but support for a proper sleep command shall be coming in a next couple of months.

Sent with GitHawk

epheterson commented 6 years ago

Couldn't you do a macro to hold the TV button, then press sleep? Might be faster than navigating to Settings.

lprhodes commented 6 years ago

Iā€™m pretty much done with the plugin. Just need to write he documentation of the weekend. Unfortunately it doesnā€™t work with the just-released 11.3 so you may want to hold off upgrading for now.

Sent with GitHawk

lprhodes commented 6 years ago

@epheterson thereā€™s no way to do long press currently

Sent with GitHawk

evandcoleman commented 6 years ago

@lprhodes thereā€™s a command to suspend the Apple tv

epheterson commented 6 years ago

I just saw a push today, is it working!? Still only pre-11.3?

lprhodes commented 6 years ago

Initial release is out - 11.3 issue was fixed by @edc1591 šŸ‘

Kazom commented 6 years ago

@lprhodes documentation is broken for config.json example: https://lprhodes.github.io/homebridge-apple-tv-slate/config-sample.json