ESP01 switch

Hi

I have an ESP01 and I have a remote. If I manually short circuit (connect two remote wires together) the remote works. Now I need ESP01 to do it. Something like this. Is it possible to do it? By optocoupler perhaps? I can't use relay, cuz it is too big, and transistor, because two circuits should be separated from each oteher.

rat97:
Something like this. Is it possible to do it? By optocoupler perhaps?

That sounds fine. What a tedious video!

It will work as long as the button which you are imitating is not in series with the battery supply to the remote as the optocoupler would not be able to carry the full current of the transmitter.

Mind you, if the remote is battery powered, I cannot see why you need to isolate the two circuits.

I tried using a transistor, but couldn't get it to work :/. Do you think ESP01 will deliver sufficient amount of current to get it work?

Well, we have absolutely no idea of what "I tried using a transistor" means, so there simply is no answer to that.