Energy-efficient smart devices