Some doors do not have a surface that is flush with the wall they are on. It doesn't allow for an optimal alignment of magnetic door sensors.
I have made this bracket mount for the sensor that I am using ("Ouvopo Zigbee Door and Window Sensor", seen as "eWeLink DS01" by my Zigbee bridge). It holds the magnetic component of the sensor on the wall, with an offset to align it with the door surface. It can be mounted on the wall with the original adhesive or with screws (1 tight screw seems fine because there are not too many mechanical contraints).
I have made 5 versions for different offsets (from 5 mm to 25 mm) depending on the thickness of the door. I am also releasing the .f3d file to facilitate remixes and fine adjustments. The bracket_depth parameter is the wanted offset. Other parameters control the form factor.
The author marked this model as their own original creation.