Improving Energy Saving Techniques by Ambient Intelligence Scheduling