Hi there!
I recently started working with ESPHome and built a couple of sensors myself. Works fine so far thanks to the great documentation!
Currently I want to smarten up a couple of older devices (One of my stereos and a Fan). They work with IR Remotes and I’ve built a quick prototype with an ESP32 with an IR Receiver and Transmitter (Transmitter unfortunately only works in a very short distance).
The setup works fine as it can read any command and send them via my transmitter. Unfortunately I have a problem with my Fan which uses generic RCSwitch Raw output.
I can read the code of the remote
[19:20:45][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='11011000000',
but sending it and receiving it again gives me this received information:
[19:21:27][D][remote.pronto:229]: Received Pronto: data=0000 006D 0002 0000 0003 00D3 0005 06C3
Which doesn’t work for my fan.
All commands works except the RCSwitch Raw ones. This is the code I use to send them:
button:
- platform: template
name: "Off Fan"
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '11011000000'
protocol: 1
In case it is relevant, here is the code for the Receiver:
remote_receiver:
pin:
number: GPIO22
inverted: true
mode:
input: true
pullup: true
dump: all
Is there a mistake I am not seeing? Thanks a lot in advance! 
