Help find existing SmartApp - control of lights that may already be on

You asked the same question back on Nov. 1 in this thread: Code to not turn lights off that are already on. The app there could easily be modified to do what you want.