Home Automation, IoT, and Artificial Intelligence
Blinds that lower themselves at dusk, the water heater that turns on before you get home, lights that obey your voice: your home can behave almost like one big robot. Here you will see how it is organized inside, what lies behind that convenience, and what it costs, so you can decide whether it is worth it in your home or your neighborhood.
The home as a system: sensors, actuators, and a hub
The same three ideas repeat in every example: the sensor measures, the hub decides, and the actuator acts. It is the same scheme as the automated systems you already know.
Explain what home automation is using three concrete examples of a smart home (blinds that lower at sunset, heating that turns on before you arrive, lights that respond…
Explain what home automation is using three concrete examples of a smart home (blinds that lower at sunset, heating that turns on before you arrive, lights that respond to voice) and what the three have in common.
The figure shows a house with several home automation devices connected to each other through a central element, which appears hidden by a question mark. Answer: a) Name…
The figure shows a house with several home automation devices connected to each other through a central element, which appears hidden by a question mark.
Answer:
- a) Name the hidden element in the center of the installation.
- b) Explain what information that element receives from the sensors and what orders it sends to the actuators.
- c) Classify the devices labeled in the figure into sensors and actuators.
Classify these home automation devices into sensor or actuator, and justify two of them: a motion detector, a motorised blind, a camera, a smart plug that switches power…
Classify these home automation devices into sensor or actuator, and justify two of them: a motion detector, a motorised blind, a camera, a smart plug that switches power off or on, and a water leak sensor.
Scenes: several commands in one
The actions in a scene have an order. In "night," for example: 1) turn off the living room lights, 2) lower the blinds, 3) turn down the heating or the fan, 4) arm the alarm and leave a dim light in the hallway.
Now, what else is there in a connected home? Before looking at the Internet of Things, it helps to know how an intelligent system learns.
List four advantages of a smart home — comfort, energy savings, security and accessibility for elderly people or those with reduced mobility — and develop one of them…
List four advantages of a smart home — comfort, energy savings, security and accessibility for elderly people or those with reduced mobility — and develop one of them with a concrete example.
A home automation "scene" called "leaving home" switches off the lights, lowers the blinds and arms the alarm with a single command. Explain what a scene is, what…
A home automation "scene" called "leaving home" switches off the lights, lowers the blinds and arms the alarm with a single command. Explain what a scene is, what advantage there is in grouping actions, and design another scene called "night" with at least four ordered actions.
How a home artificial intelligence learns
A programmable thermostat obeys fixed schedules that someone wrote; the intelligent one uses presence data and habits, so it avoids heating an empty house. That is its savings, but it depends on the routines being similar to the ones it learned.
Explain in your own words how an artificial intelligence system learns: just as a young child learns what a dog is by seeing many different dogs, the system learns from…
Explain in your own words how an artificial intelligence system learns: just as a young child learns what a dog is by seeing many different dogs, the system learns from examples. What does it need in large quantities to learn well?
The figure shows how a home artificial intelligence learns: over several weeks, it records when the lights are turned on, when the blinds are lowered and the temperature…
The figure shows how a home artificial intelligence learns: over several weeks, it records when the lights are turned on, when the blinds are lowered and the temperature of the house.
Explain what the system will have learned in order to make the covered prediction (anticipating routines: for example, heating the house just before the family arrives), why it needs many examples from different days, and what risk is involved in recording the life of a household in such detail.
Compare a programmable thermostat (obeys fixed schedules) with a smart thermostat (learns when you are at home). Explain what data the second one uses, what energy…
Compare a programmable thermostat (obeys fixed schedules) with a smart thermostat (learns when you are at home). Explain what data the second one uses, what energy savings it achieves by not heating an empty house, and what happens if your routines change suddenly, such as during holidays.
You want to train a system to distinguish the family dog from the cat on the living room camera. Explain what examples you would give it (many labelled photos of each,…
You want to train a system to distinguish the family dog from the cat on the living room camera. Explain what examples you would give it (many labelled photos of each, in different poses and lighting), what the system would learn from them, and why it would fail if you only show it photos taken during the day.
An artificial intelligence model has been trained to control the automated irrigation of a school garden during spring, using soil moisture, ambient temperature, and…
An artificial intelligence model has been trained to control the automated irrigation of a school garden during spring, using soil moisture, ambient temperature, and solar radiation measurements. In early summer, a sudden heatwave occurs (temperatures of 41.5 °C) accompanied by a short but very violent storm (15 minutes of torrential rain that puddles the surface but does not soak in deep).
- a) Predict two incorrect decisions the AI could make in this anomalous situation if its training did not include extreme events.
- b) Explain how training data bias influences the predicted failures.
- c) Design a high-priority safety control rule (independent of the AI) that locks the system to prevent plants from dying due to root asphyxiation or thermal stress.
Spotting the odd: anomalies in energy use
Home AI does not only predict routines: it is also useful for noticing when something does not fit. This is called anomaly detection.
Think about your home's electricity use over the course of a day: it rises in the morning (breakfast, shower with an electric water heater), drops when everyone leaves, rises in the afternoon, and almost disappears in the early hours, when only the refrigerator is running.
A home energy monitor continuously records the demanded active power (kW). During the night (from 01:00 to 06:00 h), normal baseline consumption oscillates rhythmically…
A home energy monitor continuously records the demanded active power (kW). During the night (from 01:00 to 06:00 h), normal baseline consumption oscillates rhythmically between 0.08 kW and 0.22 kW due to the refrigerator compressor cycles.
-
Case A: On a Tuesday at 02:40 h, consumption suddenly jumps to 2.4 kW and remains constant without dropping for four consecutive hours.
-
Case B: For three consecutive nights, night consumption no longer cycles downward: it stays pinned continuously at 0.38 kW.
- a) Interpret the data and propose a well-founded technical hypothesis for each case regarding which device or physical anomaly (breakdown, leak, insulation failure, or device left on) is causing that curve.
- b) Design the automatic action protocol that the home automation system should execute for Case A before alerting the user, explaining which actuators it would involve to prevent a serious accident.
The voice assistant and the Internet of Things
Thanks to the connection, a light bulb can be turned off from another city, a band can record your activity and send it to your phone, and a refrigerator can warn you that the door was left open. Before, those objects only worked if you were right next to them.
The complete chain is: voice → conversion to text → understanding the command → action → response (the speaker answers "done"). If there is noise or an unusual accent, the most likely failure is the first step: converting the voice to text.
Explain what the Internet of Things is (everyday objects connected to the network: fitness trackers, fridges, smart speakers, light bulbs) and what those objects can do…
Explain what the Internet of Things is (everyday objects connected to the network: fitness trackers, fridges, smart speakers, light bulbs) and what those objects can do thanks to the connection that they could not do before.
Describe the complete chain when you ask a voice assistant for something: voice → conversion to text → understanding the command → action → response. Indicate at which…
Describe the complete chain when you ask a voice assistant for something: voice → conversion to text → understanding the command → action → response. Indicate at which step it can fail if there is noise or an unusual accent.
State whether these statements are true or false and justify each answer: (a) the Internet of Things only exists inside homes; (b) a "smart" device always makes better…
State whether these statements are true or false and justify each answer: (a) the Internet of Things only exists inside homes; (b) a "smart" device always makes better decisions than a person; (c) sensors in a smart home record data even if nobody is looking at them; (d) a connected light bulb can receive commands from another country.
A smart speaker is always listening for its wake word, and an indoor camera records the living room. Analyse what data leaves that house and where it goes (the…
A smart speaker is always listening for its wake word, and an indoor camera records the living room. Analyse what data leaves that house and where it goes (the manufacturer's servers), what "the mic only activates with the wake word" means, and what settings you would review before installing them.
The internet goes down in a smart home. Analyze which functions continue to work (those decided locally by the control unit: schedules, basic scenes) and which ones stop…
The internet goes down in a smart home. Analyze which functions continue to work (those decided locally by the control unit: schedules, basic scenes) and which ones stop working (commands from a cell phone outside the home, cloud voice assistants), and explain what it means to design a system that is "proof against network outages".
The hidden cost: standby energy and standards
Every connected device stays "listening" all day. This is standby consumption, or "phantom load," and it shows up on the CFE bill.
With 25 devices: $50\ \text{W}$, $1.2\ \text{kWh}$ per day, $438\ \text{kWh}$ per year, about $\$1{,}314$. Is it worth it? It depends: if the devices save you more energy than they use, or give you safety or accessibility, yes; if they are just a whim you hardly use, that "toll" is an expense with no benefit.
Standby consumption and sustainability
Every extra watt used is produced at some power plant, and that has a cost for the environment in addition to the one you see on the bill. Reducing standby consumption is a sustainable decision you can make at home and share with your community:
-
Unplug completely the devices you are not using (chargers, TV, game consoles).
-
Use a power strip with a switch to cut power to several devices at once.
-
Prefer energy-saving bulbs (LED) and, if possible, a solar water heater, which saves gas and electricity.
-
Before plugging in one more device, ask yourself whether its savings or usefulness make up for what it uses.
There is another cost: standards. If you buy a bulb from one brand, an outlet from another, and a speaker from a third, they may not understand each other because they use different protocols. A common standard would let them all speak the same "language." Brands are slow to adopt one because it is in their interest for you to buy everything from them. Before buying your next device, check the box to see which protocol or assistant it is compatible with.
A home has ten connected devices that consume an average of $2\ \text{W}$ each in standby mode, $24$ hours a day. Calculate the daily and annual consumption in kWh and…
A home has ten connected devices that consume an average of $2\ \text{W}$ each in standby mode, $24$ hours a day. Calculate the daily and annual consumption in kWh and their annual cost at $\$3$ per kWh, and assess whether this "permanent toll" is worth it depending on how they are used.
Your family buys a light bulb from one brand, a plug from another and a speaker from a third, and they do not communicate with each other. Explain what a common standard…
Your family buys a light bulb from one brand, a plug from another and a speaker from a third, and they do not communicate with each other. Explain what a common standard or protocol is, why brands are slow to adopt it, and what you would look for on the box before buying the next device.
Evaluate the monthly energy balance of a home that has installed home automation: System's own consumption: 1 central controller with a continuous consumption of 4.5 W;…
Evaluate the monthly energy balance of a home that has installed home automation:
-
System's own consumption: 1 central controller with a continuous consumption of 4.5 W; 10 smart plugs/relays of 0.8 W each in standby; and 4 permanently connected sensors consuming 0.5 W each.
-
Savings achieved: automating the electric water heater (1500 W) so it does not keep water hot during 5 off-peak hours a day when no one uses it, reducing its effective heating time by 1.2 hours per day; and cutting unnecessary heating use (2000 W) by 40 minutes per day thanks to open window detection and presence sensing.
- a) Calculate the total energy consumed per month (30 days) exclusively by the operation of the home automation equipment in kWh.
- b) Calculate the total energy saved per month in kWh thanks to the automations of the water heater and heating.
- c) Determine the net monthly balance in kWh and in pesos (at an average price of 0.16 pesos/kWh). Conclude whether the installation represents real savings or an unjustified parasitic consumption.
Privacy and security in a connected home
A cheap light bulb does not store photos or bank passwords, but it shares the same Wi-Fi network as your computer and your phone. If the attacker gets in through the bulb, they can use it as a bridge to spy on everything else.
Another defense is to separate the network: put the IoT devices on the router's guest network (or on a separate subnet) so that, even if one is compromised, it cannot see your computer or your phone.
Privacy matters too. A home with sensors records when you are in, when you sleep, and when you go out; from that data your routines can be deduced. When caring for an older person, there is a delicate line between caring (alerting if there is no activity in the morning) and monitoring (recording everything): the person should know and agree to what is measured, and each alert should go only to whoever needs it (close family for the inactivity alert, emergency services only for the help button).
For a presence simulation while on vacation, an identical schedule every day ("light on at 8:00 p.m. and off at exactly 11:00 p.m.") gives away an empty house: nobody is that precise. It is better to vary the times, spread lights across different rooms, and combine blinds and television with somewhat random timing.
Your 78-year-old grandmother lives alone. She usually wakes up between 7:30 and 8:30 a.m. to have breakfast and take her medication. She wants to maintain her…
Your 78-year-old grandmother lives alone. She usually wakes up between 7:30 and 8:30 a.m. to have breakfast and take her medication. She wants to maintain her independence without feeling watched by cameras or microphones. Design a non-invasive home automation telecare system:
- a) Select three different types of sensors (with no image or sound capture) and specify their strategic locations in the house.
- b) Write the algorithm or logical flowchart (using IF... AND... THEN... conditions) so that the system is able to distinguish between a normal morning, simply waking up late, and a possible fall in the bathroom.
- c) Justify what time thresholds you would assign to each alert and who should receive the various notifications to ensure safety without generating false alarms or violating her privacy.
A family purchases a smart thermostat and an electronic lock managed entirely through a start-up's cloud service. Two years later, the company goes bankrupt and shuts…
A family purchases a smart thermostat and an electronic lock managed entirely through a start-up's cloud service. Two years later, the company goes bankrupt and shuts down its servers permanently.
- a) Analyse the technical and security consequences that the home will face after the service shutdown ('bricked device' effect).
- b) Based on the logs collected by the thermostat (desired temperatures, activation times, geolocation of linked phones), deduce what private information about the family's routine and habits is exposed if the database is liquidated and sold to third parties.
- c) Justify why a local home automation architecture (with a hub in the home itself) offers greater resilience and privacy compared to a 100% cloud-dependent solution.
A cybercriminal manages to gain access to a home network by compromising a cheap Wi-Fi light bulb whose firmware was never updated. a) Explain the technical principle by…
A cybercriminal manages to gain access to a home network by compromising a cheap Wi-Fi light bulb whose firmware was never updated.
- a) Explain the technical principle by which such a basic device can be used as an entry point (pivoting) to intercept data traffic from the home's computers or mobile phones if they share the same network.
- b) Design a network configuration proposal for the home router (using subnetting, VLANs, or a guest network) that isolates Internet of Things (IoT) devices.
- c) Justify why using specific mesh home automation protocols (such as Zigbee or Z-Wave connected to a gateway) reduces the attack surface compared to connecting 30 devices directly via Wi-Fi.
Design the "vacation mode" for a house: lights and blinds that simulate someone being home. Explain why slightly randomized schedules trick people better than fixed ones…
Design the "vacation mode" for a house: lights and blinds that simulate someone being home. Explain why slightly randomized schedules trick people better than fixed ones (nobody turns on the light every day at the exact same time) and what other details would give away an empty house even if the lights turn on.
A family with two teenage children decides to integrate three virtual assistants with speaker and microphone into their home. a) Choose with justification two rooms in…
A family with two teenage children decides to integrate three virtual assistants with speaker and microphone into their home.
- a) Choose with justification two rooms in the house where it would be technically functional and safe to install them, and two rooms where you would completely advise against placing them, justifying your criteria based on privacy risks, false triggers, or acoustics.
- b) A family member claims: "The speaker does not record or send anything to the internet until we say the wake word out loud; before that, the microphone is inactive". Refute this statement with technical arguments, explaining how local passive listening (wake word engine) works and the risks of accidental activation.
- c) Write three essential digital security rules and internal configuration settings that must be applied to the administrator account to prevent unwanted purchases, access to banking data, or indefinite storage of voice recordings.
Back to the beginning: the convenience of the smart home comes from sensors, a hub, and actuators, but it also costs standby energy, personal data, and attention to security. Deciding what to connect is part of the design.