I know that the current is very low because I read it in the intercom microchip datasheet. I know that current can be hi even with 5 volts.
Ok, I just wanted to confirm if that "Therefore" was about the 5v or about the intercom.
If I'm not mistaken, from the datasheet, the 4066 supports only 10ma.
It's good to check the current anyway, just to be sure, but the Esp8266 can support up to 15ma.
Made some tests with the 4066, but the resistance in the output sometimes generates issues.
Come to think about it, you'll face the exact same problem with the Esp8266, but the internal resistance is lower (about 50 ohms) instead of the 180 ohms of the 4066
Why isn't the optocoupler a good idea again? It is basically a switch, has about the same internal resistance, and you protect your Esp8266.