Rewiring a UK dimmer switch with a Wifi switch
Put the two blues into the N connector 

The browns go into L and L1, but you have to get them the right way round.

one of the browns goes to the lamp and the other comes from the supply (you will probably need to check for voltage to determine which is from the supply) 

The supply brown goes into L and the lamp brouwn into L1

join the earth wires with an approved joiner. over here earths need two screw joiner while other conductors don't, so you probably shouldn't use that joiner that came off the blue wires.