Smart Home Lab
A smart home is a few sensors, a hub and the rules somebody wrote. Smart Home Lab gives students the house and the hub and asks them to write the rules. A family comes home after dark and feels for the hallway switch. A teenager leaves the lights on in three rooms. A window is open with the heat on. Students write rules in Blocks or Python, watch the family live with them, and compare the house with the same day and no rules.
Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1 and press play. At about 6:50 the family comes in the front door in the dark, and the parent feels along the wall for the hallway switch: a red mark on the day strip. Ask what rule would fix it. Then build it in Blocks with the class, when motion in the Hallway, turn on the Hallway light for 2 minutes, and run the evening again. Ask what happens when someone stands still in the hall for longer than 2 minutes.
Set up a free class Share to Google ClassroomWhat a student actually does
The first view is the house with its roof off, and a family about to come home after dark. Press play and they come in the front door; the parent feels along the wall for the hallway switch, and the day strip under the house marks it in red. A card at the top says what to try. The rules are in Blocks, and the Python tab shows the same rules as Python.
A rule is an event and what to do: when motion in the Hallway, turn on the Hallway light for 2 minutes. The student builds it, presses play, and the evening runs again with the same family making the same choices, so the only difference is the rule. Four meters compare the house with the plain house, the same day with no rules: what the electricity cost, how long anyone was cold, hot or in the dark, whether everyone got out safely, and how many times someone felt for a switch.
Thirteen levels follow, from an evening to a whole week. Lights that go out in empty rooms without leaving a reader in the dark. Only after dark. An alert for a window left open with the heat on. A thermostat set back at night. Working out that the house is empty from the front door and the motion, which no one sensor can tell. Standby power at the TV corner. A smoke alarm at 1:30 a.m., where a program may add to the alarm but never silence it. A sensor whose radio does not reach the hub. A scanner trying factory passwords on the doorbell. What the sensors send to the cloud, and what a log of motion gives away. Blinds, solar panels and a battery on a July day in Phoenix. And a week, in a choice of three cities and three families.
The house can be seen as a dollhouse or a floor plan, with a Heat view that colors each room by its temperature and a Network view that draws each sensor's path to the hub. File, The rulebook prints one page: the plan, the rules in plain words, and the day's numbers against the plain house.
One rule on the hub. It runs every time the hallway sensor sees someone move, and each new motion starts the 2 minutes over.
What they are learning while they work
Nothing here is presented as a lesson. This is what the house and the levels are made of.
| What the student does | What it is |
|---|---|
| Builds when motion in the Hallway, turn on the Hallway light for 2 minutes | Events. A program that waits for something to happen and then acts, instead of running from top to bottom once. Every rule on a hub is one. |
| Wraps the light in an if with it is dark in the Hallway, and finds it no longer lights the hall at noon | Conditions, and compound ones. The rule runs on every motion; the if decides whether it does anything. Motion and dark together is the first compound condition most students write. |
| Watches the grandparent's reading light go out because the grandparent sat still | What a sensor really measures. A motion sensor sees warm bodies moving across its zones, not people. Someone reading crosses nothing, so a timer short enough to save energy can leave a reader in the dark. |
| Turns the heat down only when the front door closed and no motion followed for an hour | State built from events over time. No one sensor knows the house is empty. The door, the motion and a timer that restarts on each new motion together do. |
| Sets the thermostat back at night and saves about 12% of a winter day's heat | A model, and its limits. A cooler house loses heat more slowly, so a setback saves. The day's number is larger than the Department of Energy's yearly figure, and the class can talk about why. |
| Adds a plug in the living room so the bedroom sensor's messages reach the hub | Networks: range and relays. Walls and metal weaken a weak radio. A mains plug that speaks the sensors' radio repeats what it hears, and the rules keep running when the internet goes down because they run on the hub. |
| Changes the doorbell's factory password, updates its firmware and sends an alert when a login fails | Security. A scanner on the internet tries public lists of factory passwords on every device it reaches, the way the Mirai botnet grew in 2016. A changed password, current firmware and no way in from the internet each close a different door. |
| Reads What left the house: 73 messages and five hours with no motion at all | Privacy. A log of motion copied to a company's cloud says when a house is empty and when people sleep. Rules that run on the hub can keep it at home. |
How to tell whether it landed
Ask, and let them show you in the house. A student who has understood it can answer these without the app's help.
- Your hallway rule turns the light on for 2 minutes. Why does it not go out on someone who keeps walking around?
- The grandparent was reading and the light went out. What did the sensor actually see, and what would you change?
- Why does turning the heat down at night save energy, if the furnace has to warm the house back up in the morning?
- How did your program know the house was empty? Which sensor told it?
- The smoke alarm sounded before your rule ran. Why is a program not allowed to turn a smoke alarm off?
- Every device has its password changed and the doorbell was still taken over. Why?
- Nobody hacked anything, and a stranger could still guess when the house was empty. How?
Use it in your subject
Not a technology class? Then the app is how students show what they learned in your unit. More projects for every subject.
Computer science, middle and high school (CSTA 2-AP and 3A-AP)
Events and handlers, compound conditions, timers that restart, and state built from several sensors, each with meters that say whether the rules worked.
Networks and cybersecurity (CSTA 3A-NI)
Radio range, relays and a hub that keeps working offline; factory passwords, firmware and devices reachable from the internet; what leaves the house.
Engineering and energy (NGSS HS-ETS1-4)
Watts, kilowatt-hours and dollars, heat loss and setbacks, standby power, blinds and solar, each compared with the same house and no rules.
Digital citizenship
What a smart device collects, who it sends it to, and what a stranger could learn from it.
Practical notes
- AgesGrades 6 to 12. Levels 1 to 5 work from grade 6 in Blocks; Levels 6 to 9 fit middle and high school CS; the security, privacy, solar and week levels and the Python fit high school.
- TimeLevel 1 fits a class period with time to talk about what the sensor sees. Levels 2 to 5 make a unit of about a period each; Levels 6 to 13 are a second unit.
- EquipmentA computer or Chromebook with a modern browser. Nothing to install. A projector for the opening. A printer for the rulebook, if the class hands one in.
- CostFree. The app has no paid tier and no AI.
- PrepRun Level 1 once yourself: press play, press Faster until the family is home, and see the red mark at the hallway. Then build the hallway rule in Blocks and run the evening again.
- In a groupOne house per student, or pairs: one builds the rules, one watches the day strip and calls out what the family is doing.
For a class with one projector
Run Level 1 on the projector and let the class say what the rule should be. Every run is the same family making the same choices from the same seed, so the class can try three or four rules in a period and compare the meters fairly. The plain house never changes, so every run is measured against the same evening.
Common questions
Is it free?
Yes. Smart Home Lab has no paid tier, and it can be tried right on this page without an account. Saving needs an account.
Does it work on a Chromebook?
Yes. It runs in the browser with nothing to install.
Is the house real?
It is modeled on real numbers. Electricity is priced at the U.S. average, 18.17 cents a kWh. The heat comes from a model of an ordinary older ranch house in each city's normal weather, from NOAA. The motion sensors see in zones like real ones, rest after each report and miss someone sitting still. The smoke and CO alarms follow how listed alarms behave. The house, the family and their day are made up.
What does it simplify?
Every day is clear, and the solar panels make a perfect clear day's power. The heat model leaves out the attic and the heat from appliances. Real motion sensors rest longer between reports than these do. The hub leaves out the light from lamps it turned on when it decides whether a room is dark; a real light sensor counts every light. One family, one house, and devices that never fail on their own.
Do students need to know Python?
No. Every level can be done in Blocks, and the Python tab shows the Python the blocks make. A student who wants to can write the Python directly.
Can a program turn off the smoke alarm?
No. The alarms sound on their own, as listed alarms are built to, and a rule that tries to switch one off is refused with a reason. A program can only add to an alarm: lights on for the way out, the furnace's fan off, an alert to the phones.
Does it connect to real smart home devices?
No. Everything is simulated, and nothing in the app talks to a real device, a real network or the internet.
Still have a question? Ask us, and a person will write back.
Where to go next
Start with Smart Home Lab
Trying it costs nothing and takes about five minutes. An account is what makes the work last.
Smart Home Lab is one of the making apps on the platform. The house, the family's day and the meters come from one model, run the same on every computer, so a class compares rules on the same evening.
Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.