I’m using the Remote Receiver to decode my remotes then the Remote Transmitter to replay them with my automations.
I have a button configured
button:
- platform: template
id: tv_power_source
name: TV Source Button $hostname
on_press:
- remote_transmitter.transmit_raw:
carrier_frequency: 38kHz
code: [4501, -4476, 592, -1667, 592, -1662, 590, -1668, 593, -533, 592, -541, 591, -534, 592, -535, 593, -540, 590, -1661, 592, -1667, 592, -1662, 591, -542, 590, -536, 590, -536, 590, -541, 591, -535, 591, -1669, 590, -534, 592, -535, 591, -541, 594, -532, 591, -535, 591, -542, 591, -534, 592, -534, 592, -1667, 592, -1667, 591, -1663, 591, -1667, 591, -1663, 591, -1667, 591, -1669, 591]
I’m wanting to reverse this, so when this code is received I can turn on a LED
remote_receiver:
pin:
number: D6
inverted: true
mode: INPUT_PULLUP
dump: raw
idle: 25ms
When code received, trigger this…
- homeassistant.service:
service: light.toggle
data:
entity_id: light.esp32_bedroom_red_led