If i hook the wire to switched power it only works when lights are on tried every combination i can think of but cannot seem to get constan...

If i hook the wire to switched power it only works when lights are on tried every combination i can think of but cannot seem to get constan...