The reason why so many wires is it is probably compatible with either single pole or 3 way installations and needs a neutral and ground. Best bet is check the destruction's. If you have two black wires you probably have a neutral there which is good. PM me if you need a hand.