Scene Store
SceneStore is the preset manager. Scenes are named snapshots that apply multiple device settings at once — one tap to set the mood.
What it does
Instead of adjusting lights, blinds, and thermostats individually, scenes let you say "Movie Night" and apply a whole preset of settings. Store manages create, activate, edit, and delete.
API reference
Properties
| Property | Type | Purpose |
|---|---|---|
sceneList | ESPCDFScene[] | All scenes (computed from internal map) |
Getting the store
import { initCDF } from "@espressif/rainmaker-base-cdf";
const espCDF = await initCDF({ sdkAdaptorRegistry });
const { sceneStore } = espCDF;