Rendered 3D model of a U-shaped wall bracket with two countersunk screw holes, next to the title Parametric sensor mount

Parametric Sensor Mount in OpenSCAD with Claude Code: A Home Assistant 3D Print

Small Zigbee and Bluetooth sensors tend to ship with a sticky pad and nothing else. The pad fails the first time you move house or the wall is cold and damp, and the sensor ends up behind the radiator. A printed bracket fixes that, but I’d rather not spend an evening in CAD for a plastic box. OpenSCAD is the opposite of CAD. The model is a text file, so Claude Code can write it, render it and check it in a loop. This post has the file I ended up with, the checks I ran, and the one that caught a mistake the obvious check missed. ...

October 27, 2026 · 6 min · Tom Cocking