Open kennymc-c opened 5 months ago
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.
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.
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. I've found one cause for the BlockedStateError and also added a reconnect trigger in case it still occurs. This error is usually thrown if the connection has been dropped by the Apple TV, but the integration didn't create a new connection.
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: UCR2_logs_2024-03-09.txt
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