Mini4rm incorrectly installed? Heats up

I am finishing my new house, and an electrician installed several mini4rm devices, I will detail how he did it because I think it is wrong:
N- He put in the neutral wire
N- Leave it empty

L out- output to lamps
L in- phase
(jumpered L in and S1)
S1- phase
S2- switch output

also, I touch them and they are quite hot.

It is connected correctly according to this diagram.

When switched on or when on idle? What do you mean by “quite”? Are they hard to touch or just warm enough to feel it?

First of all, apologies for my English, I am Spanish and I don’t speak it well.

I mean that it is hot when it is connected, like when you are with a laptop working for about 2 hours, I do not know if they should be so hot or not, I’m worried about it.

Is it normal that the neutral is in the first output and not in the second one? and that the second one is empty?

and the bridge between L in and S1 is also correct? thank you

Connector (N) is common.

S1 and L(in) connectors are also common.

If there is a phase on (L in), everything is fine.
MINIR4M, if they do not have ventilation, are warm around 40*C

That’s right. There is, after all, a SOC-type processor sitting inside. It certainly won’t overheat. No worries there.

Remember not to overload the connector and relay. But if you only control the light, it certainly won’t be a big load.