Control your Amazon Fire TV (or every Android Device) from openHAB

I found that it was possible to start what ever application by first running
adb shell pm list packages -f

and search for the app and launch it by
shell monkey -p com.spotify.tv.android 1

however, if I use a shell
adb connect 192.168.2.34:5555
adb shell monkey -p org.xbmc.kodi 1
adb disconnect

I just get an error
[18:03:12] openhabian@openHABianPi:~$ /etc/openhab2/scripts/StartFireTV2.sh
connected to 192.168.2.34:5555
** Error: Count is not a number

Why am I not sucessful in running the shells?

1 Like