While some gadgets have a higher upfront cost, they can lead to long-term savings on energy bills.