Set the device to pairing mode.
Now press the light button or the settings button (depending on the device type). The device will now exit pairing mode.
Alternatively, repeat step #1, wait 1 minute, and unplug the device.