Capabilities
Presence
Domain presence: states, services, device classes and features.
Entity ids in this domain look like presence.<object_id>.
Use in preferences
{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'presence', 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).
presentnot_present
subscribe($g.device, { to: 'present' }, onChange);
if ($g.device.is('present')) { /* … */ }Services
Also routable (PresenceServices), not in the wizard catalog — callable as entity.<service>(); the integration may reject unsupported ones at runtime:
arrived, departed