'Return the state of the device.'

@property
def state(self):

    status = self.simplisafe.state()
    if (status == 'Off'):
        state = STATE_ALARM_DISARMED
    elif (status == 'Home'):
        state = STATE_ALARM_ARMED_HOME
    elif (status == 'Away'):
        state = STATE_ALARM_ARMED_AWAY
    else:
        state = STATE_UNKNOWN
    return state
