Skip to content
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

Cant't connect to FireTV #84

Open
steffenle opened this issue May 7, 2019 · 7 comments
Open

Cant't connect to FireTV #84

steffenle opened this issue May 7, 2019 · 7 comments

Comments

@steffenle
Copy link

pi@wohnraspi:~ $ /home/pi/.local/bin/firetv-server -d 10.6.65.31:5555

  • Serving Flask app "firetv.main" (lazy loading)
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://0.0.0.0:5556/ (Press CTRL+C to quit)
    10.6.65.43 - - [07/May/2019 22:38:34] "GET /devices/list HTTP/1.1" 200 -
    10.6.65.43 - - [07/May/2019 22:38:39] "GET /devices/list HTTP/1.1" 200 -

Response:
{"devices":{"default":{"host":"10.6.65.31:5555","state":"unknown"}}}

Ping OK
pi@wohnraspi:~ $ ping 10.6.65.31
PING 10.6.65.31 (10.6.65.31) 56(84) bytes of data.
64 bytes from 10.6.65.31: icmp_seq=1 ttl=64 time=145 ms
64 bytes from 10.6.65.31: icmp_seq=2 ttl=64 time=174 ms

Port is open:
pi@wohnraspi:~ $ telnet 10.6.65.31 5555
Trying 10.6.65.31...
Connected to 10.6.65.31.
Escape character is '^]'.
^]
telnet> quit

@steffenle
Copy link
Author

adb connect works also:
pi@wohnraspi:~ $ adb connect 10.6.65.31:5555
connected to 10.6.65.31:5555
pi@wohnraspi:~ $ adb devices
List of devices attached
10.6.65.31:5555 device

@t-oster
Copy link

t-oster commented May 27, 2019

same for me, with firetv and firetv stick (python2 btw).

@t-oster
Copy link

t-oster commented May 27, 2019

also on a different pc with python3 (both arch linux). How to turn on debug mode?

@CodeMonk
Copy link
Contributor

CodeMonk commented Nov 8, 2019

You may want to try out my PR. I moved to adb_shell which seems to work much better.

@lairdm
Copy link

lairdm commented Dec 23, 2019

I'm having similar issues. One thing I had to do which I might have missed in the instructions was enable ADB over the local network in the FireTV Settings->Developer Options->ADB Debugging to even get the telnet from above to work.

However even with that I'm getting the same issues of the FireTV is always in an Unknown state.

I also had the same install issues as in #85 and had to use --pre when installing pure-python-adb-homeassistant.

Here's hoping someone finds the solution.

@lairdm
Copy link

lairdm commented Dec 23, 2019

Insteresting, I just found a reference on Reddit that python-FireTV only works under Python 2. That could be our issue.

https://www.reddit.com/r/homeassistant/comments/5lmz3e/using_ha_to_launch_an_app_on_firetv/dbzjict/

@peterchs
Copy link

peterchs commented Oct 3, 2020

Same issue as here connecting to firetv 4k stick - device always shows state of 'unknown'

Tried using virtualenv for both python 3.6 and 2.7 - no luck, state always unknown.

ADB debug was turned on stick.

Running adb connect prompted on the stick as expected and approved, but no luck with firetvserver. Added the adb key to config file with no luck. Telnet to device in config opens connection as expected.

Any other suggestions?

How to enable debug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants