homebridge-apple-tv-remote icon indicating copy to clipboard operation
homebridge-apple-tv-remote copied to clipboard

No longer working in tvOS 15

Open KibosJ opened this issue 4 years ago • 115 comments

I know it's a beta, just wanted to give a heads up that this doesn't work in tvOS 15

KibosJ avatar Jun 14 '21 15:06 KibosJ

Yea, I see this too. The plugin just logs

[6/13/2021, 7:04:55 PM] [Apple TV Platform] [Apple HB] Error while connecting: Error: Apple TV not found while scanning.
[6/13/2021, 7:04:58 PM] [Apple TV Platform] [Apple HB] Error while connecting: Error: Apple TV not found while scanning.
[6/13/2021, 7:04:58 PM] [Apple TV Platform] [Apple HB] Error while connecting for heartbeat: Error: Apple TV not found while scanning.
[6/13/2021, 7:05:02 PM] [Apple TV Platform] [Apple HB] Error while connecting: Error: Apple TV not found while scanning.
[6/13/2021, 7:05:09 PM] [Apple TV Platform] [Apple HB] Error while connecting: Error: Apple TV not found while scanning.

Trying to re-pair the device with appletv pair hangs after sending the initial DEVICE_INFO_MESSAGE.

jkreileder avatar Jun 15 '21 06:06 jkreileder

Yes, confirmed, can't pair also after tvOS 15 public beta 2. Any possible ideas? Thx @lukasroegner

njuart avatar Jul 01 '21 07:07 njuart

Did anyone manage to connect successfully? For me it also hangs after sending the initial DEVICE_INFO_MESSAGE. Looks like this project is on the hold and no longer supported. Sad, very useful one.

njuart avatar Jul 02 '21 07:07 njuart

Same, fails on tvOS 15 beta 2

MatGriffin avatar Jul 07 '21 08:07 MatGriffin

Confirmed also can't pair tvOS 15 beta 2

kdbaustert avatar Jul 07 '21 22:07 kdbaustert

@lukasroegner Any news for an update on this?

Christian-CFP avatar Jul 08 '21 18:07 Christian-CFP

I've been digging a bit, and it looks like issue is present also in pyatv project which is described here https://github.com/postlund/pyatv/issues/1168 @lukasroegner Something with MRP and Companion

njuart avatar Jul 09 '21 07:07 njuart

Same here, it's not even possible to detect an Apple TV

MsCopernic avatar Jul 17 '21 17:07 MsCopernic

I shouldn't have updated loll. Did the update accidentally and the problem occurs. Any news on this?

Aekung avatar Jul 20 '21 15:07 Aekung

+1

BrianTillman avatar Aug 01 '21 19:08 BrianTillman

Same with me Beta3

limey7291 avatar Aug 02 '21 10:08 limey7291

+1

slurpera avatar Aug 14 '21 10:08 slurpera

+1 million but it does not care @lukasroegner

Christian-CFP avatar Aug 14 '21 10:08 Christian-CFP

+1 million but it does not care @lukasroegner

I think it is an issue with one of the dependencies. Apple deprecated the old remote api on the Apple TV. Sigh...

slurpera avatar Aug 14 '21 10:08 slurpera

I think this plugin is maintained no more, and won't be, as iOS 15 deprecated mechanism that was used previously, so it requires refactoring, as I understood.

njuart avatar Aug 14 '21 10:08 njuart

Any chance of this working in tvOS15 at some point?

Willygoat1 avatar Aug 15 '21 17:08 Willygoat1

@Willygoat1 Probably. I'm hopeful. Developer postlund has done lots of work with the new Companion protocol and has implemented some Companion remote control functions in the python library pyatv. Right now controlling the Apple TV using this protocol works with tvOS 14 but not tvOS 15 beta for some reason. It's possible that the beta simply has bugs that prevent it from working with this implementation, or that additional changes will be required to get it to work.

bsharper avatar Aug 16 '21 04:08 bsharper

By the looks of it, MRP is going away in tvOS 15. Or that's note entirely true: it is moving. Instead of being its own protocol, it will continue to exist as a special stream type within AirPlay 2. So it's basically possible to setup a channel over AirPlay 2 that carries MRP messages like we do today. It's a bit tricky and I've spent a lot of hours figuring out how that work and started documenting it in the pyatv documentation here. I have not started implementing it in pyatv yet however, that will be the next step and I will probably find a few things to correct in my findings so far. But what's written there is basically what you need to do to get things working again in tvOS 15. Just wanted to let you all know 👍

(Companion can be used for remote control commands, but isn't necessary since MRP can deal with that like before)

postlund avatar Aug 21 '21 21:08 postlund

Thank you for all your work. 👍

MatGriffin avatar Aug 22 '21 06:08 MatGriffin

I'm making good progress and I have something ready for testing, in case someone wants to help out. Everything is in this PR:

https://github.com/postlund/pyatv/pull/1263

I just added support for transient pairing, so it works with the HomePod as well.

postlund avatar Aug 27 '21 20:08 postlund

Nice, but how do I install this? Using Homebridge on Raspberry PI, tried the pip3 install pyatv but command not found error.

MatGriffin avatar Aug 28 '21 06:08 MatGriffin

Should be possible to run via docker now:

docker run --rm --network=host ghcr.io/postlund/pyatv:master atvremote scan

postlund avatar Sep 11 '21 21:09 postlund

Hi @postlund

I was able to get the token with docker but when I put it in the plugin I get an error that its not correct. also if I try it with CLI its working and I can get the song details..

Any idea how I can make the plugin work with It?

Thanks.

naor1 avatar Sep 15 '21 13:09 naor1

@naor1 What are you trying more exactly? Some commands and error messages would help a lot.

postlund avatar Sep 15 '21 13:09 postlund

@postlund

Im trying to connect to the new tvOS 15 with the plugin homebridge-apple-tv-remote. With tvOS 14 im able to connect and control the Apple TV but after updating to 15 I can't, so I tried your suggestion here to get the credentials with docker and I was able to do that but this credentials are not working in the plugin.

I get this error in Homebridge log: "Credentials are invalid. Make sure that you copied them correctly."

naor1 avatar Sep 15 '21 13:09 naor1

This plugin does not support tvOS 15 so that won't work. The credentials you get are only valid for pyatv.

postlund avatar Sep 15 '21 13:09 postlund

Ahh that make sense.. Thanks.

naor1 avatar Sep 15 '21 14:09 naor1

Is there any support coming for tvOS in the future for this plugin?

arkadicolson avatar Sep 21 '21 08:09 arkadicolson

@lukasroegner Any news regarding tvOS 15. I just noticed today that there are many errors in the log.

[22.9.2021, 21:25:37] [AppleTvPlatform] [Apple TV] Error while connecting for heartbeat: Error: Apple TV not found while scanning.
[22.9.2021, 21:25:41] [AppleTvPlatform] [Apple TV] Error while connecting: Error: Apple TV not found while scanning.

And of course appletv pair is also not working anymore.

pi@raspberrypi-3BPlus:~ $ appletv pair
⠋ Scanning for Apple TVs...(node:1366) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
No Apple TVs found on the network. Try again.

I hope you can fix this. Wouldn't want to miss homebridge-apple-tv-remote

Thanks in advance.

DJay-X avatar Sep 22 '21 19:09 DJay-X

Hi @postlund will this plugin work with iOS15 at some point or should we forget about it and find another solution?

DarKOrange75 avatar Sep 27 '21 22:09 DarKOrange75