Possible to set GPIO state by printer status?

I have a beacon light and a musical announciator laying around, and I want to use them to indicate the status of the printer. I designed some circuit to interface them and now they can be operated by toggling GPIOs. The problem is seems like the enclosure plugin does not have a "printer status input". Is there any other plugin that can do this, or do I need to write my own? In fact I am looking into plugin development since I wanted some more features including make beacon not only light up but also flash, trigger different tunes of the announciator, one-button muting, etc. I just wanted to make sure I don't reinvent the wheel.

Maybe this does what you want :slight_smile:

Just add the action command to the start / end gcode :slight_smile:

Thanks, seems like it still does not satisfy my need. Maybe I'll try to do my own plugin.