home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.88k stars 30.95k forks source link

Fire TV on Wifi keeps disconnecting from HA #129644

Open templeowls21 opened 2 weeks ago

templeowls21 commented 2 weeks ago

The problem

I have a Fire TV on Wifi and its integrated into HA via ADB. When the TV is actually on, HA completely recognizes it. But after being off for a few hours, it disconnects with this error in HA:

`Logger: androidtv.adb_manager.adb_manager_async Source: components/androidtv/init.py:133 First occurred: 12:27:20 PM (59 occurrences) Last logged: 1:42:05 PM

Couldn't connect to 192.168.107.8:5555. TcpTimeoutException: Connecting to 192.168.107.8:5555 timed out (1.0 seconds)`

The error persists until the TV is turned back on.

It has a static IP via my Omada system if relevant. According to Omada, it's never dropping offline (there's an Ap about 3 ft from it).

Also, I have an identical Fire TV (same exact model; bought both at once) that I set up in the exact same way via ADB with the only difference being its connected via ethernet. I didn't change any power settings on either. The ethernet one has never once disconnected from HA/ADB.

Any suggestions? It seems to be an issue specifically with the device via ADB being on Wifi

What version of Home Assistant Core has the issue?

2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ADB

Link to integration documentation on our website

No response

Diagnostics information

n/a

Example YAML snippet

n/a

Anything in the logs that might be useful for us?

`Logger: androidtv.adb_manager.adb_manager_async
Source: components/androidtv/__init__.py:133
First occurred: 12:27:20 PM (59 occurrences)
Last logged: 1:42:05 PM

Couldn't connect to 192.168.107.8:5555. TcpTimeoutException: Connecting to 192.168.107.8:5555 timed out (1.0 seconds)`

Additional information

n/a

home-assistant[bot] commented 2 weeks ago

Hey there @jefflirion, @ollo69, mind taking a look at this issue as it has been labeled with an integration (androidtv) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `androidtv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign androidtv` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


androidtv documentation androidtv source (message by IssueLinks)

ollo69 commented 2 weeks ago

Probably your TV after some times go in a deep standby and stop responding to adb commands.

ollo69 commented 2 weeks ago

Sorry, don't care about previous comment, I do not read properly your explanation. Honestly I have no idea, because in my case I have 2 Fire TV connected via wifi and they never disconnect. Could be somenthing related to your wifi router, but not sure about this. I suggest to connect also the other firetv using wifi to check if it behave as the other.

templeowls21 commented 2 weeks ago

Gotcha. Will do. Thanks for the help! It has stumped me as well, considering the identical TV hasn't had an issue with the only diff being its on ethernet. It's gotta be related to the Wifi but I can't figure out what exactly