Switch relay on/off

These are the settings in my config.txt:

switch.psu.enable true
switch.psu.input_on_command M80
switch.psu.input_off_command M81
switch.psu.input_pin_behavior momentary #probably not required
switch.psu.output_pin 1.27ov! # Y_Max Endstop; tried all options and combos: open drain, pull-down, inverted to no avail. Maybe pin is missing capabilities??

switch.psu.output_type digital # on/off only

should I use analog (pwm) instead of digital? Any ideas, pointers?

Imported from wikidot

Ymax is an endstop input, you shouldn’t be using it as an output it has special circuitry that will interfere.