Tuya IR sending commands not working

Hi there,

I am having trouble getting a Tuya IR (Zigbee) working.

I added it through Zigbee2MQTT (all good), i then see it in Home Assistant pool of devices. I tried registering an IR input and then sending it through Zigbee2MQTT and it works fine. Through this:

I followed this guide for creating a script to automate each IR command but I cannot get it to work.

The script is this one (from the guide)

> #Replace Device ID (Friendly name from Zigbee2MQTT) and IR Code
> alias: "AC Remote: Turn ON" #Zigbee2MQTT Script
> sequence:
>   - service: mqtt.publish
>     data:
>       payload: >-  #Replace IR Code
>         {"ir_code_to_send": "De0R7REwApEG9gEwAjACAHC8AZEGgAsJMAIwApEG9gGRBoAHAT=="} 
>       topic: zigbee2mqtt/Tuya ZS06 IR Remote/set #Replace Device ID
> mode: single

Does it have something wrong? Does it exist another way to do it? I believe that each of the values i needed to change for my own values are ok in my script.

Thank you very much.

I have the battery powered version of his and could never get it to work either via mqtt.

Thanks for your feedback.

The thing is that I am a bit confused because it is working from Zigbee2MQTT but not working from Home Assistant. So it has to be a problem with the Zigbee2MQTT - Home Assistant integration or with the script/configuration of it in HA.

I think it is Z2M as I was checking with mqtt explorer and the messages seemed to be correct and there were no errors in the logs.

Got helped outside the forum. My problem was that my topic was out of tune.

I had to put “zigbee2mqtt/tuya_remote_ir/set” with included quotes. Keep in mind my tuya remote ir has been named “tuya_remote_ir” in Zigbee2MQTT. So if you have different name you should adapt.

Hello, i fond some IR code from some Manufacturer Database, but how to send it with Tuya IR ?
espescialy Long Press command

I can get the device to learn codes via Z2M, but I can’t get it to actually send anything. Pasting the code directly in the “IR code to send” box doesn’t do anything. MQTT from Home Assistant correctly publishes the topic, but again the parameter in Z2M isn’t updated, and nothing is sent from the device.

I brought the battery powered version on Amazon and got it to work with MQTT.

Just followed the instructions in the link and made sure that the device topic is correct:

Mine started working a while ago after an update in Z2M and it responds pretty much straight away and only a few seconds delay at worst.