I didn't want to solder the provided micro switches with the mellow kit, so I ordered DFW-05 micro switches from AliExpress.
DFW-05 Type H: https://de.aliexpress.com/item/1005007440874580.html
Here is an example:
[stepper_x]
## in M6 position
step_pin: PE0
dir_pin: PG3
enable_pin: !PG4
rotation_distance: 40
microsteps: 16
full_steps_per_rotation: 200
endstop_pin: PF10 #make sure to set the correct pin here.
position_endstop: 0
position_min: 0
position_max: 230. #original value 235.
homing_speed: 50
homing_retract_dist: 0
The author marked this model as their own original creation.