Strangely, the door opened by itself.

Literal

Strange thing [to-に], door [topic-は] by-itself opened.

ひとりでに = 'by itself / on its own' — an adverb for spontaneous, unmotivated actions. 開いた (あいた) is the intransitive 'opened.' A small uncanny moment.