-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] pyatv.exceptions.BlockedStateError: remote_control is blocked #300
Comments
Might be related to #315 |
I found out that the problem can be reproduced very easily by restarting the Apple TV. Beforehand, everything still works and after the restart, these error messages appear with every Apple TV command, which then result in a command timeout a short time later. Restarting the Remote Two solves the problem. |
Thanks. So both the remote and HA can control the Apple TV before a restart? |
I haven't used HA to control the Apple TV since I created this issue. Right now I only control it via the internal integration. I think HA could be unrelated to this issue. I can't remember exactly but maybe I also restarted the Apple TV when set up the integration in HA which caused the same issue. |
Just want to make sure because the original description says it only worked after removing from HA. |
Fixed in the next release. |
New Apple TV integration is released in beta group. If we don't find a showstopper it will be released this week. |
With 1.7.4 the BlockedStateError seems to be fixed but it still takes 5-10 seconds after a restart to control the Apple TV again. I noticed a KeyError in the integration logs: |
Restart of what, the ATV device or remote? The error is a TimeoutError: ATV didn't respond |
A restart of the Apple TV |
Is there an existing issue for this?
Description
I recently added my Apple TV to Home Assistant. As a result, operation via Remote Two no longer worked. The log showed the following message:
Only after I removed the ATV from HA again, removed all corresponding remote apps in the ATV settings, removed the entity in the integration menu and then restarted the setup I was able to operate the device via the remote again. Before that, I only got messages like service not available or a timeout.
How to Reproduce
Expected behavior
The Apple TV can be fully controlled via Remote Two
System version
1.6.7
What part of the system affected by the problem?
Integration
Additional context
No response
The text was updated successfully, but these errors were encountered: