How to replace hub motor cable in e-bike?
I had a similar problem with a motor broken during shipment (luckily the manufacturer sent me a new one). I tried to fix the broken one by replacing the cable, but it's quite hard to do, because the space inside the housing is quite small, and when I tested the motor it worked for a while until the housing, by rubbing the cable, shortened the sensor cable, and broke the sensor board in the motor. I could reasonably run it sensorless, but you need a sensorless controller if this happen. Long story short is not easy at all, I'm quite good in soldering but failed in this regard. And disassembling the motor, at least with my geared unit, is not so easy as well, so if you have nothing to lose you might try it, but be prepared for a long evening of struggling.