Skip to content

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

  1. Set the mood. Toggle lights and adjust brightness, speaker volume, fan speed, or blinds. Open device details and choose your favorites.
  2. Explore the rooms. Switch between the living room, kitchen, bedroom, office, and entrance. The offline hallway plug demonstrates an unavailable device.
  3. Apply a scene. Try Welcome home, Movie night, Away, or Good night. Lights, blinds, and climate update together across views.
  4. Review energy and routines. Compare daily and weekly sample readings, change climate settings, and create a routine. Use Run now to apply its scene.
  5. 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.

WorkflowAWC components
Home navigationNavigation rail, Navigation bar, App bar, Avatar
Devices and scenesCard, Switch, Slider, Chip, Status dot, List
Energy and climateBar chart, Sparkline, Meter, Segmented buttons
Routines and preferencesText field, Select, Time picker, Color picker, Dialog, Side sheet
Action feedbackButton, 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.

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.

From the repository root, with core built:

Terminal window
pnpm --filter @awc-ui/smart-home dev

Open Maple House locally. Rebuild and refresh after source changes. Validate the app with:

Terminal window
pnpm --filter @awc-ui/smart-home lint
pnpm --filter @awc-ui/smart-home test
pnpm --filter @awc-ui/smart-home build