Update Sensor with "IR Code received" or turn switch on - ("IR Receiver")

Hello!
I need help again, I’m slowly unwinding!
I made an “IR receiver” with esp32, it is working and reading the remote control codes.
What I need, when I press the on key on the control, which has the “data” 0x20DF10EF, it turns on a switch in the home assistant, or at least updates the sensor state to “on”, which is not happening
I’ve already read the documentation at “Remote Receiver — ESPHome” and read some topics on this forum, but I couldn’t replicate the codes there.
Follow the esp32 code as it is.

remote_receiver:
  pin:
    number: 13
    inverted: true
    mode: input_pullup
  dump: lg

binary_sensor:
  - platform: remote_receiver
    name: "Input On"
    id: botao_liga
    filters:
      - delayed_off: 1s
    lg:
      data: 0x20DF10EF

Thanks everyone again!

Thanks for everyone to read!!

I finally got! Is this the code:

binary_sensor:
  - platform: template
    name: "Input On"
    id: botao_liga
    lambda: 'return false;'  # Inicie com estado false

remote_receiver:
  pin:
    number: 13
    inverted: true
    mode: input_pullup
  dump: lg
  on_lg:  
    then:
      - lambda: |-
          if (x.data == 0x20DF10EF) {
            id(botao_liga).publish_state(true);
            delay(1000);  
            id(botao_liga).publish_state(false);
          }type or paste code here

then the automation i put in the button.