The two sets of codes posted are exactly the same, the power on/off doesn't work. I've only recently figured out what I'm doing with makehex so here is my take on it:
1. Get the codes from above e.g.
EXT-1 (Input 1)direct selection for EXT-1 10001 10110111 10
2. The first 5 bits (10001) is the device code.
3. Reverse these 5 bits:
10001 becomes 10001 11001 becomes 10011 etc
4. Convert from binary (10001) to decimal using windows scientific calculator. Click on the radio button BIN, enter 10001 then click on the radio button for DEC and you will get 17. Enter this into the sharp.irp file for makehex
... Device=17 Function=0..255 ...
5. Use file manager to go to the folder where makehex lives and drag the edited sharp.irp file onto makehex.exe. After a couple of second the sharp.hex file will be there with all the possible hex commands.
6 Look at the next 8 bits of the original code above 10110111.
Reverse it so 10110111 becomes 11101101
Put that into the calculator and you get 237 in decimal
7. Open the sharp.hex file with notepad and find function 237