How to save the enable-state of a filament sensor

Basic Information:

Printer Model: All Klipper Based
MCU / Printerboard: cross board

I am running a BTT smart filament sensor that gives me false positives for TPU and I currently want to just disable it if printing TPU.

However - in my slicer (orca) I always turn the sensor off for eg. the 1st layer of the print and then on again after the 1st layer.

Now I would like to modify these macros, so that the sensor gets enabled if it was enabled when the print starts - and stays disabled if it initially was disabled.

I found SET_FILAMENT_SENSOR SENSOR=filament_sensor ENABLE={1/0} but no GET_FILAMENT_SENSOR SENSOR=filament_sensor to save it in a variable or so to later use this to SET it as described.

Is there a way to do this?

Thanks!

BJ

See Commands templates - Klipper documentation

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.