Hi. I just started learning ESPHome. I have a Tuya IR remote that I flashed to the ESPHome platform. I’m trying to send code from Home Assistant to the remote, but I don’t understand how to set the repeat parameter. If I change the repeat value, the remote sends signals instantly without delay. I want to set the wait_time parameter, but I don’t understand how to pass it through the API
Example of my YAML file:
- service: send_nec
variables:
address: string
command: string
repeat: int
times: int
wait_time: string
Maybe I explained what I want a little incorrectly. I want to enter the signal parameters (address and command) in Home Assistant and send these values to ESPHome via API so that the remote control sends the values I specified. I do not want to store the command data in the remote control firmware. I do not understand how to send the times and wait_time commands in such a case.
It doesnt make any sense to “send the commands from HA”. The transmitter and receiver both are on the esp device as well as the codes you want it to send/receive.
You dont want to split up the device or hardware sending/receiving the codes(esp) from the codes themselves. Doing it the wsy your trying, if HA has an issue then no more IR codes being transmitted. If you put them in something like template buttons then you can just as easily “push” those buttons from inside HA but, HA isnt necessary for it to work and will 100% work from the esp alone.