This is the wiring diagram we came up with. This is ok i think? I don’t have the resistor yet so i can’t test it.
The original cable has actually 5-wires: red, black, white, green and blue.