I was in need to change a switch from out mirror cabinet, to something more advanced. So I decided to use a zigbee-switch. To be able to use the switch without any other equipment (i.e. my wife :)) I designed a housing for a Sonoff ZBMini (https://www.amazon.com/dp/B08MJL8G3C).
Works perfectly in the housing. I added a small slot on either side, to have the ability to add something in the future.
You could print without supports, but I recommend to use supports for the cover, as the clamp fits very tight.
Just to remind. For my knowledge it's not allowed for untrained persons to handle with electric installments.