Energy Saving by Ambient Intelligence Techniques