lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

API say ok but don’t work #35

Closed italoc closed 4 years ago

italoc commented 4 years ago

I’m trying API system with Siri shortcut, shortcut say OK but nothing happen

I use this JSON for test {"commands":[{"key":"topmenu"}]}

P.s:there is a way to run specific app from API (example run with unique ID com.app.test ?

lukasroegner commented 4 years ago

Siri shortcuts already provide native support to switch the Apple TV on/off and start a specific app.

The API of this plugin is helpful when you want to control the Apple TV via HomeKit Automations. I use the SSH action in HomeKit Automations to switch the Apple TV on:

curl -X POST 'http://localhost:40000/bedroom' -H 'Authorization: mysecrettoken' -H 'Content-Type: application/json' --data-raw '{"commands":[{"key":"topmenu"}]}'
italoc commented 4 years ago

Siri shortcuts already provide native support to switch the Apple TV on/off and start a specific app.

In tvOS 13 the method http://appletvip:3689/login?pairing-guid=SerialNumber# seems to be broken and don’t work, you know another method for start a specific app?

italoc commented 4 years ago

Sorry I have found the native option in shortcuts

Thanks