See: https://esphome.io/components/remote_receiver.html
To be used with: https://esphome.io/components/remote_transmitter.html
The device responds to NEC / LG / Pioneer codes as recorded below. I couldn't spot any differences when choosing one protocol or the other.
remote_receiver:
pin:
number: D5
inverted: true
dump: all
remote_transmitter:
pin: D7
carrier_duty_percent: 50%
button:
- platform: template
name: "Mode LG"
on_press:
- remote_transmitter.transmit_lg:
data: 0x00FF29D6
nbits: 32
- platform: template
name: "Mode NEC"
on_press:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0x6B94
- platform: template
name: "Mode Pioneer"
on_press:
- remote_transmitter.transmit_pioneer:
rc_code_1: 0x0094
- platform: template
name: "On/off LG"
on_press:
- remote_transmitter.transmit_lg:
data: 0x00FF19E6
nbits: 32
- platform: template
name: "On/off NEC"
on_press:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0x6798
- platform: template
name: "On/off Pioneer"
on_press:
- remote_transmitter.transmit_pioneer:
rc_code_1: 0x0098
- platform: template
name: "Swing LG"
on_press:
- remote_transmitter.transmit_lg:
data: 0x00FF09F6
nbits: 32
- platform: template
name: "Swing NEC"
on_press:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0x6F90
- platform: template
name: "Swing Pioneer"
on_press:
- remote_transmitter.transmit_pioneer:
rc_code_1: 0x0090
- platform: template
name: "Up LG"
on_press:
- remote_transmitter.transmit_lg:
data: 0x00FF31CE
nbits: 32
- platform: template
name: "Up NEC"
on_press:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0x738C
- platform: template
name: "Up Pioneer"
on_press:
- remote_transmitter.transmit_pioneer:
rc_code_1: 0x008C
- platform: template
name: "Down LG"
on_press:
- remote_transmitter.transmit_lg:
data: 0x00FF11EE
nbits: 32
- platform: template
name: "Down NEC"
on_press:
- remote_transmitter.transmit_nec:
address: 0xFF00
command: 0x7788
- platform: template
name: "Down Pioneer"
on_press:
- remote_transmitter.transmit_pioneer:
rc_code_1: 0x0088