Snapmaker 2.0 + Octoprint + Filament sensor

Hey guys,

Does anyone have got this to work yet? Or does the build in filament runout sensor only work with the touchscreen? if anyone knows how to use the build in sensor with octoprint, that would be awesome!

I have read in other threads that it does not work with Octoprint.