That is how i always try to remember it. If a bafang can controller / motor has bungling wires and uses that trapezium 8 pin connector and having separate wires for the lights, it needs what i call for myself a normal 1T4 canbus cable. Like the one you get included if you buy a BBS01B canbus motor and that cable works also on bafang hub controllers if they have separate wires for the lights like you said.The harness works on the CAN hubmotor controller for sure. There the wires for the lights are not on the harness, but on the controller directly.
If the motor has all connectors placed in motor housing like M510 and others then it needs cables with wires for the lights integrated in the cable (if you need lights), which is clearly visible if they have wires for lights or not.
Those Chinese pictures are indeed not always correct, like in the picture you mentioned for the hub motor classification, they have red cross for "other brand motor" and "other bafang hub motor". But that 1T4 canbus cable just works fine as long as you use for that hub motor a bafang controller having separate wires for lights.
In the past I have bought some of those different flavors harness cables because sometimes i need them and i also bought some with "open" end. for checking the ports / connections.









