Tuya Smart IR with home assistant

Can you create a script from a scene? I can see all my remote buttons in HA scenes. If i activate it nothing happens.

Found my problem thanks. Had to reset my tuya receiver a few month ago and when I looked in my tap to run I noticed that all actions were removedšŸ™ˆ.

All is now sorted againšŸŽ‰

same problem

So, local tuya (hacs) isnā€™t able to control tuya IR blasters? Has anyone tried to ā€œtasmotizeā€ one ?

2 Likes

Just found this page

Iā€™ll try to reflash (=brick) mine :slight_smile:

2 Likes

I succeeded to flash my unnamed/unmodeled IR blaster with Tasmota. My IR Blaster was powered by the ā€œtasmotisableā€ TYWE3S module.

I applied the YTF Universal Remote IR Controller (from YTF Universal Remote IR Controller Configuration for Tasmota) and it seems to work well.
Now I am able to send IR commands to my Yamaha Hi-Fi stereo system from a custom Lovelace buttons card that mimics the original Remote:

Thanks to @ChewbaccaBG for suggesting the right thing to do.

2 Likes

How did you flash it? Did you have to connect the EN pin to GND to reset the device to enter boot mode?

Iā€™m trying to flash mine with a similar chip but canā€™t get it to work

No, I used this cabling, with a Raspberry Pi as a serial programmer.

To make the TYWE3S boot in flash mode, you need to short pin GPIO0 with GND. Give power, count to ten, and then you can disconnect that pin, the module should be ready to flash.

I used a step down converter from the 5V pin of the Raspberry to avoid drawing too much current from the 3v3 pin of the Raspberry GPIO. But this is only an ā€œexcess of cautionā€ (I donā€™t know if this is correct in english): I have been said that the 3v3 current from the raspberry is enough to power up the TYWE3S.

If you use esptool, you can test the flash mode issuing the ā€œflash_idā€ command:
esptool.py -p /dev/ttyAMA0 -b 115200 flash_id
You should obtain information about the module.

HTH!
Lorenzo

1 Like

another workaround to ensure it can work locally
using ZigBee IR paired to your Tuya any kind of ZigBee Hub
get a ZigBee Socket that has timer option

in Tuya, preset certain timer value to be preset IR action
e.g.

  1. when Socket A timer set to 1000, then run action B from IR controller, after that, set the Socket A timer back to whichever it belongs, preferably 0
  2. in HomeAssistant with Local-Tuya or Tuya-Local integration, in your automation, set the Socket A timer to 1000.

Pros : no need to purchase zha or z2m. Also no flasing required, so your Tuya IR can still be controlled by cloud voice assistant such as GoogleAssistant/Alexa/Siri
Cons : if the Socket is down and you are replacing with a new socket, u need to reprogram all the timer.

I am sure if you are Tuya + ZigBee fans, you must have certain ZigBee sockets.

so wait you telling me the S18 Tuya WIFI Smart IR Remote Control with the Smart Life app noooo one has got it working? Its as less than $5 item thats perfect and sighā€¦ need to do some more digging, maybe i can tasmatize it or something.

It is possible to use these Tuya Wifi IR remotes completely locally with IR capabilities. If you add it to Tuya Local or Local Tuya fork then itā€™ll show up with a remote entity.
image

Then in a very similar way to how you learn codes with a Broadlink devices you use action: remote.learn_command to learn the codes and action: remote.send_command to send the commands. It stores it in /config/.storage/tuya_local_remote_codes or localtuya_remotes_codes

I even got it to work with the SmartIR fork (it probably also works with the original version)
You simply add the device as a Broadlink device. Unfortunately the IR code is different to Broadlink or Tuya Zigbee IR codes so youā€™ll need to learn them fresh. I donā€™t know if there are any converters yet.

  - platform: smartir
    name: Tuya AC
    unique_id: tuya_ac
    device_code: 10274
    controller_data:
      controller_type: Broadlink
      remote_entity: remote.universal_remote_control
      delay_secs: 1.5
      num_repeats: 1
    temperature_sensor: sensor.universal_remote_control_temperature
    humidity_sensor: sensor.universal_remote_control_humidity

I found if I tried to use Tuya Zigbee IR codes it would crash the Tuya Wifi IR remote and Iā€™d have to power cycle it. It would transmit Broadlink codes alright but none of my devices would respond to it. Ultimately Iā€™m probably gonna swap it out with an ESP chip and run ESPHome or Tasmota but it was fun to see how far it could go with just Tuya. This was all tested with the S1 Pro Tuya Wifi Remote/Blaster https://www.aliexpress.com/item/1005007191700863.html. It has a CB3S chip and has patched Tuya firmware so canā€™t currently be flashed OTA.