Next test was from Octoprint in Safe Mode where I had strange things happen, it ran the auto bed level ok, came back home but raised about 10mm and did not do the prime bit at the front of the bed and when straight for the center of the bed where it was doing the skirt in mid-air, once the skirt was done it dropped to the bed and started printing normally .
I was having the exact same issue. I've figured out that if you run this GCODE "before print job starts" it used my z offset settings I put in my printer. Now I'm printing on the bed and not above it in the air (Using a Tronxy x5sa):
G21
G90
M82
M107 T0
G28 Z0
G0 E3 F200
Not sure if you solved it but here's what I found to work:
I was having the exact same issue. I've figured out that if you run this GCODE "before print job starts" it used my z offset settings I put in my printer. Now I'm printing on the bed and not above it in the air (Using a Tronxy x5sa):
G21
G90
M82
M107 T0
G28 Z0
G0 E3 F200