The Sonoff SNZB-04 Door & Window Sensor is designed for blunt (is this correct? correct me in comments please) doors and windows. But most European doors have a rebate, which causes the sensor to fail. Hence, there was the need for a socket to elevate the sensor from the door frame to the door leaf level.
The design is done in Fusion 360 and is parametric. In the Design Workspace open Modify → Fx Change Parameters and change the *holder_height* parameter. Use the measurement tool (shortcut i) if you are not sure it has the right height for your door leaf.
Designed to use as little filament as possible.
I printed it in PLA with 15% gyroid infill.
The author hasn't provided the model origin yet.