An Ambient Intelligence Technology for Energy Saving