No space for Shelly 1PM below switch - wiring in a box at the site of the switched outlet

  • Hi,


    I have a wall switch that switches a socket of a wall outlet, which is located across the room. The outlet has three sockets, two are unswitched and one is switched by the switch on the other end of the room.

    Now I would like to control the switched socket with a Shelly 1PM. Unfortunately, the Shelly doesn't fit in the in-wall box behind the switch.

    However, now I was considering whether it would be possible and safe to put the Shelly in a little box on the site of the outlet.

    In order to still be able to use the wall switch (just like whether the Shelly would be mounted behind the switch), I came up with the attached wiring diagram.

    If that works, I could put the Shelly 1PM in a little project box and connect it to two sockets of the wall outlet (to the switched and to the unswitched one) and then attach another outlet to the project box to which the light/appliance would be connected.

    I verified: There is no potential (0V) between the "L"/life of the switched and the unswitched socket, they are the same phase. The outlet is connected to the same circuit breaker.

    All plugs and sockets are polarized (no Schuko!), it is not possible to swap L and N.

    What I don't know is whether there is a state under which L/L1 is going to be internally (in the Shelly) connected to SW? Please could someone confirm whether this is the case or not? If it would be the case, my circuit would be hazardous, because the L prong of the plug that would go into the switched socket could be energized when pulled out.

    (Sidenote: There is a second outlet of that type in the room. I will not connect anything to the second outlet.)


    Thanks a lot!


    20230415_223442.jpg

    20230415_233531.jpg