When I woke up, I was lying on the sofa.

Literal

Woke-up [when-たら] sofa [on-に] was-sleeping.

~たら here is temporal — 'when I woke up.' ソファー is a loanword. 寝ていた ('was sleeping/lying') uses ~ていた for the state discovered upon waking. Subject omitted throughout.