do-not-disturb
do-not-disturb - whether a speaker or display holds back its own sounds (announcements, notifications, alarms) until the operator lets it speak again.
do-not-disturb - whether a speaker or display holds back its own sounds (announcements, notifications, alarms) until the operator lets it speak again.
It is NOT part of media-player: a player is about what it plays and how loud, while Do Not Disturb is a household switch the vendor keeps per device. enabled is null when the vendor has not said (never a guess of false).
At a glance
| Capability | do-not-disturb |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | media-player |
| Source | packages/types/src/capabilities/do-not-disturb.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
setEnabled | mutation | yes | protected |
setEnabled
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
dnd.on | Do not disturb on | |
dnd.off | Do not disturb off |
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | null | yes | True while Do Not Disturb is on; null when unknown. |
lastChangedAt | number | yes | Ms epoch of the last read or write that set enabled. |