beginner

What Smart Buildings Do: Systems, Zones and Use Cases

See the whole smart building before you wire anything: the subsystems (lighting, heating and cooling, access, energy, safety and security), zones and spaces, the difference between a convenience gadget and a building system, how to write requirements and measure savings, and the arithmetic of energy, standby loads and payback.

60 min

1. What a smart building actually is

A smart building senses what is happening (people, temperature, light, energy, doors) and uses that to help people or save resources. It is a system of subsystems, not a pile of gadgets:

Subsystem Typical sensors and actuators Typical goal
Lighting Switches, dimmers, motion and light sensors Comfort, less waste
Heating and cooling (HVAC) Thermostats, valves, temperature sensors, window contacts Comfort at lower energy
Access Locks, door contacts, intercoms, readers Convenience and control
Energy Meters, current clamps, smart plugs, solar and battery data Know and reduce consumption
Safety and security Smoke and CO alarms, leak sensors, intrusion sensors, cameras Detect and react
Shading and ventilation Blinds, fans, air quality sensors Comfort and health

Large buildings call this a building management system (BMS) or building automation system. The same ideas apply at home, with smaller parts.

2. Zones and spaces

Plan by zone (a room or an area with its own needs) and by function (what happens there). A kitchen, a hallway and a bedroom need different lighting, heating and presence rules. Write a table: zone, devices, rules, who can override. Platforms such as Home Assistant call these areas.

3. Requirements before devices

Good requirements are specific and measurable:

  • “The hallway light turns on at night when someone walks through, at 20 percent brightness, and turns off after two minutes.”
  • “The living room is 21 degrees from 17:00 to 22:00 on weekdays and 16 degrees when nobody is home.”
  • “I receive a message when water is detected under the washing machine.”
  • “Lights and heating keep working with the internet and the hub switched off.”

Also list constraints: budget, who lives or works there, rented or owned, existing wiring, privacy limits, and what must be done by a qualified electrician (next lesson).

4. Measure before you claim savings

Energy and money arithmetic is simple and should be done early:

  • Energy in watt-hours = watts x hours. Kilowatt-hours = watt-hours / 1,000.
  • A 5 W device that is always on uses 5 x 8,760 = 43,800 Wh, about 44 kWh a year.
  • Cost = kWh x price per kWh.
  • Payback (months) = cost / monthly saving.
  • Saving percentage = (before - after) / before.

Measure a baseline for a few weeks (with a meter or smart plug) so that you can show what changed.

5. A first look at a controller

Many smart homes run a local controller such as Home Assistant. On a Home Assistant OS system you can check its state from the command line:

Lab: check a Home Assistant controller

Read the controller's own status from the command line: the host, the core and the supervisor, and check the configuration is valid.

Objectives

  • Show the operating system and hardware details of the host.
  • Show the Home Assistant Core version and state.
  • Show the supervisor, which manages add-ons and updates.
  • Check that the configuration files are valid before restarting.
Console - homeassistant:~$
Practice terminal: it checks the commands you type and shows example output. It is not connected to a real device.
Work through the objectives on the left.
Stuck? Type "?" to see the current objective, or "hint" to reveal the command.
homeassistant:~$

(The outputs above are examples of the format. Real output varies by software version and setup.)

6. Principles that keep a smart building good

  1. Local first: decisions run in the building, not in a distant service.
  2. Fail safe: if a device, the hub or the network fails, the building still works.
  3. Manual override: wall switches and thermostats must always work.
  4. Few, reliable parts beat many clever ones.
  5. Documented: someone else can understand and fix it.
  6. Private and secure: collect only what you need and protect it.

7. On your bench

  1. List the subsystems of your home or classroom and write one sentence of requirement for each.
  2. Draw a floor plan, mark the zones and list the devices that each zone has or needs.
  3. Measure the power of five devices with a smart plug or meter and calculate their yearly standby energy and cost.
  4. Pick one idea (a smart thermostat, motion lighting) and calculate its payback with honest numbers.
  5. Write the fall-back for each critical function if the hub and the internet are both off.

8. Hands-on lab: energy, cost, payback and subsystems

Energy, cost, standby, payback and subsystem lookup — Python 3
WHAT TO DO
energy_wh(watts, hours): watt-hours used. monthly_kwh(watts, hours_per_day, days): kilowatt-hours used in that many days: watts times hours per day times days divided by 1000, rounded down. cost_cents(kwh, cents_per_kwh): the cost in cents. standby_kwh_per_year(watts): kilowatt-hours a year for a device that is on all the time (8,760 hours), rounded down. payback_months(cost_cents, saving_cents_per_month): months to pay back, rounded UP to a whole month. saving_percent(before_kwh, after_kwh): the saving as a whole percent: (before minus after) times 100 divided by before, rounded down. subsystem_of(device): "light" -> "lighting"; "thermostat" -> "hvac"; "door lock" -> "access"; "smart meter" -> "energy"; "smoke detector" -> "safety"; anything else -> "unknown".
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT

9. Common mistakes

Mistake Better
Buying devices before writing requirements Start from what people need and measure
Counting only the best-case saving Use a measured baseline and realistic numbers
Ignoring standby loads Measure them; many small loads add up
A hub that every light depends on Local control and working wall switches
No documentation Zones, devices, rules and who can override
Cloud-only control Local first, cloud as an extra
Mixing mains work with hobby wiring Use a qualified electrician for mains (next lesson)

10. Key takeaways

  • A smart building is subsystems (lighting, HVAC, access, energy, safety) organised by zone.
  • Write specific requirements and constraints before choosing devices.
  • Do the energy, cost and payback arithmetic with a measured baseline.
  • Design local first, fail safe, with manual overrides.
  • Keep it documented, private and secure.
A smart plug controlling a 60 W heater lamp costs 15 and you expect it to save 3 per month. What is the payback, and what would make you doubt it?

The payback is 15 divided by 3, which is 5 months. Doubt it if the saving was not measured (does the lamp really stay on when nobody needs it?), if the plug itself draws standby power, or if the saving depends on people changing behaviour. Measure for a few weeks before and after.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Explain the subsystems of a smart building and one goal for each.
  • Describe how you would turn a wish such as 'save energy' into a measurable requirement.
  • Say why basic functions must work without the hub or the internet.

🧪 Want to practise this on your own computer? See how to set up your lab →

📝

Knowledge Check

1 of 4

Which is the best first step when planning a smart home or small building system?

Official References

Report a problem

About: /lessons/ha-what-smart-buildings-do-systems-zones-and-use-cases