@jay_s_uk I saw that one, but it doesn't automate the trigger heights, but the calibration process.
I did see a thread that included automating the trigger heights,
https://forum.duet3d.com/topic/14280/invitation-to-share-your-conditional-gcode-scripts
but havent yet found any follow up.
I also found this one, which I'll have to read through first!
https://forum.duet3d.com/topic/17872/automatic-bed-leveling-with-conditional-gcode-iterations/40