Capabilities
Select
Domain select: states, services, device classes and features.
Entity ids in this domain look like select.<object_id>.
Use in preferences
{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'select', required: true }States
Open-ended — this domain reports free-form values (numbers or strings). Subscribe with {} or an attribute filter and compare inside the handler.
Services
Curated for smart apps (also offered by the wizard action catalog):
| Service | Parameters | Description |
|---|---|---|
selectFirst | — | First option |
selectLast | — | Last option |
selectNext | — | Next option |
selectOption | option (string, required) | Select option |
selectPrevious | — | Previous option |
await $g.device.selectFirst();Attributes
| Attribute | Type | Description |
|---|---|---|
options | string[] | The selectable options; the state is the current one. |