The first project for my computational thinking course, built with my team. The whole house lives in plain Python lists: rooms with a light and a brightness, sensors with a type and a state, and one main loop that routes every menu choice to its subsystem.
Bad input never crashes it. Every prompt is validated and temperatures outside 10 to 40 degrees are rejected. The download is just the program, without the executable, slides and demo video we handed in.
Lights that follow the room.
The sensor menu reads an ambient light level and whether anyone is in each room. Occupied rooms switch on at 100 minus the ambient light, empty ones switch off, and a camera input can trip the alarm from any sensor location.
The thermostat walks one degree at a time toward the target, heating or cooling, and prints every step.
No alarm with a window open.
Doors lock and unlock, windows open and close, and the alarm checks all of them before it arms. If anything is still open it names exactly what, and stays off until you fix it.