An Agent-based Application for Home Intelligence