I was sick, so I stayed home all day.

Literal

Sick was [because-ので] all-day home [in-に] was.

一日中 means 'all day long' — 中 as a suffix meaning 'throughout.' 家にいた uses the existential いる for a person staying at a location. Natural and conversational.