I don't know why but I had the urge to clean my house late at night, so I did this until the wee hours of the morning.
この場合、次のような言い方ができますよ。
ーI don't know why but I had the urge to clean my house late at night, so I did this until the wee hours of the morning.
「なぜか夜遅くに家の片付けのスイッチが入って、朝方まで片付けていた」
to have an urge to ...「…したい衝動に駆られる・したい気になる」を使ってスイッチが入ることを表現できますよ。
ご参考まで!