I was looking for a smart IR device to control some IR curtains, and tried this YTF Wifi Smart IR remote from Amazon (https://www.amazon.com/gp/product/B07H46LJZK).
Unfortunately the app didn't allow custom programmed IR codes to be hooked up to Automation / Google Home / IFTTT (only predefined ones), so I cracked it open to see what was inside and if it was hackable. I became hopeful after seeing what looked like a familiar ESP8266, and discovering that the TYWE3S is exactly that.
I stumbled across this repo in my googling, and decided to give it a try. Got it running with no problem, and I wanted to share my pin configuration after a few hours of trial and error:
{ "YTF-Universal",
0, // GPIO0
0, // GPIO1
0, // GPIO2
0, // GPIO3
GPIO_LED1_INV, // GPIO4 Blue Led
GPIO_IRRECV, // GPIO5 IR Receiver
0, // GPIO6
0, // GPIO7
0, // GPIO8
0, // GPIO9
0, // GPIO10
0, // GPIO11
0, // GPIO12
GPIO_KEY1, // GPIO13 Button
GPIO_IRSEND, // GPIO14 IR Transmitter
0, // GPIO15
0,
0 // ADC0 A0 Analog input
},
This device is a sleek little smart IR module for ~$30, and this software makes it a ton more useful. Thanks!
Great finding, could you add to wiki please?
Thx!
This seems to be the same
https://www.aliexpress.com/item/Tuya-universal-Smart-IR-Hub-remote-control-Voice-Control-AC-TV-Work-With-Alexa-Google-Home/32951202513.html
Device is now in dev release.
@pastudan Great work. i happen to buy a Tuya app based universal IT remote, I have flashed it with TASMOTA.
Product Link: https://www.aliexpress.com/item/Zemismart-IR-Bridge-Control-Air-condition-Fan-TV-For-Smart-Life-App-Google-Home-Alexa-Echo/32922000072.html?spm=a2g0s.9042311.0.0.35214c4dTdP77D&fbclid=IwAR2vFVs9KPsP4d6DKNMCrmDJtk8iwrhP1RHjEB4U6odEAzy-W_0_ovPj7-0
I was able to figure out IR receive & Send GPIO (ref below image)



Query:
OFF: IRsend {"Protocol":"NEC","Bits":32,"Data":50153655} WORKING
ON: IRsend {"Protocol":"NEC","Bits":32,"Data":50153655} NOT WORKING
19:07:25 MQT: tele/sonoffir/RESULT = {"IrReceived":{"Protocol":"UNKNOWN","Bits":114,"Data":2896510163,"RawData":[3788,1448,622,1136,616,1138,592,442,590,442,614,418,590,1160,618,418,612,418,622,1134,592,1054,726,416,614,1090,664,452,580,414,616,1138,616,1136,620,416,616,1136,618,1136,618,416,616,454,580,1134,618,414,618,414,620,1136,616,454,580,414,616,416,618,414,618,414,618,414,616,414,620,452,580,416,614,416,616,418,614,416,616,452,580,452,578,418,620,416,616,414,616,416,616,416,616,418,616,1134,618,416,616,418,618, ...@arendst advised to change the tasmoto source with following values
my_user_config.h
IR_RCV_BUFFER_SIZE 1000
IR_RCV_TIMEOUT 50
PubSubClient.h and sonoff_post.h
MQTT_MAX_PACKET_SIZE 2000
, but still with those changes i dont get the full RAW code.
Have you come across these issues? Do u have a solution?
@Jason2866 added to wiki
@ceaswaran you'll notice that the IR code starts repeating somewhere after the first 50 or so comma separated numbers. Not exactly, but I think thats because of how it is encoded vs how raw recv displays the data. I suspect if you copy the code up to the dots and use irsend (keep in mind you need to add a leading 0 to signify 38khz) you should see it works fine.
@pastudan prefixed 0 & added code till dot dot dot. using IRsend
none of the AC's work :(
I got the same device, how do I apply your configuration? Sorry very new to this
This seems to be the same layout for the Monoprice Stitch device. (Same hardware)
Interestingly, I had to cut the trace going from the RX and TX serial pads towards the USB port. It appears they were being bridged somehow, causing all sorts of serial errors.
@viertaxa nice solution. In the latest development versions I disabled serial comms for this device which also solves the serial loopback issue. So no need to cut wires.
@viertaxa thanks for mentioning that. I thought I just had a faulty device! I didn't have the loopback issue when I first loaded the firmware, but it popped up later. Can you show an image with exactly which trace you cut? My PCB is black so it's difficult to follow the traces.
I wonder why they would bridge those 🤔
@pastudan load latest firmware and you dont have this issue without cutting traces
@Jason2866 @arendst wouldn't that create a problem where you can't configure your device over serial? I needed the serial interface to configure my wifi username / password after loading the sonoff firmware, since I didn't want to take the time to compile a version with them built in. Maybe there's a better way I'm missing?
Via wifi. Read wiki...
@pastudan
Do you mind to share how did you set the device into flashing mode? I have the exact same unit, but couldnt set it into flashing mode.
I tried shorting GPIO 0 to GND and RST to GND, but failed.
Thanks!
@jamietang68 if I recall correctly, you need to connect GPIO 0 to GND during boot, and then release it during flashing
@pastudan Thanks for reply. Yeah i tried that but it doesnt seems to work.. do you remember if the blue led is blinking or stays on during flashing mode?
If any LEDs blink while powering up then it didn't go into programming mode. When GPIO0 is grounded (and kept grounded for 3-4 seconds), no LEDs should light.
@meingraham got it! thanks for the info!
Anyone still here? I develop tech for special needs kids. I am wanting to control this YTF IR blaster via a iOS app. Is there an API or has anyone hacked with Python or something?
RJ :)
@rjcooper725 this firmware supports MQTT which is a well documented API that you could build an iOS app around. https://github.com/arendst/Sonoff-Tasmota/wiki/MQTT-Overview
@rjcooper725, besides MQTT, Tasmota also supports control over HTTP and over KNX IP MULTICAST
See wiki at: https://github.com/arendst/Sonoff-Tasmota/wiki/Commands for control over HTTP
Hi!
Please check this one out for me? (IR blaster)
Tx!
Sent from my iPhone
On Mar 22, 2019, at 5:16 PM, Adrian Scillato notifications@github.com wrote:
@rjcooper725, besides MQTT, Tasmota also supports control over HTTP and over KNX IP MULTICAST
See wiki at: https://github.com/arendst/Sonoff-Tasmota/wiki/Commands for control over HTTP
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Thanks for providing the pinout for this device @pastudan.
Slightly off topic, but I want to use the codes from IRRemoteESP8266 (as that's the only library that has my Fujitsu AC codes), can I create my own firmware using that library and flash it onto this device using these pins?
Edit: Nevermind, found that Tasmota uses IRRemoteESP8266.
Has anyone configured Tasmota IRHVAC climate control on HA?
Thanks again for the information!
@2016for use Tasmota it can send receive raw codes
Hey I am finally ready to flash this. Any suggestions on how to flash it without having to solder wires onto the flat PCB solder pads?
(Want to backup firmware before flashing, so I don't think Tuya-Convert will be helpful)
Tuya Convert does backup firmware
Hello, I flashed this IR blaster:
@pastudan Great work. i happen to buy a Tuya app based universal IT remote, I have flashed it with TASMOTA.
Product Link: https://www.aliexpress.com/item/Zemismart-IR-Bridge-Control-Air-condition-Fan-TV-For-Smart-Life-App-Google-Home-Alexa-Echo/32922000072.html?spm=a2g0s.9042311.0.0.35214c4dTdP77D&fbclid=IwAR2vFVs9KPsP4d6DKNMCrmDJtk8iwrhP1RHjEB4U6odEAzy-W_0_ovPj7-0
and it works only when I power the esp directly from the usb/serial programmer, but if I power it from the microusb connector it does not show any working activity, green leds are powered and the voltage in the gnd and vcc pins are correct.
I am out of ideas :-( ... any idea why it might be happening?
Can you upload a picture of the internal board/PCB?
@damocles-git i use it with tasmota . are u able to see sonoff-XXXX wifi?
Can you upload a picture of the internal board/PCB?
I'm sorry, I forgot to upload them:


@damocles-git i use it with tasmota . are u able to see sonoff-XXXX wifi?
Hi ceaswaran, yes .. I can use tasmota with the esp8266 chip (this is mqtt and http) only when it is powered directly from the serial programmer even the green leds are on, wifi settings are configured through the user_config_override_sample.h file, but when I disconnect the programmer and use the microusb connector to power it the green leds are on again and not wifi activity is showed in my wifi network, no smartconfig, nothing!
Did you flash the chip using DIO? This happened to me when using DOUT before.
On May 27, 2019, at 6:14 AM, damocles-git notifications@github.com wrote:
@damocles-git https://github.com/damocles-git i use it with tasmota . are u able to see sonoff-XXXX wifi?
Hi ceaswaran, yes .. I can use tasmota with the esp8266 chip (this is mqtt and http) only when it is powered directly from the serial programmer even the green leds are on, wifi settings are configured through the user_config_override_sample.h file, but when I disconnect the programmer and use the microusb connector to power it the green leds are on again and not wifi activity is showed in my wifi network, no smartconfig, nothing!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/4855?email_source=notifications&email_token=AIAWFA6LWEKOOD5AX6MWMQTPXOQ75A5CNFSM4GOVPOA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWJIPRY#issuecomment-496142279, or mute the thread https://github.com/notifications/unsubscribe-auth/AIAWFAZTDY6XTEL7ZWZXOTLPXOQ75ANCNFSM4GOVPOAQ.
Did you flash the chip using DIO? This happened to me when using DOUT before.
I flashed it with DOUT, as stated in the wiki:
Only Flash Mode DOUT is supported. Do not use Flash Mode DIO / QIO / QOUT as it might seem to brick your device.
this is my command line:
'esptool.py -c esp8266 -p /dev/ttyUSB0 -b 921600 write_flash --flash_mode dout --flash_size 1MB 0x0 sonoff-6.5.0.2.bin'
Finally it worked :-)
Normally I use an usb hub to connect the devices, I test it with a different power adapter and it worked, very big thanks for this fantastic software!!
@pastudan prefixed 0 & added code till dot dot dot. using IRsend
none of the AC's work :(
Were you able to fix the dot dot dot issue?
Hi Pastudan,
how did you open the IR Blaster? There aren't any screws visible on mine.
Thanks for your help.
Greetings
Tom
If I remember correctly you have to use a thin screwdriver or knife to get the case open (separating the top and bottom of the case).
There is a way to do it without snapping plastic or otherwise damaging the unit, just move around the edges until you feel a spot with less resistance and start applying a little pressure there.
Sent from my iPhone
On Aug 23, 2019, at 5:38 PM, thomas-lentz notifications@github.com wrote:
Hi Pastudan,
how did you open the IR Blaster? There aren't any screws visible on mine.Thanks for your help.
Greetings
Tom—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
I just looked at my device and it seems like the place to start is the green highlighted area in the attached photo
Hi Arduino43,
thank you for your quick help - that worked fine.
Greetings
Tom
Hi,
I have 3 tuya type Plugs which i successfully flashed with the tuyaconvert OTA method. I also have this same YTF tuya type IR bridge and wanted to flash it as well via the same method since based on the wiki it should work the same without having to crack the unit open.
I did the exact same steps as i did with the plugs. I put the YTF bridge into pairing mode (blue led blinking fast) and then started the flashing process. Initial results show that the convert program is connecting to the device as the flashing stops after a few seconds and i get a solud blue led which then turns off.
Unfortunately the flashing process does not go further from this point onwards. The original FW is not downloaded and i cannot flash tasmota.
Is there something i should do differently for this to work? Don't really want to crack the unit open and solder. I just want to get the same tuyaconvert OTA method working if thats a doable way.
Cheers