Homing override, how to use stepper endstop as parameter

hi guys,

just switched from repetier to klipper for my corexy.
i got everything working but saw that when after homing (primarily z ) was staying on the sensor triggering it high.

now doesnt have to be a problem but after doing another G28 the z drops down triggering a error that it hasnt cleared the sensor first.

so the idea was to clear the sensor after homing by moving z x mm away of the sensor.
i saw in klipper documentation u can use [homing override] because i didnt saw any parameters at the stepper config to move x mm after homing (but can be me, first time using klipper)

the config would look like this
[homing_override]
gcode:
G28 Z0
G28 X0
G28 Y0
set_position_x: 10
set_position_y: 10
set_position_z: 280

but instead of set_position_z: 280 i would like someting like this set_position_z: stepper_z.position_endstop -10
i tried ofcourse but the config doesnt like this, so is there another option to do this instead of using a fixed value?

hi guys

found out it doesnt matter really
i changed it to

[homing_override]
gcode:
G28 Z0
G28 X0
G28 Y0
G1 Y10 F600
G1 X10 F600
G1 Z280 F600

i was thinking that the values would changes allot when i did bed leveling but the config is just recalculating position according to what the bed leveling is wich is very neat