Dominevo
ReferenceDevice capabilities

notifier

Notification delivery cap.

Notification delivery cap. Models HA notify.<service> plus future native targets (Telegram / Discord / ntfy / SMTP, …). Designed at the same structural level as a camera cap: rich multi-method surface, full status diagnostics, explicit supports matrix so the UI gates compose-form fields without probing the provider.

One Notifier device per delivery endpoint — HA's notify.mobile_app_* (one per phone), notify.telegram_* (one per chat target), etc. The DeviceRole sub-role (MobilePushNotifier / MessagingNotifier / EmailNotifier / GenericNotifier) discriminates the rendering style of the compose form.

Sub-feature support (image / priority / data / actions / multi- recipient) is signaled by:

  • the device's DeviceFeature bits — fast scalar check for list filters and grid icons (DeviceFeature.NotifierImage etc.); AND
  • the slice's supports block — authoritative read after device detail is opened.

At a glance

Capabilitynotifier
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesnotifier
Sourcepackages/types/src/capabilities/notifier.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
sendmutationyesadmin
cancelmutationyesadmin

send

mutation

Input

FieldTypeRequiredDescription
titlestringno
bodystringyes
imagestringno
priority"min" | "low" | "normal" | "high"no
channelstringno
recipientsstring[]no
actions({ id: string; title: string; uri?: string (url); destructive?: boolean })[]no
dataRecord<string, unknown>no

Output

FieldTypeRequiredDescription
notificationIdstringyes
acceptedAtnumberyes

Actions (offered in automations and on device cards)

ActionLabelSets
notifier.sendSend a notification

cancel

mutation

Input

FieldTypeRequiredDescription
notificationIdstringyes

Output

Nothing.

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

Runtime-state slice — diagnostics + supports matrix. UI compose form reads supports to gate optional fields; history pane reads lastSentAt / lastError / queueDepth.

FieldTypeRequiredDescription
lastSentAtnumberyesMs epoch of the most recent successful send. 0 if none yet.
lastErrorstring | nullyesFailure description from the most recent send attempt. Null on success or when nothing has been sent yet.
queueDepthnumberyesNumber of deliveries currently buffered server-side (rate-limited notifiers may queue). 0 when the provider sends synchronously.
supports{ image: boolean; priority: boolean; data: boolean; actions: boolean; recipients: boolean }yesPer-feature capability matrix — authoritative source for the compose-form field gating.

Events

onSent

Emitted after every send attempt — success or failure. Subscribers (admin UI history pane, automation engines, retry workers) react without polling the provider's lastSentAt.

FieldTypeRequiredDescription
deviceIdnumberyes
notificationIdstringyes
successbooleanyes
errorstring | nullyes
acceptedAtnumberyes