IR Remote Climate component receives code sent with but the AC does not

Hi,

I have the following problem with IR Remote Climate for my LG AC.

The IR receiver picks up the signal from the LG Remote Control, as well as the signal that is sent by the IR transmitter (through climate_ir_lg).

The codes seem to be identical for the IR transmitter and the LG Remote Control.

These are the logs I got from both of them:
20 to 21.c with the LG Remote Control

[17:06:23][D][climate.climate_ir_lg:124]: Decoded 0x880C646
[17:06:23][D][climate:396]: ‘Living Room AC’ - Sending state:
[17:06:23][D][climate:399]: Mode: HEAT
[17:06:23][D][climate:404]: Fan Mode: HIGH
[17:06:23][D][climate:416]: Swing Mode: OFF
[17:06:23][D][climate:425]: Target Temperature: 21.00°C

20 to 21.c with IR transmitter

[17:07:23][D][climate:011]: ‘Living Room AC’ - Setting
[17:07:23][D][climate:040]: Target Temperature: 21.00
[17:07:23][D][climate.climate_ir_lg:069]: climate_lg_ir mode code: 0x03
[17:07:23][D][climate.climate_ir_lg:176]: Sending climate_lg_ir code: 0x880C646
[17:07:23][D][climate:396]: ‘Living Room AC’ - Sending state:
[17:07:23][D][climate:399]: Mode: HEAT
[17:07:23][D][climate:404]: Fan Mode: HIGH
[17:07:23][D][climate:416]: Swing Mode: OFF
[17:07:23][D][climate:425]: Target Temperature: 21.00°C
[17:07:23][D][climate:396]: ‘Living Room AC’ - Sending state:
[17:07:23][D][climate:399]: Mode: HEAT
[17:07:23][D][climate:404]: Fan Mode: HIGH
[17:07:23][D][climate:416]: Swing Mode: OFF
[17:07:23][D][climate:425]: Target Temperature: 21.00°C
[17:07:23][W][component:214]: Component api took a long time for an operation (0.12 s).
[17:07:23][W][component:215]: Components should block for at most 20-30ms.
[17:07:23][D][climate.climate_ir_lg:124]: Decoded 0x880C646
[17:07:23][D][climate:396]: ‘Living Room AC’ - Sending state:
[17:07:23][D][climate:399]: Mode: HEAT
[17:07:23][D][climate:404]: Fan Mode: HIGH
[17:07:23][D][climate:416]: Swing Mode: OFF
[17:07:23][D][climate:425]: Target Temperature: 21.00°C

This is the code I have currently set up:

captive_portal:

remote_transmitter:
  pin:
    number: GPIO13
  id: ir_transmitter
  carrier_duty_percent: 50%

remote_receiver:
  pin:
    number: GPIO32
    inverted: true
    mode:
      input: true
      pullup: true
  id: ir_receiver
  # high 55% tolerance is recommended for some remote control units
  tolerance: 55%

climate:
  - platform: climate_ir_lg
    name: "Living Room AC"
    transmitter_id: ir_transmitter
    receiver_id: ir_receiver
    header_high: 3265us # AC Units from LG in Brazil, for example use these timings
    header_low: 9856us

Additionally, I live in Europe, but I noticed that the receiver does not detect anything (LG RC nor ESP32 IR transmitter) if I do not add the header_high and header_low values.

Is this a matter of tweaking these numbers? Or perhaps the bit_high, bit_one_low, or bit_zero_low? I have no clue where to start with this if that is the case.

I have a feeling that I am really close but can’t seem to figure out why the AC does not receive the transmitted signal from the ESP32, but the IR Receiver does. Placing the IR transmitter closer to the AC does not make any difference unfortunately.

Also, it does show the warning below, but it seems to be sending the signal nonetheless.

[17:07:23][W][component:214]: Component api took a long time for an operation (0.12 s).

Any ideas?

I would strongly suggest if you have not tried it yet to comment tolerance, headers parameters and see how it goes :wink:

Not sure what you mean I’m afraid… The tolerance is added to the receiver, but has nothing to do with the transmitter, right?

Header high and low is also added. If I don’t the receiver does not work it seems. Should I play around with those values and if so, any clue what my start and end point should be?

Possibly if you capture some (raw?) codes you can confirm header/bit pulse widths? Or maybe start with dump: all

Threads like this may help.
https://irforum.analysir.com/viewtopic.php?t=983

I’m not great with IR codes so just ideas.

Hi,
I’m facing the exact same problem , Did you find any solutions ?