A concept to optimize power consumption in smart homes based on demand-side management and using smart switches