Your question is Event-Driven Automation Design. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Design an event-driven automation system that allows users to configure tasks that trigger automatically when specified events occur. For example, turning on lights when it becomes night or sending a notification when motion is detected.