Maple House — Smart Home
Maple House is the demo residence in Habitat, a smart home application built with AWC UI. Control devices across five rooms, apply coordinated scenes, and see how the same home state appears in the overview, room details, energy charts, and routines.
Open Maple House · Explore rooms
Try it in five minutes
Section titled “Try it in five minutes”- Set the mood. Toggle lights and adjust brightness, speaker volume, fan speed, or blinds. Open device details and choose your favorites.
- Explore the rooms. Switch between the living room, kitchen, bedroom, office, and entrance. The offline hallway plug demonstrates an unavailable device.
- Apply a scene. Try Welcome home, Movie night, Away, or Good night. Lights, blinds, and climate update together across views.
- Review energy and routines. Compare daily and weekly sample readings, change climate settings, and create a routine. Use Run now to apply its scene.
- Make it yours. Open settings beside the avatar to change the primary color, density, light/dark appearance, English/Arabic language, and reading direction.
Device controls are simulations. They do not connect to physical lights, locks, climate equipment, or other devices. Routine schedules are previews; they do not run background automation.
Components in context
Section titled “Components in context”| Workflow | AWC components |
|---|---|
| Home navigation | Navigation rail, Navigation bar, App bar, Avatar |
| Devices and scenes | Card, Switch, Slider, Chip, Status dot, List |
| Energy and climate | Bar chart, Sparkline, Meter, Segmented buttons |
| Routines and preferences | Text field, Select, Time picker, Color picker, Dialog, Side sheet |
| Action feedback | Button, Icon button, Skeleton, Tooltip, Snackbar |
The navigation rail uses the library’s own expand/collapse behavior. Application CSS arranges the controls with public component tokens; device and scene state is managed by the application.
Build and data
Section titled “Build and data”Habitat lives in apps/smart-home as a plain JavaScript application. The docs
build stages its output at /showcase/smart-home/html/, with local AWC runtime
files, fonts, theme generation, and the illustrative living room image.
Relative asset paths and hash routes allow the app to run beneath the docs URL.
Device state, routines, and activity live in memory and reset on reload.
Appearance, language, and layout preferences remain in localStorage. The
sample homeowner avatar is part of the demo; no identity provider or home
automation backend is connected.
Run locally
Section titled “Run locally”From the repository root, with core built:
pnpm --filter @awc-ui/smart-home devOpen Maple House locally. Rebuild and refresh after source changes. Validate the app with:
pnpm --filter @awc-ui/smart-home lintpnpm --filter @awc-ui/smart-home testpnpm --filter @awc-ui/smart-home build