PythonAdvancedabout 7 hours14 lessons
Recommended first: Cargo Bay
You are the brain of a house. Describe its devices, give them a contract, pass behaviour around as functions, then let a real event bus tie sensors, lights, locks and a thermostat together. By the end, rules like "motion after sunset turns the hall light on" run on code you wrote, and an automation panel shows which rule fired and why.
Each lesson adds one working part to your build.
Chapter 1
Model the house with enums and dataclasses, then give every device a contract.
Chapter 2
Functions are values: pass them, store them, return them, wrap them.
Chapter 3
Build an event bus so the house reacts without everything knowing everything.
Chapter 4
Inject dependencies, stream events lazily, and compose rules into automations.