Standard Shelly Components
Dedicated APIs for Switch, RGB, Light, RGBW, CCT, and Cover.
When your device matches one of these component types, use the dedicated API instead of building the component yourself. You get:
- One handle for the whole component — read the full state or update any subset of fields in a single call.
- One place to drive hardware — writes from UI, RPC, or scripts all run through the same handler.
- Validation built in — return a string to reject a write with that message, or
nullto accept. - A ready-made schema — status and config match the standard Shelly shape used by RPC.