python-firetv
python-firetv copied to clipboard
Cant't connect to FireTV
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
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
same for me, with firetv and firetv stick (python2 btw).
also on a different pc with python3 (both arch linux). How to turn on debug mode?
You may want to try out my PR. I moved to adb_shell which seems to work much better.
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.
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/
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?