@property
    def is_on(self):
        return self.smartplug.state == 'ON'
Return true if switch is on.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/switch/dlink.py/SmartPlugSwitch.is_on