Request: will any user successfully using ESPhome as a remote IR transmitter please post their yaml

Certainly.

An example of the raw code (this turns the fan light on) looks like this:

[20:03:27][D][remote.raw:028]: Received Raw: 1286, -395, 1291, -390, 444, -1238, 441, -1240, 449, -1233, 446, -1235, 443, -1238, 441, -1241, 1282, -400, 445, -1236, 443, -1238, 440, -7967, 1282, -403, 1286, -391, 443, -1239, 440, -1241, 448, -1234, 445, -1236, 442, -1239, 451, -1231, 
[20:03:27][D][remote.raw:041]:   1292, -389, 445, -1237, 442, -1239, 450

For anyone else who finds this thread, the final working receiver yaml looks like this:

remote_receiver:
  pin: 
    number: D5
    inverted: True
    mode: INPUT_PULLUP
  dump: raw

From this I was able to get codes, and the working transmitter yaml looks like this:

remote_transmitter:
  pin: D6
  carrier_duty_percent: 50%

switch:
  - platform: template
    name: "Light - Fan Light On"
    id: fan_light_on
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [1291, -393, 1285, -397, 448, -1230, 450, -1231, 447, -1234, 444, -1238, 441, -1241, 449, -1231, 1292, -393, 441, -1237, 442, -1240, 449, -7957, 1292, -392, 1287, -395, 449, -1256, 423, -1232, 447, -1234, 444, -1240, 439, -1240, 453, -1232, 1288, -392, 442, -1237, 442, -1239, 450]
          carrier_frequency: 38kHz
  - platform: template
    name: "Light - Fan Light Off"
    id: fan_light_off
    turn_on_action:
      - remote_transmitter.transmit_raw:
          code: [1290, -391, 1288, -393, 441, -1241, 448, -1233, 446, -1236, 442, -1239, 1284, -397, 448, -1234, 445, -1236, 443, -1238, 451, -1234, 444, -7960, 1289, -392, 1287, -395, 449, -1232, 447, -1234, 444, -1238, 441, -1241, 1282, -398, 450, -1232, 444, -1237, 441, -1241, 448, -1233, 446]
          carrier_frequency: 38kHz
8 Likes