Smart Filament Sensor Unload button Action not triggering

According to the github (https://github.com/HelgeKeck/RatOS/blob/documentation_v2.1/site/docs/configuration/filament_sensors.md#configuration-3) I've configured it this way:

t0 orbiter smart filament sensor

[filament_switch_sensor toolhead_filament_sensor_t0]
pause_on_runout: False
event_delay: 0.1
switch_pin: ^toolboard_t0:PB3
runout_gcode:
_ON_TOOLHEAD_FILAMENT_SENSOR_RUNOUT TOOLHEAD=0
insert_gcode:
_ON_TOOLHEAD_FILAMENT_SENSOR_INSERT TOOLHEAD=0

[gcode_button toolhead_filament_sensor_button_t0]
pin: ^toolboard_t0:PB4
release_gcode:
{% if (printer.print_stats.state == "printing") %}
_ON_TOOLHEAD_FILAMENT_SENSOR_CLOG TOOLHEAD=0
{% else %}
_ON_FILAMENT_SENSOR_BUTTON_PRESSED TOOLHEAD=0
{% endif %}
press_gcode:

When I press the button on the sensor, I want to unload the filament.
But the sensor only blinks blue, but nothing happens.

Do I need to do anything else to unload on button press?
Solution
you can try to copy and past the T1 config and redo the T0 config, sometimes when copy and pasting you copy some invisible characters
Was this page helpful?