Open TechShift007 opened 9 months ago
This is obviously a mismatch where pairing RAOP yields legacy credentials (like it did before I added AirPlay 2 support), but AirPlay 2 is used for streaming. This should not happen if you remove and add the device again, so something strange is happening there. Can you remove the device and enable additional logging when adding it again?
Hi @postlund. I think I managed to enable the additional logger. Here as attached are the latest logs while re-adding the device.
Yeah, those are the logs I need. For some reason pyatv thinks RAOP should be paired with legacy authentication instead of HAP. The feature flags are used to decide this, but they look correct. I have tried to reproduce this myself and it seems to work as expected. Would it be possible for you to test this with atvremote
as well and check if the same thing happens? You would need to install pyatv and run atvremote --debug -s 192.168.1.127 --protocol raop pair
.
Hi, I will gladly test atvremote, excuse my stupidity, but how do you run the requested test in HA and install pyatv?
It depends on the operating system you run a bit (I suggest you run it on another computer than they over you use for Home Assistant, assuming you are running HAOS). Basically you need python and then you can follow the instructions here:
Having the same problem. @postlund any way I could help debugging this ?
Describe the bug
When I try and "Browse Media" from HA in order to Airplay to the Apple TV from HA I get the following error within HA "encryption keys not supported by legacy auth". I am currently running HA 2023.8.0 and Supervisor 2023.07.1. I have tried removing the Apple TV and repairing it with all the codes and it pairs 100%. If I change the source to an app that is on the Apple TV it works. It seems that the Airplay authentication is stuck on legacy. I have an Apple TV 4K and it also wont Airplay with the same legacy auth error.
Error log
How to reproduce the bug?
Try Airplay media from HA to Apple TV.
What is expected behavior?
The audio or video should airplay to the Apple TV from HA.
Operating System
HA
Python
Other
pyatv
0.8.2
Device
Apple TV 4th Gen TVOS 16.6
Additional context
I am running the built in HA version of pyatv. I have searched the web and read numerous HA forums but with no solution on how to forcefully change the legacy auth to the new auth.