Always use visual homing, it solves so many issues and problems:
https://github.com/openpnp/openpnp/wiki/Visual-Homing
Some users do not even have homing switches, they just jog the
camera roughly to the fiducial, then do pure visual homing (the
HOME_COMMAND just resets the coordinates to match those of the
fiducial, likely with G92).
_Mark