# Homes if not homed, skips homing if already homed. [gcode_macro COND_G28] gcode: {% if "xyz" not in printer.toolhead.homed_axes %} G28 {% endif %}