You seem to be picking up noise on your wiring for the Z home switch. If it is not shielded and properly grounded that would b e the best thing to do. You could try increasing the Debounce Interval on General Config page, try at 2000 and lower if it helps to as low as you can get.
Hood