"Filament Unloaded" After starting print. New BTT Smart Sensor V2 - Filament Runout

I seem to have the filament runout sensor installed and working correctly. However everytime i start a print now, after the prime blob it reports "filament unloaded" and i have to hit play again.

Here is my printer.cfg attached and below:

[filament_switch_sensor RUNOUT] 
switch_pin: ^PG12
pause_on_runout: True
runout_gcode:
  PAUSE # [pause_resume] is required in printer.cfg
  M117 Filament not detected
  SET_IDLE_TIMEOUT TIMEOUT=86400
  #insert_gcode:
  #M117 Filament switch inserted


[filament_motion_sensor JAM]
switch_pin: ^PG13
detection_length: 20 # accuracy of motion sensor 2.88mm 
extruder: extruder
pause_on_runout: True
runout_gcode:
  PAUSE # [pause_resume] is required in printer.cfg
  M117 Filament jam detected
  SET_IDLE_TIMEOUT TIMEOUT=86400
  #insert_gcode:
  #M117 Filament encoder inserted

[delayed_gcode DISABLEFILAMENTSENSOR] ; This will disable the SFS 1 second after klipper starts
initial_duration: 1
gcode:
    SET_FILAMENT_SENSOR SENSOR=RUNOUT ENABLE=0 ; Put your filament sensor's name after SENSOR=
    SET_FILAMENT_SENSOR SENSOR=JAM ENABLE=0 ; Put your filament sensor's name after SENSOR=

Added to Start and end macros:
    # BTT SFS Runout Sensor enable
    M117 ENABLING the Smart Filament Sensor
    SET_FILAMENT_SENSOR SENSOR=JAM ENABLE=1 
    SET_FILAMENT_SENSOR SENSOR=RUNOUT ENABLE=1

    # Disable Smart Filament Sensor
    M117 DISABLING the Smart Filament Sensor
    G92 E0
    SET_FILAMENT_SENSOR SENSOR=JAM ENABLE=0
    SET_FILAMENT_SENSOR SENSOR=RUNOUT ENABLE=0
Solution
Anyways here is my tutorial on setting up the BTT filament sensor. https://wiki.circuitlaunch.com/e3cfb3ddcf7445ae852b7a71da142c96
Circuit Launch on Notion
Intro to Circuit Launch
Was this page helpful?