when you have two separate outputs , than it should be possible, but I recommend to use the shelly only for the light.
The output for the lamp must not have any connection to the output of the fan. So like a dry contact. hope it's understandable what i mean
SebMai - why do you recommand only use light? Is there any risk if also fan would be connected?
If there are two lights controlled by this kind of switch (2 gang), how the connection on SHelly 1L should look like?