Problem with z-trim and homing

I’m getting crazy with a simple problem, If anyone could help me…
I’m trying to set the bed position at Z=0.
I send G30 Z0 (I have a probe without offset)
Eventually M306 Z0 (redundant)
then M500
moving the printer then G0 Z0 F2000 works like a charm.
Then I home my printer: G28
and when I ask G0 Z0 F2000 I have my initial un-trimmed position
Many thanks in advance for your help
(Nb. I just updated with the last edge firmare but had the same problem with previous version)

Imported from wikidot

I found the problem:

"Note for Deltas using M666 to set soft trim

When you home a delta that has non zero trim values, you will find that X and Y are not 0 after homing. This is normal.
If you want X0 Y0 after homing yo can set `move_to_origin_after_home true` in the config, this will move the effector to 0,0 after it homes and sets the trim. However note this may crash into your endstops, so make sure you enable limit switches, as this will force the carriages off the endstops after homing but before moving to 0,0.
"
Ah ah!

Wrong deduction, this does not affects Z, I still have the issue….

I’ve got the same problem. G30 and M306 appear to be mutually exclusive.
If I use G30, M306 does nothing until after the next G28, which seems to me to defeat the purpose of using M306 to set a saveable Z0.
And yet I’ve seen posts that say “Easy, just use G30 Z#.# and then M306!”
Doesn’t work.

Thanks for your feedback! It seems to me like a bug…
I’m editing the config_override manually and it works…
The only thing to consider when doing things manually is that G28 followed by G30 does not report the gamma_max if you have: alpha_homing_retract_mm 5
After adding 5mm to the reported value, I touch the bed at Z=0… at the end!