Plugin: FireTV Control via ADB
Launch Data (ActiveX Classname):   PH_FireTV.phfiretv
Initialization Data: A full path and filename to the plugin INI file. A base configuration INI file can be found in the plugins directory at c:\powerhome\plugins\firetv.ini. Details on how to configure the INI are provided below.
This plugin provides control over Amazon FireTV devices using the ADB debug control protocol. To use this plugin, you must have ADB (Android Debug Bridge) installed and you must configure your FireTV to allow for ADB debugging. You can find information on how to do this here: https://developer.amazon.com/docs/fire-tv/connecting-adb-to-device.html .
INI File Configuration:
The base configuration INI file contents will appear like this:
[settings]
ip=192.168.0.128
adbpath=C:\android_sdk\adt-bundle-windows-x86-20130522\sdk\platform-tools
kill=yes
Set the IP parameter to the IP of your FireTV device. It is best if you can configure a static DHCP address for your FireTV so that the IP does not change. Set the "adbpath" parameter to the full path where the ADB.EXE file can be found. The "kill" parameter should be set to either "yes" or "no". If set to "yes", then the plugin will attempt to kill the ADB server whenever the plugin is enabled or disabled. Killing the ADB server helps with problems where the ADB server is sometimes hung.
Controller Commands supported:
The following controller commands are supported by this plugin and can be activated by using the ph_picmd( ) function. Instead of using the "command" parameter and supplying a command number, this plugin uses the "parm3" parameter to differentiate between the different commands using the strings below:

 Parm3 Command  Description
 killserver  Sets the "kill" flag (same as the INI file parameter) to either "yes" or "no". The value you wish to set is int the Parm1 parameter. Use 0 for "no" and any other value for "yes".
 up  Sends an up arrow command
 down  Sends a down arrow command
 left  Sends a left arrow command
 right  Sends a right arrow command
 enter  Sends an Enter or Select command
 select  Same as the "enter" command above
 back  Sends a back command
 home  Sends a home command
 menu  Sends a menu command
 play  Sends a play command
 pause  Sends a pause command
 prev  Sends a previous command
 next  Sends a next command
 power  Sends a Power command
 volup  Sends a Volume Up command
 voldn  Sends a Volume Down command
 delete  Sends a delete command
 tab  Sends a tab command
 key  Sends a keystroke(s). The key to send will be in the Parm4 parameter. If multiple characters appear in the string passed in Parm4 then the characters will be sent sequentially one at a time.
Generic Plugin triggers fired:
None