grover / homebridge-dacp

Remotely control Apple TV and iTunes via HomeKit.
MIT License
151 stars 14 forks source link

Accessory not supported #27

Open kapps7 opened 6 years ago

kapps7 commented 6 years ago

Hey guys. I have completed all the setup, all is running but I am getting 'Not supported in the Home app' on the accessory.

Did I miss something ? Thanks

kapps7 commented 6 years ago

Ok I added: "alternate-playpause-switch": true, and I can see it now appears as a switch but I am confused about using it. For example, I want to automate a sequence of buttons eg. menu, right, left. I have enabled input controls but I don't see them in the home app to start an automation. Thanks

grover commented 6 years ago

Have you seen: https://github.com/grover/homebridge-dacp/blob/master/docs/configuration/macros.md

You have to predefine the sequence of keys in the config and it'll create a Power Switch for the sequence. Unlike described on the page it should also work in Apple Home.

Also please take a look at https://github.com/grover/homebridge-dacp/blob/master/docs/configuration/features.md

You need set more flags if you want this plugin to work with Apple Home. I plan to add a cross reference table with compatibility lists for each App and example configurations exposing all features.

kapps7 commented 6 years ago

Thanks Michael. I'll play around with this. Have waited for a long time for a plugin like so thank you very much.

kapps7 commented 6 years ago

So this is what I am noticing with the below macro. The macro is designed to:

  1. Go to the home screen
  2. Go to the First app which is the TV app
  3. Go two apps to the right and then go up to use the top shelf items. It scrolls along the top shelf 9 times and presses select to select the stream

Issues:

  1. It doesn't go to the home screen and first app if I am somewhere else on the page
  2. When it scrolls and finds the stream in the top shelf, it doesn't execute select

"macros": { "9": [ "topmenu", "wait5s", "topmenu", "right", "right", "wait5s", "up", "right", "right", "right", "right", "right", "right", "right", "right", "right", "select"

Thanks

kapps7 commented 6 years ago

Any ideas with this one ?

grover commented 6 years ago

Macros are tricky to create. I start my macros with a sequence of topmenu, wait5s, left and up commands to make sure I'm on the main Apple TV screen on the top left.

kapps7 commented 6 years ago

Thanks I'll give that a go