# Compose alert

Creates a typed warning from a device reading.

Canonical URL: https://opennodeflow.dev/wiki/reference-app-core-demo-alert/
JSON reference: https://opennodeflow.dev/wiki/reference-app-core-demo-alert/index.json
Source snapshot: 2026-10-23

# Compose alert

Constructs a typed warning from a Device reading. It always produces the same alert category; it does not evaluate a threshold, send a message or choose severity from input.

## Sockets and configuration
- **exec** (control): optional branch gate.
- **reading** (Device reading custom type, required): validated source measurement.
- **alert** (Alert custom type): composed object.
- **next** (control): automatic success route.
- No asset-specific configuration schema.

The output title is Demand threshold exceeded, severity is warning, message is `<deviceId> is drawing <value> <unit>`, and deviceId is copied. The reading's timestamp is omitted because the Alert schema does not declare it. All readings passed to this node produce an alert, including normal/negative/zero values; policy belongs upstream.

## Example
Use a Condition with operator greater and compare 80. Wire True to this node's Execute and the normalized reading to its reading socket. Input `{"deviceId":"meter-example","value":95,"unit":"kW","timestamp":"2026-01-01T12:00:00.000Z"}` produces a warning message meter-example is drawing 95 kW. Route alert to Workflow output or a separately authored notification/API node.

## Boundaries
A data wire alone orders execution but does not gate it by threshold; wire the appropriate control route. A missing/invalid required reading fails input validation, and an unselected control branch skips. Custom input/output type versions are pinned by publication. The body has no logging, secret access, state writes or external calls. The composed message/device identity are retained data, so use fictional examples and avoid exposing unnecessary customer information.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `app.core.demo.alert` |
| Kind | node |
| Family | app-core |
| Pack | See library discovery |

[Integration guide](/wiki/first-workflow/) · [Browse the catalog](/wiki/integration-catalog/)

## Inputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `exec` | Execute | control | No |  |
| `reading` | Reading | type.device-reading | Yes |  |

## Outputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `next` | Next | control | No |  |
| `alert` | Alert | type.alert | No |  |

## Configuration schema


```json
{}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
