it seems, that you not call the api right ..The Sensor is correct in tool configuration ..
A Message from Klipper only comes, when klipper prints ..
I have the Sollution to patch the klipper ..
change line 86 in /usr/share/klipper/klippy/extras/filament_switch_sensor.py from
elif is_printing and self.runout_gcode is not None:
to
elif self.runout_gcode is not None:
than a message is send, like configured, without the printer must be in state printing ..
But than you must make sure, that you check in repetier, that the printer is printing, and only send m600 or similar only when a print is running .. actual i dont know how to implement it in an event ..