Octoprint Runout Sensor and Display

Now that the SE has it's firmware released open source by Creality, what would I need to modify in the Configuration_adv.h file to make the runout sensor work, and the display to show print progress when printing from Octoprint?

I've enabled HOST_ACTION_COMMANDS as such

#define HOST_ACTION_COMMANDS
#if ENABLED(HOST_ACTION_COMMANDS)
  #define HOST_PROMPT_SUPPORT
  #define HOST_START_MENU_ITEM  // Add a menu item that tells the host to start
#endif

but neither the runout sensor or the LCD has changed it's behavior over stock fw. Any ideas?

might be something wrong with the conditional settings for it. what if you add the following in there.

#define HOST_ACTION_COMMANDS
#if ENABLED(HOST_ACTION_COMMANDS)
  #define HOST_PROMPT_SUPPORT
  #define HOST_START_MENU_ITEM  // Add a menu item that tells the host to start
  #define ACTION_ON_PAUSE   "pause"
  #define ACTION_ON_FILAMENT_RUNOUT "filament_runout"
  #define ACTION_REASON_ON_FILAMENT_RUNOUT "filament_runout"
  #define ACTION_ON_RESUME "resume"
#endif

I'll try that, but should the action on filament runout be pause or filament_runout?

It might be, but I'm not as familiar with the filament runout stuff since I don't use it, but if you look at the terminal tab in OctoPrint when filament runs out you can probably see what "action" is sent by the printer. If it doesn't do what's expected either add custom actions plugin or switch that to pause. There could be stuff internally to Marlin that uses that filament_runout command for it's processing, but like I said I'm not sure.

you could also enable serial logging in OctoPrint's serial connection settings to get the full interaction between OctoPrint and printer to see what commands go which way, etc.

I looked at the terminal with my current firmware and pulled out the filament and there was nothing in the terminal, just fan speeds, temps, etc. I'll have to look into serial logging in octoprint, do you know how to do that?

It's a checkbox at the bottom of the serial connection section of OctoPrint's settings.

Nothing useful I'm afraid. I enabled logging, put filament in the runout sensor, pulled it out and disabled logging. Nothing in the logs reflected any of that.

2024-07-22 17:58:52,511 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2024-07-22 18:46:08,074 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2024-07-22 18:46:29,102 - serial.log is currently not enabled, you can enable it via Settings > Serial Connection > Log communication to serial.log
2024-07-22 18:47:02,016 - Enabling serial logging
2024-07-22 18:47:03,077 - Recv:  T:25.45 /0.00 B:25.78 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:05,060 - Recv:  T:25.45 /0.00 B:25.78 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:07,060 - Recv:  T:25.45 /0.00 B:25.72 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:09,060 - Recv:  T:25.45 /0.00 B:25.84 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:11,060 - Recv:  T:25.45 /0.00 B:25.84 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:13,060 - Recv:  T:25.45 /0.00 B:25.91 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:15,060 - Recv:  T:25.45 /0.00 B:25.81 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:17,060 - Recv:  T:25.45 /0.00 B:25.81 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:19,060 - Recv:  T:25.45 /0.00 B:25.78 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:21,060 - Recv:  T:25.45 /0.00 B:25.75 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:23,060 - Recv:  T:25.45 /0.00 B:25.87 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:25,060 - Recv:  T:25.45 /0.00 B:25.75 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:27,060 - Recv:  T:25.45 /0.00 B:25.84 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:29,060 - Recv:  T:25.45 /0.00 B:25.84 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:31,060 - Recv:  T:25.45 /0.00 B:25.81 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:33,062 - Recv:  T:25.45 /0.00 B:25.81 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:35,060 - Recv:  T:25.45 /0.00 B:25.91 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:37,074 - Recv:  T:25.45 /0.00 B:25.78 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:39,060 - Recv:  T:25.45 /0.00 B:25.72 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:41,060 - Recv:  T:25.45 /0.00 B:25.94 /0.00 @:0 B@:0 FAN0@:0
2024-07-22 18:47:41,624 - Disabling serial logging

not sure if it's required, but there may be some logic in Marlin that requires you to be printing during the filament runout for it to trigger anything.

I tried it while it was printing too, and nothing

Nothing to add, but I would sure like to see this work. In the mean time, I will have start my longer prints on the Ender control panel.

Any news here ? Looks like I have the same issue.