End-user centered events detection and management in the internet of things