# Design a smart home automation platform: system design interview question

> Control of connected devices: uncertain command results, late state reports, rule loops, and secure access to homes.

Source: https://sysround.com/questions/design-smart-home-automation-platform
Updated: 2026-11-05


Difficulty: hard. Levels: Senior, Staff+.

## How the interviewer opens it

"Design a smart home platform. Users manage connected devices, control them from outside the home, and create automation rules."

## What to clarify first

- Scale
- Traffic and read:write ratio
- Devices and lost connections
- Command behavior
- Rule behavior
- Latency
- Consistency and availability
- Access and ownership
- Durability and retention
- Device protocol and boundaries

## Scope of a strong answer

Core requirements:

- Register devices and manage access to a home
- Read device state and show connection status
- Send secure remote commands and track their results
- Create and execute rules from device state changes

Usually out of scope:

- Video and audio streams
- Custom radio protocols
- Firmware updates
- Local rule execution
- Voice assistant integrations

## What interviewers probe

### Commands and lost connections

A device can apply a command before its connection fails. The cloud must distinguish an unknown result from a command that never started.

### Rules after device state changes

Reports can arrive late or twice. Rules can also cause new state changes that trigger more rules.

### Control of a home

Users share homes and transfer devices. Credentials and delayed commands can remain valid after the person who controlled a device changes.

## Common mistakes

- Treating a device connection as reliable and permanent.
- Showing requested state as confirmed device state.
- Assuming a transport acknowledgement proves command application.
- Executing old commands and rules after a long outage.
- Using transport encryption as the complete access control design.
- Adding a rule engine without a policy for duplicate events, conflicting actions, or loops.

## The bar by level

- **Senior:** Defines command recovery across lost acknowledgements and device restart. Handles report order, rule duplicates, and rule loops. Uses durable acceptance and explains secure device claim and transfer.
- **Staff+:** Defines safety guarantees across device, broker, database, and region failures. Explains ownership changes with delayed commands. Bounds reconnect load and rule fanout. States which guarantees require device protocol support.

Practice this question with an AI interviewer: https://sysround.com/practice/new?problem=smart-home-platform


---
SysRound (https://sysround.com) is an AI practice tool for system design interviews. It has a voice or typed AI interviewer and a shared whiteboard. At the end, you get feedback on each skill and a model answer. The AI feedback can be wrong.
