If you need MINIR4M to work with the whole Tuya system, more info is needed.
Most importantly, what’s the voltage between the two nodes? If it’s DC with low voltage, let’s say 20 or 5V, you will need a smart relay with dry contact as an additional trigger. The upcoming SONOFF mini-D should work.