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.
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.
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.
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.