I agree that knackered batteries can show themselves in the strangest of ways!
You don't mention trying a spare fob as this would possibly eliminate the fob as a root cause.
You can defeat the immobiliser by turning the drivers door lock with the key a set number of times, the proceedure is in the handbook, never tried it myself.
Mike