My plugin triggers different light signals depending on the printers status e.g White light on when connected, dimmed while printing, green on print complete etc.
I am adding a feature to allow users to add additional signals for any other state they are interested in. It would make the users life easier if i could present them with a select box instead of requiring them to look it up then type it. I'd also like to avoid, if possible, hardcoding the possible states manually from the list in the documentation.
So as per the title, is there a way to pull a list of available printer states programatically?