Actually with two of these modules you can make work my solution too.
The w203 is a potentiometer (a variable resistor which can by used also as a variable voltage divider). By turning it logic says that you change the output of the DC Voltage. Use a multimeter and set its DC output to 6V. Please make sure that the power of the intercom can support both of these modules. You might also use a combination of my solution and
@Mostez (that is use one of the above module to power the nodemcu and use an AC relay as
@Mostez mentions).
Now my solution turns into this. Add a resistance connected to the output of the module so that the outout voltage is brought down to 5,2V and power the nodemcu with this. Take the 3,3 V from the corresponding pin of nodemcu and Connect it to pin D3 through a 220Ω resistance and connect an NPN transistor also directly to the pin (collector) and the ground (emmiter). Connect the base to the output of the second module which is powered by pin 4 of intercom. Add a correct value resistance to the DC output of the module to bring the final voltage to an appropriate level for the base. Make sure all values and power ratings of resistors are correct... Also connect the DC ground of module 1 to DC ground of module 2 and to the GND of nodemcu. Also connect the neutral of AC side in both buck converter modules and make sure that they are insulated from each other. I would use plastic gloves also. Please, also at last, make sure that the power of the intercom can support this.
Extra resources you might want to see:
1) What is a potentiometer?
2) Buck Converters
Also, these youtube channels will make you learn a lot. They did for me...
1)
Andreas Spiess
2)
Dronebot Workshop (especially this)