Depends on where you live of course. My location power is very cheap, but even so, an old Optiplex machine with a few HDDs doesn’t use very much power, especially at idle.
Regardless though, I was just throwing out the rough concept. Your points are good, a smaller mini-PC or an old laptop even would work.