Depends on your definitions and where lights are connected and who needs to switch lights and how to detect your states. E.g. problem - if server can not connect it can not control over firmware. And what is a problem? It might prevent switching lights. And what is ok? Printing is easy as you have start/end gcodes where you can add logic to switch light. But then it gets problematic. And which software are you using? You posted same for host?