My guess is the brown wire goes to the wall switch, the transformer is warm to the touch so I am pretty sure its getting electricity.