I’m no expert on the BL Touch. Had one for about 2 days and tossed it in a return envelope. But I did just finish upgrading to 3.1.1 so I’ll try to help.
Change the M574 Z1 S2 to M574 Z0 ; no z endstop
You are attempting to use the probe as the endstop correct? So you will need to call the probe with a G30 command to probe the bed and set the position. G29 will also call the probe for leveling.
M558 P9 C"zprobe.in+zprobe.mod" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
Not sure what the +zprobe.mod is for? From what i read that’s for maestro...try removing that.
Also as mentioned the M558 command I dont think should be in your deployprobe.g it should be an M280 command.