Fire TV Remote
A flow to remote control your Amazon Fire TV.
You will need adb
binaries on your Node-RED server and of course you must have remote debugging enabled on your Fire TV.
Be sure to configure the tab name if you want to change the tab for the UI elements! This is needed to trigger the adb connection to your Fire TV.
You can even send text to the device.
Screenshot
Changelog
1.0.1 changed some text
1.0.0 initial Version
[{"id":"3f2ab69e.bb0ada","type":"tab","label":"Fire TV","disabled":false,"info":""},{"id":"4d6e7ea0.4fa14","type":"exec","z":"3f2ab69e.bb0ada","command":"adb connect ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":590,"y":80,"wires":[[],[],[]]},{"id":"8efaddc.03e11a","type":"ui_ui_control","z":"3f2ab69e.bb0ada","name":"","events":"change","x":100,"y":80,"wires":[["30c15594.5de10a"]]},{"id":"30c15594.5de10a","type":"switch","z":"3f2ab69e.bb0ada","name":"Tab Name","property":"name","propertyType":"msg","rules":[{"t":"eq","v":"Home","vt":"str"}],"checkall":"false","repair":false,"outputs":1,"x":260,"y":80,"wires":[["e96e1c6.0771f6"]],"info":"Type here the name of the tab where you should have the Fire TV Remote controlls."},{"id":"6b78701c.7813b8","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Up","group":"824a556f.fbfd08","order":4,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-arrow-up","payload":"19","payloadType":"str","topic":"","x":110,"y":160,"wires":[["b2354b2a.196f78"]]},{"id":"b2354b2a.196f78","type":"exec","z":"3f2ab69e.bb0ada","command":"adb shell input keyevent ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":490,"y":420,"wires":[[],[],[]]},{"id":"ae43ba98.3e1f1","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Down","group":"824a556f.fbfd08","order":12,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-arrow-down","payload":"20","payloadType":"str","topic":"","x":110,"y":200,"wires":[["b2354b2a.196f78"]]},{"id":"6fff255.0f7dddc","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Left","group":"824a556f.fbfd08","order":7,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-arrow-left","payload":"21","payloadType":"str","topic":"","x":110,"y":240,"wires":[["b2354b2a.196f78"]]},{"id":"1585233e.4aaa05","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Right","group":"824a556f.fbfd08","order":9,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-arrow-right","payload":"22","payloadType":"str","topic":"","x":110,"y":280,"wires":[["b2354b2a.196f78"]]},{"id":"896793ed.35183","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Enter","group":"824a556f.fbfd08","order":8,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-sign-in","payload":"23","payloadType":"str","topic":"","x":110,"y":320,"wires":[["b2354b2a.196f78"]]},{"id":"ae1c58cc.44cdd8","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Home","group":"824a556f.fbfd08","order":16,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-home","payload":"3","payloadType":"str","topic":"","x":110,"y":360,"wires":[["b2354b2a.196f78"]]},{"id":"596b065c.b0251","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Back","group":"824a556f.fbfd08","order":15,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-undo","payload":"4","payloadType":"str","topic":"","x":110,"y":400,"wires":[["b2354b2a.196f78"]]},{"id":"6be90d0b.71b6e4","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Menu","group":"824a556f.fbfd08","order":17,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-bars","payload":"82","payloadType":"str","topic":"","x":110,"y":440,"wires":[["b2354b2a.196f78"]]},{"id":"52990c3f.ec403c","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Media Rewind","group":"824a556f.fbfd08","order":18,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-backward","payload":"89","payloadType":"str","topic":"","x":140,"y":480,"wires":[["b2354b2a.196f78"]]},{"id":"4abf6a3a.4faeec","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Media Play/Pause","group":"824a556f.fbfd08","order":19,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-play","payload":"85","payloadType":"str","topic":"","x":150,"y":520,"wires":[["b2354b2a.196f78"]]},{"id":"5532e50e.276f4c","type":"ui_button","z":"3f2ab69e.bb0ada","name":"Media Forward","group":"824a556f.fbfd08","order":20,"width":"2","height":"1","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-forward","payload":"90","payloadType":"str","topic":"","x":140,"y":560,"wires":[["b2354b2a.196f78"]]},{"id":"7f4f0ee8.88cb28","type":"ui_text_input","z":"3f2ab69e.bb0ada","name":"","label":"","tooltip":"Send text to the Fire TV by pressing Enter","group":"824a556f.fbfd08","order":1,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"","x":120,"y":640,"wires":[["fb76c577.6b3898"]]},{"id":"b33eb7d7.c18c","type":"exec","z":"3f2ab69e.bb0ada","command":"adb shell input text ","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":470,"y":640,"wires":[[],[],[]]},{"id":"fb76c577.6b3898","type":"template","z":"3f2ab69e.bb0ada","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"$(echo \"{{payload}}\" | sed 's/ /\\%s/g')","output":"str","x":280,"y":640,"wires":[["b33eb7d7.c18c"]],"info":"Replace space with %s for adb."},{"id":"e96e1c6.0771f6","type":"change","z":"3f2ab69e.bb0ada","name":"Hostname","rules":[{"t":"set","p":"payload","pt":"msg","to":"amazon-a12345f789.fritz.box:5555","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":80,"wires":[["4d6e7ea0.4fa14"]],"info":"Set here your Fire TV Hostname."},{"id":"3001bea6.e69182","type":"comment","z":"3f2ab69e.bb0ada","name":"Configuration!","info":"Tab name and hostname need to be set.","x":330,"y":40,"wires":[]},{"id":"6c6bc946.188bf8","type":"ui_template","z":"3f2ab69e.bb0ada","group":"824a556f.fbfd08","name":"empty","order":2,"width":"2","height":"1","format":"","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":430,"y":220,"wires":[[]]},{"id":"543562f5.0dc62c","type":"ui_template","z":"3f2ab69e.bb0ada","group":"824a556f.fbfd08","name":"empty","order":6,"width":"2","height":"1","format":"","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":430,"y":260,"wires":[[]]},{"id":"c4f1f283.ef27d8","type":"ui_template","z":"3f2ab69e.bb0ada","group":"824a556f.fbfd08","name":"empty","order":10,"width":"2","height":"1","format":"","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":430,"y":300,"wires":[[]]},{"id":"4058b85.ca020c8","type":"ui_template","z":"3f2ab69e.bb0ada","group":"824a556f.fbfd08","name":"empty","order":14,"width":"2","height":"1","format":"","storeOutMessages":false,"fwdInMessages":false,"templateScope":"local","x":430,"y":340,"wires":[[]]},{"id":"824a556f.fbfd08","type":"ui_group","z":"","name":"Fire TV","tab":"f106226.8f451e","disp":true,"width":"6","collapse":false},{"id":"f106226.8f451e","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]