Personalized Control of Smart Environments