Capabilities
Siren
Domain siren: states, services, device classes and features.
Entity ids in this domain look like siren.<object_id>.
Use in preferences
{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'siren', required: true }States
getState() returns the raw token. subscribe filters, entity.is() and matchesState() also accept the friendly label the app shows (any case; spaces, hyphens and underscores interchangeable).
| Device class | on | off |
|---|---|---|
| any | On | Off |
subscribe($g.device, { to: 'on' }, onChange);
subscribe($g.device, { to: 'On' }, onChange); // same thing, by label
if ($g.device.is('On')) { /* … */ }Services
Also routable (SirenServices), not in the wizard catalog — callable as entity.<service>(); the integration may reject unsupported ones at runtime:
setVolume, toggle, turnOff, turnOn