A smart building that works on the day of the demonstration is the start of the problem. Over the next years, different people add rules, the cleaners unplug things, the weather turns cold, the electricity tariff changes, and nobody remembers why anything was set the way it was. The faults are rarely clever: a schedule that ended at midnight on the wrong day, a light that goes off on somebody sitting still, two rules fighting over one lamp, a radiator that was “the usual size”, a tariff that nobody calculated, a breaker that tripped on Monday morning, a Zigbee channel left on its default, a router that a cleaner unplugs, and a handover where a device that was never tested turned out to be the broken one.
Home Automation in Practice is the practice course for the smart buildings course. It does not teach what a scene, a hub or Zigbee is: the first course does. It takes each idea and turns it into a rule that you write as a small, testable function, on invented jobs from a small company’s offices and depot, in Python, with data generated for you alone. Rules written like this can be tested on a laptop in seconds, which is how a good installer makes sure that the building will still behave in the winter.
What you need first
You should have finished, or be comfortable with, Home Automation and Smart Buildings (protocols, Home Assistant, heating and lighting control, energy, network security, commissioning and handover). The case files use Python (it runs in your browser, nothing to install): you should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.
Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the rules and the edge cases; they are not a building simulator. Each lesson ends with a box of what to do on the bench: which tool or measurement shows the same thing in a real building.
What you will learn
- Schedule across midnight: the day after, included starts and excluded ends, empty windows.
- Time a light: motion timers, extending intervals, single triggers and the energy report.
- Settle conflicts: rules that fight over one device, priority, a fixed tie-break and the timeline.
- Size the heat: fabric and ventilation loss, a margin and the smallest radiator that is enough.
- Price a tariff: bands that cross midnight, the saving that may be negative and the peak share.
- Load a circuit: the 80 percent rule, headroom and the breaker that tripped.
- Choose a radio channel: Zigbee against Wi-Fi, centre frequencies and clear channels.
- Find the weak points: mesh hops by breadth-first search and single points of failure.
- Hand over honestly: four tests per device, missing results and a clean ok.
How it works
Each case is a call from someone at Sabi Logistics (Amaka, Tunde, Bisi and Halima), a short brief, a lab with a starter script, a twist and a debrief that says what a senior building technician would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.
The capstone asks you to write a tested rule set for a small building of your own, and to say honestly what the rules cover and what only a survey and a commissioning visit can show.