Lighting a lamp with a widget

How do you create the reference to the lamp?