I tried to monitor the sensor status, but I suppose I made an error somewhere.
I always get "OK" status when reading the sensor status after an error.
var StatusTest = sensors.filamentMonitors[0].status if {var.StatusTest} = "sensorError" M291 P{var.StatusTest} S1 ;M291 P"Filament Sensor - Sensor Error" S1 M24 M99 if {var.StatusTest} = "noDataReceived" M291 P{var.StatusTest} S1 ;M291 P"Filament Sensor - No data received" S1 M24 M99 if {var.StatusTest} = "tooMuchMovement" M291 P{var.StatusTest} S1 ;M291 P"Filament Sensor - tooLittleMovement" S1 M24 M99 if {var.StatusTest} = "tooLittleMovement" M291 P{var.StatusTest} S1 ;M291 P"Filament Sensor - tooLittleMovement" S1 M25 else M291 P{var.StatusTest} S1This look like I don't read the right value or it's refreshed since the event was raised and called the filament-error.g
Any help will be appreciated