A Profile Manager for Home Automation and Device Management