No sooner had I arrived home when it began to rain.
No sooner had I arrived home than it began to rain.
The construction is :
no sooner (this) than (that).
'when' would be correct in this sentence:
I had just got in the door when it started to pour down.