Closed pickett closed 1 year ago
And as far as how this really manifests... see above. I wasn't interacting with the Apple TV at all during this time and I'm pretty sure it was just asleep.
This looks more like a network/firewall problem to me. Do you have any exotic setup? Are all devices on the same network?
Hmmm. I don't think it's an exotic setup, just a few Eero routers with an unmanaged network switch - everything on the same network.
Apple TV is connected via Ethernet to the same switch that connects to the Mac running HA in a VM.
Hmm, that sounds strange. Would it be possible for you to set up a plain core install (without OS, supervisor or anything) and just run the Apple TV integration? An additional thing to try is using atvrmote to listen for push updates (e.g. atvremote ... push_updates
) and see if it disconnects in the same manner.
Errno 113 is "no route to host", which is why I'm suspecting a network error btw.
I am willing to try anything. Will read up on how to do that.
On Thu, Jun 15, 2023 at 7:36 AM Pierre Ståhl @.***> wrote:
Errno 113 is "no route to host", which is why I'm suspecting a network error btw.
— Reply to this email directly, view it on GitHub https://github.com/postlund/pyatv/issues/2050#issuecomment-1592877059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWLWQ6MANOGTRZYKF6SJDXLLXVJANCNFSM6AAAAAAZGXPW5Y . You are receiving this because you authored the thread.Message ID: @.***>
That would be great! Let me know if you have any questions, I'll try to answer as good as I can.
Will do. I’ll start with atV remote since that seems to be an easier first step. If the same behavior I’ll look into a new install.
On Thu, Jun 15, 2023 at 7:57 AM Pierre Ståhl @.***> wrote:
That would be great! Let me know if you have any questions, I'll try to answer as good as I can.
— Reply to this email directly, view it on GitHub https://github.com/postlund/pyatv/issues/2050#issuecomment-1592902787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWLWQF7OR6ISDVS4JWDXTXLL2AZANCNFSM6AAAAAAZGXPW5Y . You are receiving this because you authored the thread.Message ID: @.***>
This ended up being a local configuration issue. And it was indeed a firewall issue. I had at some point firewalled the wifi connectivity from the device to force it to use Ethernet. Seems that was having some unexpected results. Thanks for the tip on what the error was referring to!
Describe the bug
HA Apple TV integration throws constant errors and warnings including "Failed to connect" "Failed to set up remote control channel" and "Lost Connection" I recognize this is likely a tricky issue to track down but I'd like to help in any way possible as I can never use the Apple TV integration and I know others have experienced it as well.
My setup:
Home Assistant 2023.6.1 Supervisor 2023.06.2 Operating System 10.2 Apple TV 4K, tvOS 16.5
Failed to connect error:
Failed to set up remote control channel error:
Lost Connection Warning:
Error log
A sample of debug logs - there is a ton of output so if you could guide me on how to share longer debug files I would happily share them.
How to reproduce the bug?
The disconnects are constant on my system. I wish I had better repro steps but these logs just continuously come in.
What is expected behavior?
These warnings and disconnects rapidly cycle the state management of the device and jump it from "Apple TV On" to "Unknown". Expected behavior is for there not to be constant disconnects and errors which at times cause automations to fail and states to be reported inaccurately.
Operating System
Mac
Python
3.6
pyatv
Latest
Device
Apple TV 4K, tvOS 16.5
Additional context
As I said above, I am happy to help provide even more debug logs or strip everything down, remove the integrations, start fresh and share debug logs. Guidance is really what I need.