Add get device by device name function