240V ac power supply source and a bulb

As always google is your friend. A search for “fritzing part light bulb” (and looking in the images section) turns up this:

http://fritzing.org/projects/iot-switch-onoff-220-240v-device-with-nodemcu-5v-r

which looks to have the parts you need in the temp parts bin. You can export the parts by right clicking them and clicking export part, then use file–>open to load them in to a new sketch.

Peter