Closed postlund closed 3 years ago
I do.. My lights automation does not work properly. At an initial level, it looks like sometimes, when playing media, it shows as 'paused' which is throwing off my automations. Will look at it further and let you know what I find.
Ok, good to know! If you provide me with some logs I can have a look as well (feel free to email me if you prefer). Did it work prior to upgrading to tvOS 14?
i have tvOS 14 too. for me it seems to work nicely. i have triggers on idle playing and pauzed and they all are working fine. With the upgrade to 0.112.1 i had to remove, reboot and reinstall the plugin
It seems to be working ok for me now.
Ok, great! We should still be aware that this is beta, so things might break because of that as well. What I'm mainly after is changes to the protocol.
I don’t know if this is changes to the protocol, but there seems to be a lag on pushing state from Apple TV to Home assistant.
Sometimes, I see a bunch of changes at the same time stamp.
How do I get detailed logs ?
@kdvlr Can you poo provide some logs? Don't think it's related to tvOS 14, but interesting nonetheless.
@postlund i have risked it and updated an Apple TV to tvOS14, it worked for a short time. but now it doesn't work anymore. what logs would be helpful to you? which one exactly?
@Dodoooh I suggest these:
logger:
default: error
logs:
pyatv: debug
custom_components.apple_tv: debug
@Dodoooh I suggest these:
logger: default: error logs: pyatv: debug custom_components.apple_tv: debug
I uploaded it here https://pastebin.com/NBhFysJm
first it worked, then I got nothing delivered back.But I can still start the music in home assistant, but the control field doesn't change it's always blue as usual. Now after a while it works again...
Feel free to tell me if you want me to run a scenario that would be useful to you. Thank you very much for your work, a great integration!
I don't think that is related to tvOS 14, sounds like the issues other people are already seeing. But great to have some logs, I will have a look at them! When you say that you can "start the music", do you mean that the remote control works? Or airplay?
I've been unable to pair the two Apple TVs I get through the first pin but the AirPlay pin does not show up on either screen.
I found the following error if that helps.
Log Details (ERROR) Logger: custom_components.apple_tv.config_flow Source: custom_components/apple_tv/config_flow.py:303 Integration: Apple TV (documentation) First occurred: 0:21:11 (1 occurrences) Last logged: 0:21:11
Authentication problem Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/init.py", line 29, in error_handler return await func(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/auth.py", line 48, in finish_authentication await self._send_plist( File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/auth.py", line 69, in _send_plist raise AuthenticationError("{0} failed with code {1}".format(step, code)) pyatv.exceptions.AuthenticationError: step2 failed with code 500
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/config/custom_components/apple_tv/config_flow.py", line 303, in async_step_pair_with_pin await self.pairing.finish() File "/usr/local/lib/python3.8/site-packages/pyatv/airplay/pairing.py", line 68, in finish await error_handler( File "/usr/local/lib/python3.8/site-packages/pyatv/support/init.py", line 37, in error_handler raise fallback(str(ex)) from ex pyatv.exceptions.PairingError: step2 failed with code 500
@jimdhope Can you verify if second point at https://pyatv.dev/support/troubleshooting/ works?
@jimdhope Can you verify if the second point at https://pyatv.dev/support/troubleshooting/ works?
So I've experimented after following the instruction at the link above. It turns out that I need to disable the password set in the Allow Access menu under AirPlay and HomeKit. Thanks for the help.
Thanks for the great work here. I have 3 apple tvs. The one with tv OS 14 does not work reliability. To make it work, I recover it by restarting the appletv. This happens at least once a day. Happy to share debug logs.
I think most issues related to tvOS 14 has been sorted now and the remaining bug fixes will be part of next pyatv release. Will close this now.
What's on your heart? Anyone running tvOS 14 beta and able to try if pyatv (or the Home Assistant integration) works with it? Would be nice to catch any potential issues early.