IR code conversion?

I found some IR codes here

HDMI 3 (Hex)
78, 62, 20, 31, 20, 39, 32
HDMI 3 (ASCII)
xb\x201\x2092

HDMI 4 (Hex)
78, 62, 20, 31, 20, 39, 33
HDMI 4 (ASCII)
xb\x201\x2093

How can these be used in ESP-Home?
I can’t see any format that accept these inputs. I tried to convert the hex to binary and use it as:

  - platform: template
    name: "David LG TV HDMI3"
    on_press:
      - remote_transmitter.transmit_rc_switch_raw:
          code: "10001111000000110011110001111011100111001011100"    
          protocol: 1   

Bu that didn’t work, could be the conversion or the code itself. The real remote does not have these buttons so I’m trying to find the codes to switch input without the menu system.

I found these codes:

  - platform: template
    name: "David LG TV HDMI1"
    on_press:
      - remote_transmitter.transmit_pronto:
          data: "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94"    
       
  - platform: template
    name: "David LG TV HDMI2"
    on_press:
      - remote_transmitter.transmit_pronto:
          data: "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94"    

And they work fine even though the real remote does not have any buttons for this.

Just as I posted this I found HDMI3 in the same format as HDMI1 and 2, so that one is done. But still need something for HDMI4.

Given the two working HDMIx IR codes you posted only differ by one byte in the whole sequence, you can guess my suggestion!

Only (0xFF - 0x03) codes to try… :slight_smile:

I think you can use irscritinizer to convert from hex to pronto codes.

You also might be able to find it in this database

When I add HDMI3 in to the mix we see this:

HDMI1: "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94"    
HDMI2: "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94"    
HDMI3: "0000 006D 0022 0002 0157 00AC 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0689 0157 0056 0015 0E94"    

the interesting part:
HDMI1: ....0041 0015 0016 0015 0041 0015
HDMI2: ....0041 0015 0016 0015 0016 0015
HDMI3: ....0041 0015 0041 0015 0016 0015

Didn’t work, it can’t recognize the format it says.
Will have a look at the database.

irscrutinizer is a little tricky to figure out, I have some instructions towards the bottom of this page
It seems to handle almost any format you would use for IR data.

But the database should work too.

I tried the database, had to create an account and found the code I wanted and there was a button… “send”…??
Where?? I have not got an email with the code yet. Not sure why there is even a requirement for an account or why they want to “send” the codes.
Just odd…

EDIT. I did get the email I see. It took about 2 hours though.

Yeah, its kind of a bizarre system, but it helped me with a couple devices when I couldn’t find the IR codes anywhere else.