You have answered your own question.
The photo of the Grasslin QM1 connections you posted are:
and the photo of the EPH R17:
The wires move from the terminals of the Grasslin to the terminals of the EPH R17 that have exactly the same function.
So:
N=N
L=L
Comm=Com
On=On
Off=Off
Ignore the terminal numbers, that's manufacturer specific, it's the function [ie what the terminals do] that is important.