Hello All, I am trying to create an ESPHome IR Receiver/Sender module, to automate some IR devices I have around the house. I bought the IR modules off of aliexpress, and have the hooked up and they appear to be working correctly.
This is the log I get from the receiver when I push the power button on the IR remote
This is the logs I get when I toggle the switch for the IR blaster in HA. I tried both pronto code 238 and 240 (I pressed the toggle twice in the screenshot)
carrier_duty_percent: 75% in docs it’s stated that you should set it to 50% if using IR.
probably not the solution to your issue as it looks like there is some limit RMT memory (what ever that is) and then empty data error from the transmitter. so maybe the data gets truncated?
Also a little tip on how I use my IR transmitter.
I created a “User-defined Services” Native API Component — ESPHome under API in the esphome yaml.
This will add a service in home assistant called esphome.nodename_send_pronto,
which in your case probably would be something like this: esphome.esphome-ir-receiver-sender_send_pronto
That way you don’t have to flash your esp module each time you want to change or add IR switches and only handle them within home assistant and automations etc.
It would be easier to test if there is some issues with the length of the data.
Okay thank you for all of your help! One last question about this, sorry to keep bothering you! I am trying to use remote_transmitter.transmit_rc_switch_raw and the docs say that ‘protocol’ should be an integer, but it is not working. I have actually tried all of the different types and none of them worked. It works correctly whenever I remove the proto variable and protocol entry in the transmit. Any ideas?
So my issue is that the ESP I was using didnt have enough memory for it to send the IR command, I guess? I tried the same code on a different ESP model and it has begun working as intended.