The two wire one is no use, it is likely for a brake sensor , only that three wire one is a likely candidate.
Makers name of the controller, Lishui possibly ?
Yellow is likely the signal with Black & Red logically being the Gnd & 5v, though a meter will tell you the later two.