Whilst following the How-to to send an email when a connected UPS goes on battery, I noticed the actual checking of the UPS state is accomplished by checking the value of $on-battery. Is this value set by RouterOS and if so, is there a list somewhere of other global variables that are set up by the system?
Thanks.