and don't be confused by the last picture in the link. What counts is this table: https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Wire-SW102-to-TSDZ2#summary-of-connections-between-sw102-and-tsdz2-motor-cable
yes, it is correct. But I think the wire colors are not correct in the SW102 manual. I used this guide:
https://github.com/OpenSourceEBike/TSDZ2_wiki/wiki/Wire-SW102-to-TSDZ2
this worked in my case for the old and new version of the SW102.
it's easy to distinguish both versions of the SW102: The cover of the up and down-keypad (without 'M'-Key) measures 20mm on the old vs. 26mm on the new version. So the new version is slightly bigger.