I’m have a project to recreate a $10 IR repeater with a WEMOS D1 Mini. I know, overkill, but its way more fun than just buying it on Amazon from China Plus the look on my wife’s face when it works and wires are everywhere will be priceless. I have the receiver working as well as the transmitter. I just need some help “wiring” up the two bits with a little bit of code, hopefully.
I stole this code from @erjchu’s post:
#The Receiver works great and prints all codes from all transmitters
remote_receiver:
pin:
number: GPIO13 #D7
inverted: yes
mode: INPUT_PULLUP
dump: all
remote_transmitter:
pin: GPIO12 #D6
carrier_duty_percent: 50%
api:
services:
- service: send_samsung_command
variables:
my_command: int
then:
- remote_transmitter.transmit_samsung:
data: !lambda 'return my_command;'
- service: send_lg_command
variables:
my_command: int
then:
- remote_transmitter.transmit_lg:
data: !lambda 'return my_command;'
when i apply power to the transmitter, my receiver turns solid, so i know that part is working as well.
All I want to do is turn the received signal around and re-transmit it (for now). Home Assistant won’t be in the picture yet.
Receive raw data
store it in a variable?
transmit that raw data?
is this possible in just ESPHome by itself? Any pointers?
Jeff