E27 Shelly1 Lamp Base
Basically the idea is to print an E27 lamp base compatible with "whole tooth e27 stand" (like the one in link below) capable to hide a Shelly1 smart switch in it.
E27_Shelly1_Lamp_Base_02.stl and E27_Shelly1_Lamp_Base_03.stl are more or less the same, except for the screw ring in "02" while "03" is made for sockets with no screw on the base (like the one in photo).
Wiring diagram in images.
This thing was made with Tinkercad. Edit it online https://www.tinkercad.com/things/0Sn0WcCogJO
Whole tooth e27 stand (aliexpress)
https://it.aliexpress.com/i/32876223246.html