My Smart car key unlocks the car but won’t turn off the immobiliser, why?

It likely the key has lost its coding (9 indicator flashes should accompany this when pressing the key fob unlock or lock button if it’s faulty) and will have to be re-coded along with the car and any spare keys you might have too. They all will have to be taken to someone with a Star Diagnostic machine to re-code them all together. Its worth getting an additional new key before so you can get it coded at the same time, if you don’t already have a spare key.