UPS battery alert when self-test

OK, thank you for clarification.
The only chance left for you is to copy the plugin to local structure and adjust the code to your needs as mentioned by Robin.