I recently tried to integrate one of my FireTV sticks, and I had no luck.
I followed the directions here: https://home-assistant.io/components/media_player.firetv/
I’m not sure exactly what I did, but I ran into some permissions problems, so I switched to running the commands with sudo and I got some messages that said maybe I have to run with sudo -H. After getting this issue, I wasn’t sure what was going on, but I ran pretty much every combination of sudo, sudo -H, and just installing with my home assistant user. After the first run through, the variations did nothing - all simply completed without issue - essentially saying these packages were already installed. Anyway - installation completed.
I tried running firetv-server -d [fire tv device IP]:5555. It appeared to work (no errors anyway), but http://localhost:5556/devices/list gave me connection refused, so it didn’t appear to be working. I do most of my installation through ssh, so I also tried http://[LAN IP]:5556/devices/list from the machine I was using, and that didn’t work either.
I don’t know how to background a process after running it, so I cancelled it, and ran (firetv-server -d :5555 &). This didn’t work either…
I then read that it had to be installed under Python 2.x. Well, I didn’t do anything special to install it under Python 2.x, so I tried reinstalling with python2.7 pip… This said everything was already installed, and indeed, looking back - it did show that everything was installed to python2.7 directories.
Since that failed, I created /srv/firetv, and activated a virtual environment there. I then reinstalled in the virtualenv with python2.7 pip… This time, all installation commands worked perfectly (as published on the home assistant website) without sudo.
I got exactly the same result. firetv-server runs with no errors, but I cannot access http://localhost:5556/devices/list.
I’m novice enough with Linux that installing stuff under python is beyond my ability to troubleshoot on my own. I’m not sure what could be happening or even where to find an error log. Anyone got any ideas?
Thanks.