@property
    def is_on(self):
        return self._state == apcupsd.VALUE_ONLINE
Return true if the UPS is online, else false.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/apcupsd.py/OnlineStatus.is_on