I am always hesitant to mention the H-word, but will do in case its any help. Harmony products that use a Harmony hub can control every function of the Fire TV and Firestick. So there may be some useful codes in their database. I know it works, as I use it myself with a Harmony Ultimate. Details here;
[Link: support.myharmony.com]