'Return the state of the device.'

@property
def state(self):

    if (self._pwstate == 'PWR1'):
        return STATE_OFF
    if (self._pwstate == 'PWR0'):
        return STATE_ON
    return STATE_UNKNOWN
