Apply bltouch samples and retries to Z-homing?

Hi,
I have a BLTouch with the following config:

[bltouch]

speed: 3 # default = 5
samples: 4 # default = 1
samples_tolerance: 0.03 # default = 0.1
samples_tolerance_retries: 3 # default = 1

This config works fine for Z-Tilt-Adjust and also for Bed Mesh. I would have thought Z-homing would also use these probing config options, but it doesn’t. At least it doesn’t by default unless this is a bug.
Assuming this is intended behavior, is there a way to get Z-homing to use the bltouch config options listed above or do I need to make a [homing_override] config to enable this?

Thanks!

SOLVED!

I found this very well done Klipper plugin:
https://github.com/matthewlloyd/Klipper-Stable-Z-Home

Tried it out and works very well.
Thank you Matthew Lloyd!

But it doesnt do median of measured results. It only insure that the value is within the tolerance window.