Reeve Docs

Docs / Get started

What Reeve does

A reference to what Reeve does, area by area: what you can configure and what you will see. Terms are defined in the glossary. The rules a change must not break are in architecture constraints.

Secret providers

A deployment can configure several secret providers, each with a stable, unique, lowercase id. The built-in Vault type reads KV v2 values and metadata, restricts each provider to its allowed path prefixes, and authenticates with Kubernetes, AppRole or a token file. Providers are read-only.

Renewable tokens are renewed before they expire. If a renewal is refused, Reeve authenticates again. A secret read the server refuses gets one re-authentication and one retry. An unhealthy provider degrades service health but does not make the process unready.

The Secrets page has two tabs, Stored secrets and Secret providers. Each tab has its own permission check and its own link. The provider list shows the latest cached health check and its time, non-secret connection and authentication details, allowed prefixes, the CA source and the renewal time. It never returns credentials or CA contents. Opening the tab does not run a health check.

Each replica checks provider health shortly after start and then every 60 seconds, with a 15 second limit per provider. Health, renewal and unresolved-reference diagnostics are per replica, and a page shows the replica that answered.

Devices

For the full device model, the device API and the rules for drivers, see devices.

The canonical model

Device types, capabilities, value kinds, enum tokens and units are a closed set owned by Reeve. Every integration maps its vendor vocabulary onto that set in both directions, so no vendor field name reaches the core.

There are 21 device types: Switch, Light, Outlet, Sensor, Climate, Cover, Lock, Fan, SmokeCoDetector, GasDetector, Valve, Coordinator, Siren, Humidifier, WaterHeater, Vacuum, SceneController, MediaPlayer, AlarmControlPanel, Unknown and Camera.

Smoke and carbon monoxide detection share one type, and gas detection has its own. Each carries end-of-life, fault, muted, sensitivity and a unified alarm state. A Sensor carries home-relevant measurements and one named toggle per binary meaning: contact, leak, occupancy, presence, motion, vibration, tamper and low battery. Occupancy, presence and motion stay separate.

Logical devices and sources

A logical device is the thing your household owns and automates. It has one or more sources, and each source is one integration's view of it. Automations, scenes, dashboards, access grants, favourites, telemetry and bridges all address the logical device. A source has its own name, health, capability descriptor and state, and is visible whenever its logical device is.

Operation Behaviour
Discovery Each new source arrives in its own logical device. Nothing merges automatically.
Merge An operator action, allowed only between sources of the same device type. Duplicate suggestions are advice only.
Detach The remaining sources keep the original logical device. The detached source becomes a new logical device.
Remove last source The logical device goes with it. Only a retired device has no source.
Remove source or device After the removal commits, the owning plugin is told which sources went, if it opts in, so it can release the device on its own side. Delivery is best effort and never delays or fails the removal. The removal dialog shows each plugin's own notice about what else the removal does, waiting at most 2 seconds per source.
Type change A logical device's type does not change in place. A source that reports another type moves to a new logical device of that type. An Unknown device takes its concrete type in place.
Failover Commands and state go through the active source, chosen from stored source health.

After a merge, reports for a discovery topic keep reaching the device that now owns the source.

Names. A logical device nobody has renamed takes its primary source's reported name on every discovery. A name you set is kept, and clearing it restores the driver's name. An administrator renames a physical device and its channels on the physical device page, and a logical device and its channels on the logical device page, with the pencil beside each name. The logical device's name is the one Start, dashboards, automations, mobile and Matter show. A physical rename does not change it. Vacuum areas are named the same way (devices.manage), per logical device and area id, and the name shows wherever the area shows.

Basic tile. A caller with devices.manage sets household-wide tile choices in the Basic tile section of a device page: the quick action, the readings after the state word, and whether the tile is shown on Start. A Switch or Outlet can be shown as a light, and a Switch as an outlet. The server refuses a light for any other type and an outlet for anything but a Switch. With an automatic quick action, a device with several on/off gangs shows one switch that reads on while any gang is on.

Average temperature. In the Average temperature section of a device's Settings tab (devices.manage), a device with a temperature reading can be kept out of every household average. The server refuses a device that declares no temperature reading. Its other readings still count.

Start page. Basic Start shows a greeting, quick-scene buttons (the first four enabled scenes) and a summary strip: lights on, average thermostat temperature, current power draw and open contact sensors. A card appears only when there is something to report, and unavailable devices are left out. The greeting follows the household time zone: morning from 05:00, afternoon from 12:00, evening from 18:00, night from 22:00.

Capability descriptors and channels

The canonical record says what a device type could expose. The per-instance descriptor says what this device does: which capabilities exist, whether they are controllable, their labels and their value domain (enum tokens, or unit with minimum, maximum and step, or channel labels). Controls, pickers and command validation use the descriptor only. A capability missing from it is neither shown nor commandable. Ranges are enforced on the server.

Multi-component devices expose channels. The plugin gives each channel a stable SourceId and a number that is unique within the device and never reused. Operators can label channels per logical device.

A device report that cannot be stored unambiguously is refused and changes nothing. That covers a duplicate capability key, a channel number used twice in a device, a SourceId used twice within one capability, and a channel capability with no declarations. The refusal shows as a warning alert device.report_rejected on the plugin instance. The next accepted report for that source clears it.

Critical capabilities

An operator can mark a capability or channel as critical. The web and mobile apps then ask before sending a command that writes it. The question names the capability and the exact value, and declining sends nothing. A room quick action asks once and lists every critical value, and a slider sends on release.

This guards against an accidental tap and is enforced by the interactive clients. The server accepts such a command without confirmation. Scenes, automations, scripts, plugin-originated commands and API tokens are not asked, because creating them is the deliberate act. Raw-property writes are not covered.

Changes to a device's model

When a plugin changes a device's descriptor, Reeve records a model event and scans the automation triggers and scene actions that refer to the device. A reference that no source resolves gets a finding such as device.channel.missing, and a broken automation is disabled. A channel that moves to a new number but keeps its SourceId is rewritten in triggers, scene actions, labels and workflow drafts, and references Reeve cannot rewrite get device.channel.renumbered. See devices.

POST api/devices/sources/{sourceId}/rediscover (devices.manage) asks a device to describe itself again. It answers 202 with a job, or 422 when the plugin cannot re-describe. GET .../rediscover/{jobId} reports queued, running, applied, unchanged or failed. A timeout is a failed job, not an HTTP error. The physical device page has a Rediscover button for sources that support it.

GET /api/devices/{id}/model-events lists a device's model events, newest first (limit default 100, at most 500). A caller who cannot see a live device gets 404. A removed device's events stay readable until retention purges them, with devices.manage only.

Commands

A device accepts two kinds of command: canonical commands carrying an ordered list of capability assignments, and raw-property writes that forward unmapped vendor fields untranslated. Authorization is checked before validation, so a caller without control access never learns whether a key is canonical.

A command succeeds only when the plugin took it. A command the plugin reports as not carried out answers 502 with the plugin's reason, one the plugin never answers gets 504, and a device whose sources are all offline is refused as offline. A canonical command whose target fails validation answers 400 with an errorCode:

Code Meaning
device.channel.missing, device.capability.missing No source of the device has the target.
device.target.unsupported-by-source Another source accepts the target and value, but the commanded source does not.
device.capability.controllability-lost The closest source has the target but it is not controllable.
device.capability.value-domain-changed The closest source has the target controllable, but it does not accept the value.
device.capability.kind-changed The closest source's capability is no longer of the catalogue's kind.

Keys match exactly. A request with several assignments is refused as a whole with the first failing code, but a scene skips only the failing action. Other refusals carry no code. See devices.

State, telemetry and events

Each source stores canonical typed state, the raw vendor payload and its capability descriptor. Ingestion is serialised per source and rejects out-of-order reports. Momentary occurrences such as button presses travel on a separate event channel with their own history. A change to a toggle, enum or open-enum value on the active source is stored as a state event and listed in the device's history for 90 days. Basic shows it as "Turned on · 10 min ago".

The plugin reports source health. A device that reports on a cadence, such as a sensor, turns degraded once a reading is older than its window. A device that reports on change, such as a light, switch, outlet or camera, stays reachable while its driver says Online, and becomes unreachable when the driver says Offline or the plugin instance is down. A session plugin (Virtual Devices, Bluetooth, Z-Wave, Matter) whose adapter session has been absent for 180 seconds has its devices marked Offline. During those 180 seconds its devices stay Online and their REST reads say stale instead of fresh.

Basic shows a sensor silent for 24 hours as Unavailable and counts it in no summary (Automations:Freshness:SilentAfterSeconds). The advanced pages mark it "Not reporting".

Discovery

Discovery providers emit short-lived candidates. Nothing is created and no plugin is installed automatically. A plugin claims candidates with matchers, which prefill its install form. Installing, updating or removing a plugin changes its matchers without a restart. mDNS is browsed in the host. SSDP, USB, BLE and DHCP scans run once, on demand, in a per-node workload. Only allowlisted metadata is stored, and hardware addresses are hashed or masked. See discovery.

Issues and alerts

A plugin can raise an issue with a stable code and severity, an optional fix hint, guided repair flow, subject and absolute HTTPS DocsUrl. Each subject is its own alert and clears on its own. An issue is an alert, so you acknowledge, snooze or silence it like any other.

One shared row per fingerprint combines repeated raises across replicas. Conditions resolve when they clear, and events stay open until acknowledged. A snooze or silence survives retention. Inactive alerts are purged after 30 days by default. GET /api/alerts lists alerts and filters by box, kind, severity range, state, attention, suppression, plugin instance and subject. A caller sees only alerts whose kind they may view and whose device or automation they may access. Acknowledging, snoozing, silencing and reversing need the kind's act permission and are audited. Changes are pushed as AlertsChanged to those who may see the alert.

Delivery. In the Delivery box on the Alerts tab, an operator with home.manage sets the lowest severity (Warning, Error or Critical, default Error) and the notification-sink plugin instances that receive new alerts. With no sink nothing is sent. An open alert is sent once when it reaches the threshold, again when its severity rises and again when a resolved condition returns. A snoozed or silenced alert is not sent while the suppression covers its severity. A failed send is tried five times in all, after 30 seconds, 2, 10 and 30 minutes, then dropped. A notification can arrive twice if the replica fails before recording the send.

Each replica reports its status every 3 seconds, and every 30 seconds Reeve raises plugin.load_fault, secrets.provider_unhealthy, secrets.references_unresolved and cluster.safe_mode from those reports, naming the replicas. They clear only when reports show the condition has gone. A replica refused at start by the build window raises the warning cluster.start_refused for 10 minutes. A release inside the running build's window upgrades a multi-replica installation by a rolling update. A full-stop release keeps the full stop; see upgrading. The chart's cluster.fullStopUpgrade is off by default.

The maintenance pass also raises cluster.boot_failing and workload.volumes_awaiting_decision (retained volumes no workload claims). A plugin roll alert is a warning while waiting and an error when halted, and clears when the roll ends.

Automation

For the editor, triggers, blocks, concurrency, waits, webhooks and the debugger in full, see automation and workflows.

Workflows and automations

A workflow is a versioned graph of typed nodes. Ports are typed with no implicit conversion, so every conversion is an explicit block. Saving publishes a new version. Drafts are stored separately, and an automation always runs the published version. A run keeps the version tree it started with, so publishing a sub-workflow mid-run does not change it.

A version that does not compile is kept as a draft with its diagnostics, and the version that automations run stays as it was. Edits inside the graph leave automations enabled. A publish disables a bound automation only when it changed a declared input parameter the automation's stored inputs no longer fit: a new required parameter left empty, a removed or renamed one that is set, or a retyped one that is set. Each is reported with its reason.

A workflow can be switched off from the workflows page. No new run starts from any source, but a run already admitted finishes. A workflow imported with unresolved references arrives switched off.

The editor's debugger starts a run of the published version with the input parameters from its start dialog. If the engine refuses the start, for example because a required parameter is empty, the debugger shows its diagnostics.

Runs in progress. A workflow's history lists runs that have not ended (running, sleeping, waiting, suspended) with a Cancel button for anyone who may edit the workflow (automations.manage and ownership). A workflow cannot be deleted while such a run exists. An administrator (audit.view and home.manage) can cancel any run from the admin executions list.

Folders. A workflow sits in one of your folders or in none. The API carries it as the host metadata map {"folderId": "<guid>"}, the only key accepted. A bad map answers 400 with a code:

Code Cause
host-metadata-key-refused Another key.
host-metadata-folder-malformed The value is not a folder id.
host-metadata-folder-not-found The folder does not exist, is another user's, or was deleted during the save.

A save replaces the whole map, so an update that omits the folder moves the workflow to the root. Deleting a folder moves its workflows to the root. A bundle import and a blueprint install take a folderId of their own and place every workflow they create in it.

Secret headers. The Headers of an HttpRequest node map names to values, and a value is plaintext, protected or a reference. A value saved under a credential-like name (containing password, token, secret, apikey, credential, authorization, privatekey or cookie, ignoring separators) is protected on save, and the editor's "Hide" toggle protects any other header.

  • A protected value is stored encrypted and opens only in its own workflow. Reads, versions and diffs show ***, and sending *** back keeps the stored value. A protected value pasted from elsewhere is refused with secret-value-unmatched.
  • A ref: header points at a secret provider. Saving or dropping one needs secrets.bind and a path inside the provider's allowed prefixes, and is audited as secrets.bind or secrets.unbind. With SecretReferences:RequireReferences on, a header can only be referenced.
  • A run sends the real value and records *** in its trace. A value that cannot be revealed fails the node with secret-unresolved.

Exports show *** and ref: as written. An import is not an edit: any header an edit would refuse is left out and listed in the response's droppedSecrets, without failing the import. A header name that is not a valid HTTP field name refuses it with secret-input-key-invalid. Anyone who can edit a workflow can point a secret-holding node at any URL. See secrets and audit.

Device types in workflows

A workflow names a device as Device, or as a subtype that demands a device type: the device type name plus Device, for example LightDevice, CoverDevice or CameraDevice, for every type listed above except Unknown. A subtype is the type of a parameter, output or port, and its value is the device id. A subtype feeds a Device input, but a plain Device into a subtype input fails to compile with port-type-mismatch. A device of another type is refused at save with device.type-mismatch, and a device with no type yet with device.type-unknown.

Property<T>. A parameter, port or literal of type Property<T> names one canonical property of one device as { "deviceId": "<uuid>", "key": "<canonical key>" }. T is Boolean, Number, String or Collection<String>, decided by the key. Colour keys, channel lists and scene-controller button keys cannot be targeted. Three blocks take a Property<T> target: SetProperty sends the canonical command for the key, GetProperty reads the active source's state and fails when there is no value, and WaitForProperty finishes satisfied at once, or parks the run until a state report satisfies the predicate or TimeoutSeconds (default 300) ends it as timed_out.

Save and publish check only static facts and fail with property.key-not-in-catalogue, property.type-mismatch or property.target-malformed. A device that is missing or lacks the key is reported by the device-model scan, and a run that reaches it fails the node.

Blocks and the editor

The block palette comes from the server: each block declares its configuration, ports and sub-canvases, and the editor builds its panel from that. Families include device reads and writes, raw properties, collections, string, number and maths, guarded outbound HTTP, sub-workflow calls, waits, try/catch/finally and C# scripting.

A deployment can turn the scripting block off with Managed:Capabilities:CSharpScripting, read at start. Workflows that hold the block then cannot be saved, imported, published, restored or installed from a blueprint, and a start of one is refused with an alert. The workflow list marks them Scripting off.

A wire from a Json or Json? output is a projection, with a path field, a Read as JSON text toggle and a type picker. A pasted JSON sample proposes paths and types. The server compiles the draft after every edit (POST /api/workflows/analysis) and the editor lists each problem on the canvas, naming its block, before you save.

Error handling

Error handling has three layers: a per-node policy (fail the workflow, continue with a default, emit a structured error on an error port, or skip the node and everything downstream), try/catch/finally blocks around sub-canvases, and normalised error records with metrics and trace spans. A type mismatch in an expression is found at compile time. A missing value or a division by zero at run time fails the node, and its policy applies. A start refused because its version no longer compiles is recorded as a failed run with the reason.

Workflow SignalR events mask secret-looking keys and apply a per-value payload budget. A debug event over 1 MiB is replaced by {}.

Geofences and shared locations

A geofence belongs to the household. geofences.view lists and reads every geofence, and geofences.manage creates, edits and deletes any of them. A geofence's centre and radius can reveal where the home is, so remove geofences.view from a role if you do not want that. Each member's location is checked against every geofence, and an enter or leave event fires for that member once per crossing. A fix older than the phone's latest, such as a backlog after a dead zone, is kept as history and moves neither presence nor a geofence. Location fixes are kept for 30 days.

Each reporter (a kind plus a label, compared without case, where default means no label) is one presence device. A report with no label sent with a personal access token is keyed by that token, and one from a browser or app session is the member's single unlabelled reporter. Labels starting with pat: are refused.

An account has at most 10 presence devices. An eleventh new reporter gets 409 with errorCode location.reporter-limit until you delete one. A reporter whose token was revoked or expired does not count. A new token without a label reports as a new presence device, and the old one keeps its last state until it shows Unavailable after 24 hours of silence or is deleted. Sending a label keeps one presence device across tokens.

locations.view, implied by home.manage, shows where members are on the web map, the dashboard map widget, a presence device's page and the phone's map. A member's own positions need no permission. Family Member, Household Member, Power User and Administrator hold it, Guest and Read-only Viewer do not. Sharing is the phone's own consent switch, so a phone that does not report is not on the map. Deleting a user deletes their geofences, presence devices and history.

Triggers

The triggers are StateChange, Cron, Sun, DeviceEvent, Webhook, GeofenceEnter, GeofenceLeave, CameraObjectDetected, CameraPlateRecognized, CameraSoundDetected and CameraMotion.

Schedule and solar triggers use the household clock and coordinates. While the home has no location a Sun trigger does not fire, the editor and the home settings page say so, and System status shows home.location_missing. A trigger that cannot be armed for at least 30 seconds raises one warning alert per automation, automation.trigger_unarmed, which clears once the trigger arms.

A Webhook trigger is only a signal. The body of an accepted call is stored for inspection and replay but never mapped into workflow inputs. A call refused for its secret is not stored.

A StateChange trigger fires on the first real change after it is armed (created, edited, enabled, restarted or failed over to). A device that has never reported only seeds it. The target value is required, and the form does not save without it.

An edit to an automation or its triggers takes effect on every replica within moments. A workflow, input or debug-mode edit applies from the next run, including one already queued.

Payload. Every fire passes a payload into the run. id and firedAt are written by the host. Everything else is what the trigger type declares. Read it as ${trigger.<field>} in expressions. A wait-for-trigger block returns the payload of the fire that released it, and the payload survives a wait. It is not visible inside a sub-canvas. A value that breaks the payload limits loses its own key, not the run. Cron, Sun, Webhook, StateChange and the two geofence triggers carry only id and firedAt, and so does any trigger from a WASM plugin.

Camera triggers bind to the canonical Camera type, so any camera plugin can drive them.

Trigger Filter
CameraObjectDetected Object class, zone, confidence floor and an optional minimum interval between fires.
CameraPlateRecognized The trigger's own plate list: one of the list, not in the list, or any plate. Plates only, no names.
CameraSoundDetected Comma-separated sound classes (crying, a bark, a smoke alarm), matched ignoring case, with a minimum interval per class.
CameraMotion Motion starting or stopping, once per edge.

The minimum interval is a cluster-wide claim, and if the coordination store is down the trigger fires. A block turns a detection's event id into links to the snapshot and clip the camera kept. Reeve stores neither, so a link stops working when the camera plugin's retention expires, and it opens only in a signed-in client.

Concurrency, waits and expressions

Concurrency is a per-workflow budget shared by every trigger on it, in one of four modes: Single (skip), Restart (supersede), Queued (enqueue until full) and Parallel (run up to the permit count). An overflow setting decides whether excess runs are dropped, logged or raised.

Wait blocks pause a run durably and survive a restart. A wait on helpers only costs nothing while idle, and any other reference makes it poll.

Expressions are a small closed language, switched on with the expr: prefix on a block input. They offer arithmetic, comparison, logic, ternary, concatenation, variable paths and a fixed list of functions. There are no loops, assignment, reflection or I/O, and depth and length are capped. See expressions.

Scenes

A scene applies a stored set of canonical device actions as one unit, in the order they were saved. Activation sends one command per device, carrying that device's actions in order. Different devices are commanded in parallel, at most 8 at a time, and the order across devices is not guaranteed.

Application is partial by design. An action that cannot be applied, or that went to a device that did not answer in time, is reported in a skipped list, and the other actions still go out. Dispatched plus skipped always equals the number of stored actions. A command the plugin reports as not carried out is skipped with the plugin's reason. A device whose sources are all offline is skipped as offline. An action the device refuses (a missing channel or capability, a read-only target, a value outside its range) skips only itself, with the named target code.

The web app says "Scene activated" only when nothing was skipped. Otherwise it says the scene was partly or not activated, with the skipped count and reasons such as "2 devices offline", kept on the scene's card until the next activation.

Capturing a scene from current device state records what a resident operates and leaves out settings, diagnostics and commands such as a cover's stop.

Permissions. scenes.control lists, reads and activates scenes. scenes.manage also creates, edits, enables and deletes them. Device permissions grant nothing on scenes, and without either permission the Scenes destination, quick scenes and scene widgets are not offered. Family Member, Household Member, Power User and Administrator hold scenes.control. Family Member does not hold scenes.manage.

A scene's Bypass executor permissions setting decides whose device permissions an activation uses. Off, each action uses the permissions of whoever activates the scene, and an action on a device they cannot control is skipped as access denied. On, anyone allowed to activate the scene actuates all its devices. The setting is off for every new scene, and turning it on is a deliberate choice by someone with scenes.manage. A scene update must state the setting, or it is refused with 400.

An editor shapes a scene only over devices they can control, and through a personal access token only over the devices its scope covers. Otherwise the change is refused with 400, and a scene hidden from the editor answers 404.

Removed devices and helpers

Removing a device or its plugin instance, or merging a device away, deletes nothing that refers to it. A scene keeps its actions, an automation its triggers, inputs and blocks, and a dashboard its widgets.

An automation whose run uses a removed device, or whose triggers can no longer fire because of one, is disabled with the reason device removed and a detail naming the device, and raises one automation.disabled alert. An Any automation that loses one of several triggers keeps running on the others.

Merging. Merging a device into another points its scene actions, automation triggers, bound inputs, workflow drafts, dashboard widgets, helpers and utility meters at the target. Published workflow versions are not rewritten, so publish the rewritten draft. Where both devices had the same action or helper, the target keeps its own. Two meters on one property refuse the merge.

Utility meters. Removing a device that a meter reads from, or deleting a plugin instance that feeds one, is refused with 409 naming the meters. A plugin that reports such a device removed does not delete it. Reeve keeps it, marks it offline and raises the warning device.kept_for_meters, which clears when the device is deleted or reported again. Creating or editing a meter that reads from a device whose plugin instance is being deleted is refused with 409 and the reason source_device_being_removed.

Missing references. A reference is missing when its device or helper no longer exists. This is computed on read and never stored. Device ids are never reused, so a re-paired device is new and old references stay missing until you re-point them.

  • A scene reports missingDeviceActionCount and shows each such action as "Removed device" with a remove button. Activation skips it as DeviceNotFound.
  • An automation reports missingReferenceCount on the list and missingReferences on the detail, covering triggers, bound inputs and the device and helper blocks of the published version. Targets reached through sub-workflows, wires, expressions, raw-property blocks or custom widgets are not listed ahead of time, and a run that reaches one fails the node.
  • A dashboard shows a banner and a warning strip on each widget that names a removed target, with Remove widget while editing.
  • System status raises one warning per automation, scene and shared dashboard with a missing reference: automation.references_missing, scene.references_missing and dashboard.references_missing.

Helpers

Helpers are named, persistent automation state that is not a device: boolean, number, counter, date-time and expression-derived. A helper is standalone or attached to a logical device, and expressions can address it. Helper writes travel as synthetic device events, so ordinary state-change triggers can fire on them.

An expression-derived helper declares its result type when created and is event-driven and debounced. A save or device rename that would make the dependency graph cyclic is rejected. If a cycle exists anyway, its members pause until it is broken.

A helper's type can be changed when every workflow version that reads or writes it, including versions pinned by unfinished runs and parked waits, and every expression helper that reads it still compiles against the new type. The change is refused, with the blockers listed, while an unfinished run or wait uses the helper, a SetHelperValue or IncrementHelper node names it, or a state-change trigger compares its value. An expression helper's stored value resets to null until its next evaluation.

An expression reads a device capability as ${device.<name>.<type>.<member>}, and a device's raw payload as Json? through ${deviceRaw.<name>} and jsonPath. A name shared by two live devices is refused. A declared capability with no value reads as absent. See helpers.

Blueprints and sharing

A blueprint is a checksummed workflow template from a registered repository, with typed install-time inputs (device, capability, room, number, time range, boolean). Installing creates a real workflow and an installation record that owns it. A community-trust blueprint with a scripting node needs explicit approval each time. If a bound device or room stops resolving, the workflow is disabled and the error names the missing entity. See blueprints.

Workflows export as self-contained documents and import with reference remapping. A document that cannot be read is refused, naming what could not be read, and nothing of a refused import is stored. Several workflows export together as a bundle. There is no whole-installation export. To move to new hardware, restore a database backup on the new host, the same way you recover from total loss.

Integrations and plugins

Integrations are plugins. The pages Plugins, Plugin distribution and Integrations hold the detail. This section lists what an operator can rely on.

Two lanes, one pipeline

A plugin uses one of two loaders: native (a .NET assembly in its own load context) or WebAssembly (a capability sandbox). Both share one manifest, one permission and consent model and one install pipeline. What each lane guarantees is in plugin trust.

A plugin ships no frontend code. It declares a configuration schema and server-driven views, which the web application renders generically. Text supplied by a plugin author is shown quarantined and attributed. A plugin can offer a multi-step configuration flow instead of a flat form, and per-instance diagnostics download as redacted JSON. Safe mode starts after repeated failed boots and skips plugin loading, repository sync and workflow execution.

Protocols

Zigbee (through the Zigbee2MQTT plugin, or a plugin built on another Zigbee stack), Z-Wave, Matter as a controller, Thread, Bluetooth Low Energy, ESPHome, Home Assistant MQTT discovery, Cast, DLNA, UniFi, Spotify and notification services, outbound webhooks included. Protocol plugins live in their own repositories. Reeve ships no MQTT broker and needs none. An MQTT plugin connects to the broker named in the instance's settings, and an instance that names none is refused.

A manifest declares permission codes from a closed set, a device-type scope and outbound host patterns. A manifest that asks for a code outside the set is refused at install and not loaded.

  • The operator grants a subset of what was requested. The grant is kept per plugin type, so a second instance neither asks again nor overwrites it.
  • An empty host list denies all outbound HTTP. An empty device-type list means all types.
  • A granted host may resolve to a private LAN address. Loopback, link-local, cloud-metadata, carrier-grade NAT and multicast addresses are always refused for the plugin's HTTP client, its OAuth token exchange and mqtt.outbound connections. An OAuth token endpoint must be among the plugin's requested hosts.
  • A host entry can be config:{key}:url or config:{key}:host. The owner consents once per type to "addresses entered in field label". Each instance may then reach only the host its own configuration holds in that field. A value that does not parse is refused on save. See config host tokens.
  • Deleting the last instance keeps the grant and consent. Uninstalling the type removes them.
  • A change to the grant reaches running instances, armed WASM triggers and alert subscribers on every replica. A replica dispatches to a plugin only after it has applied the new grant.

A required configuration field that the create request leaves out is filled with the default the plugin's factory declares. A value sent blank is refused. A field read by a config host token is never filled from a default.

Secrets

Password and sensitive fields may hold an external reference, ref:<provider-id>:<path>#<key>[@<version>], instead of a value.

  • Binding or removing a reference needs the secrets.bind permission. The provider must exist and its allowed prefixes must contain the path. Saving an unchanged reference needs no permission.
  • References are visible in management responses and stay masked in config flows. They are resolved before the plugin is created. If resolution fails, the instance waits with a reason that never contains the secret, and retries with backoff. secrets.resolve_failed is audited with the reference and failure kind.
  • Refresh runs on a configurable interval and can be requested from the secret providers page. A changed value restarts the affected instances.
  • Each replica scans stored references once after start-up. Unresolved ones are logged with provider and path. Start-up continues. Health details show the last count and scan time to callers with home.manage.
  • SecretReferences:RequireReferences (off by default) rejects new typed values while a provider is declared. Existing values, the *** keep marker and references stay valid. A blank value clears an optional secret.
  • Provider tests report only whether resolution worked and the length of the value.

secrets.bind also covers moving stored secrets to a provider. An operator can list the plugin and workload password fields that still hold a stored value (names, locations and readability only) and reveal one once. A reveal needs step-up, is audited without the value and shows in a dismissable view. Binding resolves the reference again and replaces the stored value only if the two match exactly. A mismatch, an unresolved reference or a concurrent change leaves the stored value untouched. Binding is audited as secrets.bind. A workload move is also audited as workload.password_reference_rebound.

Answers to Sensitive and Password fields in config, options, action and repair flows are encrypted wherever the flow is stored. The plugin gets the plain values only for its submit. Stored settings are migrated to the protected form when a factory registers and before an instance is created. Sensitivity is known only for fields the factory schema declares, so a field used only in a flow must also be declared there. A failed migration keeps the instance stopped and faulted until the recovery sweep retries.

Distribution and compatibility

A plugin ships as an OCI artifact or a release asset. It is pulled by digest and refused on a mismatch. A resource index lists resources, versions, digests and yanked flags. It takes precedence over standalone registrations and may advertise a signing key, which verifies nothing until an operator compares the fingerprint and accepts it. The official publisher's key is built in and trusted from first boot. The operator can revoke it. Repository credentials are encrypted, never returned by an API, sent only to that repository's hosts and dropped on a cross-host redirect. See Plugin distribution.

Every plugin declares the minimum host version it needs. It is checked at install, reload and cold start. By default an incompatible plugin is refused. A warning mode, for an operator's own install only, logs and loads it. Auto-update never takes a version the running host cannot satisfy. It takes the newest compatible version, or holds the subscription with the host as the reason. An instance loaded under the warning that then fails to start is faulted as incompatible_host_version. The host does not fall back to an earlier version.

A native plugin whose entry assembly targets a newer .NET major than the host runs is refused. The install answers 422 target_framework_unsupported and is audited as plugin.install.failed. Boot, reload and hot registration write a plugin.load.rejected audit, and a reload leaves the running copy running. reeve-plugindev validate reports the same refusal. A release can list several builds, one per target framework. The host loads the highest framework it can run among the builds whose host floor it meets. Under Plugins:RequireSignature the selected build of an installed type that has no signing information is refused.

Updates and lifecycle

  • The entry assembly is resolved from the manifest, and the factory's declared type must match it.
  • Reload is always operator-approved. A file watcher only flags a pending change. Pre-flight validation inspects metadata and runs no plugin code.
  • Auto-update subscriptions follow the latest patch or minor version. A candidate with an identity or privilege anomaly, or one that asks for a network host the installed release did not, parks for approval. So does installing an installed version again with different bytes or without a verified signature. Approving grants only the hosts, codes and device types the candidate adds. What the owner withheld stays withheld. An unattended update never adds device types, and one that would turn "no device types" into "all" parks for the owner.
  • A rollout that rolls back is audited as a failure and retried a bounded number of times before it parks. A rollout the operator abandons is a declined version and is not retried. A deployment-bearing update that rolls back, is abandoned or never starts gives the old release back its grant.
  • Every install path moves the subscription baseline to the running version.
  • An install that the serving replica cannot activate reports one outcome: Requires restart, Backend too old (the version's host floor is above this backend) or Rejected (the next boot would refuse it too). A WASM instance that fails in its own code reports none of these. Its health shows the fault.
  • Workflow blocks and alert subscribers of a native plugin change without a restart on each replica when the new version exports the same block shapes and its instances have reloaded. A block that is running finishes on the old code. A changed shape, a dropped block or a subscriber that cannot be built waits for the replica's restart, and the restart reason names it.
  • An uninstall stops new starts of workflows that use the plugin's blocks at once. The blocks are removed without a restart if no live run uses them within 30 s. Otherwise they stay until the restart, the starts stay refused and the answer lists the runs still going. The admin executions list filters by status and plugin and can cancel a live run. A plugin's admin page links to its live runs and shows, per replica, what the last update and the uninstall did to its blocks.
  • Each replica keeps three versions of the type on disk and in the shared object store: the installed one, the one it replaced and the highest older one. The rest are removed only after the update has taken effect. A downgrade never removes its target or the version it replaced.
  • An install or uninstall on one replica is in effect on all serving replicas once the write is acknowledged, or within Plugins:TypeCatchUpTimeout (20 s by default) for an artifact still being pulled. A failed or retryable apply is retried after Plugins:TypeCatchUpRetryDelay, with doubling delays up to Plugins:TypeCatchUpRetryMaxDelay. An invalid artifact, a directory newer than the uninstall and a missing or bundled install root are refused with a warning and wait for an operator.
  • When installs are kept apart from the image, a plugin type with no installation record is not loaded and its files are removed at boot. Bundled plugins are exempt. A boot that cannot read the installation records fails instead of loading the highest version on disk.

Setup flows

A plugin's action flow can require a client capability, which the action descriptor carries. A client lists the flow only if it supports that capability. The web application supports none, so it does not list these flows.

A ClientValue step collects one secret value from a capable client. The host encrypts it in the flow state, decrypts it only for the plugin's submit and never logs it. A submit that is not exactly one non-empty value gets a retry before the plugin runs. Repair flows refuse such a step.

When an operator aborts a flow, or a step times out or throws, or the flow reaches its deadline, the host calls the plugin's optional end hook at most once with the reason. A plugin's own Finish or Error is never followed by a hook. A slow or throwing hook neither fails nor delays the abort. A flow is ended at the first sweep after its deadline, and a submit before that continues it.

A flow submit runs on the process that started the flow. If that process is gone, the replica that receives the next submit takes the flow over. A submit to an owner that does not release within 5 s answers 503 FLOW_OWNER_BUSY. A flow whose plugin type is installed but still loading answers 503 and changes nothing. The web application and the Android app retry these answers for 249 s.

A hub's Thread network

An operator with no Thread border router can let a hub that has one (a Google TV Streamer, a Nest Hub) carry Reeve's Thread devices, with Reeve as their only controller. The Matter integration offers the action "Use a hub's Thread network (sharing code from the hub)". The operator types the code the hub shows under "Share Thread network credentials". Reeve reads the hub's Thread network once and from then on commissions Thread devices onto it itself, including Bluetooth commissioning through ESPHome or the BLE proxy, with no phone.

  • Starting the action needs integrations.manage.
  • It is offered only while the integration has no Thread network, configured or imported. A configured Thread source wins over an import. "Forget the Thread network" replaces one.
  • A network with no border router seen on the LAN is refused, with no override.
  • Each entry of the code uses one of the hub's attempts and nothing retries on its own. A refusal says whether the code was wrong or used up.
  • The code is never logged. The host keeps it encrypted in the flow state for at most the flow's lifetime. A read relayed through the durable workload-command path is the exception: the code and dataset stay in plain text in the command table for 24 hours after the command completes.
  • The network key is stored protected in the plugin's storage and reaches phones only in the onboarding context.
  • The Thread status shows the network name, extended PAN id, origin, import date and each border router's Active Timestamp. If no border router of the network has been seen for 30 minutes, the integration raises an issue whose repair flow reads a new code.

The phone as a client

In Settings, Integrations, Integration actions the Android app lists, for accounts with integrations.manage, the flows whose required capability it supports. It supports thread.active-operational-dataset. For such a step the phone asks Play services, with the user's consent, for the Thread networks it knows, keeps those whose extended PAN id the integration reported, lets the user choose if several remain and shows the name and PAN id for confirmation. It then submits the dataset once. With no network in common it names the networks both sides see and submits nothing. The dataset is never logged or kept. A step the app cannot run ends the flow with "continue in the web UI" or "update the app". Leaving the screen aborts the flow on the host.

Before the phone commissions a device onto the network Reeve offers, it asks Play services, without consent, whether the phone's preferred Thread network is that one. If not, the app warns and lets the user continue or stop. An unreadable answer never blocks pairing.

Workloads and deployment

A plugin may declare container workloads. The platform reconciles them onto a provider. The pages Workloads, Workloads architecture and Multi-replica cluster hold the detail.

Providers and gateway addresses

Provider What it is
Kubernetes The platform applies the workloads to a cluster
Docker One backend instance on one host. A clustered host refuses it
Manual The platform renders artifacts and the operator runs them

A feature that only one provider supports fails at that provider's preflight with a named error.

A sidecar dials a gateway URL that the operator sets on the provider form under Integrations, Workloads.

  • Docker: a base address. It falls back to Manual's external URL, then to the backend's address on the Docker network.
  • Kubernetes: an optional override of the in-cluster address, which is derived when blank.
  • Manual: an externally reachable URL. It is required and has no fallback.

The install preflight checks that a URL is well formed but does not dial it from the workload's network. A URL that network cannot reach shows only after the apply, as a session that never opens.

Managed settings

A deployment can declare the provider entries and the selection. The fleet applies them as one agreed version and the panel shows them read-only. A malformed or unresolved declaration is reported and never stops the boot. A candidate that is unsafe now (instances still on the current provider, an entry something depends on, a provider the list does not configure) waits as a pending version while the last applied one keeps serving. Declaring counts as consent to the orchestrator settings only. A workload whose spec an activation widens is suspended until its own consent is given. While a declared provider differs from the one in force, installing a plugin with workloads, restoring from a retained volume and adoption are refused with 409 provider_switch_pending.

The session plane

A sidecar holds no broker credential. Its only egress is an outbound WebSocket to the backend, authenticated by a per-instance bearer token that is stored hashed and carries no permission codes. After every reconnect the sidecar pushes a full state snapshot before incremental frames resume.

Parameters

The install wizard and the edit form show a workload's parameters as typed fields under the author's section headings, in order of first appearance. An enum parameter can act as a switch, as a radio group or a select. It shows the sections its value reveals and hides the ones it gates. Hiding is display only. A value in a hidden section stays in the form, is saved and is delivered to the container.

Password parameters may hold provider references, which resolve before deployment. An unresolved reference blocks the deploy. Pinning a provider version is the default where the provider supports it, because rotating a network key can orphan secure Z-Wave nodes. An unpinned reference that resolves to a new value raises a redeploy prompt on the instance, and the new value is applied only after an operator approves. The pending response lists parameter names, opaque references and rollout states, never values. A resolution failure must be fixed at the provider first.

A dedicated approval permission gates privileged deployment, provider settings, forced adoption and token reveal or rotation. The grant records the consented privilege profile. Every write that can change what a workload requires (install, update, parameter edit, creating an instance with parameters) is judged field by field against it. Consent is also enforced on stored workloads at replica boot, after a consent or grant change, after a workload settings save, after an enable toggle and once after every update. An increase on a security axis parks the change and asks. Volume growth goes through with a note.

Health and day-2 commands

Condition What happens
Not ready 10 min after the deploy started (Workloads:Reconciler:DeployStalledAfterSeconds) Reported Degraded with the engine's reason. The Warning workload.<id>.stuck is raised at once
Degraded or Unknown for 15 min (Workloads:Repairs:StuckWarningAfterSeconds) workload.<id>.stuck as a Warning, as an Error while Failed
Failed for 30 s (object deleted, crash loop, image cannot be pulled) Error workload.<id>.unavailable within a minute, pointing at Redeploy

One outage is one alert occurrence. It stays open while the workload restarts or redeploys and clears after the workload has been Healthy for 2 minutes, or when it is suspended or removed. While it is open, the workload's stuck and crashloop alerts are folded into it as Info (listed, not in the bell, never delivered), so one outage gives one Error notification. Deleting a workload instance clears its alerts. See Repairs.

System status counts a Degraded, Failed, VersionSkew or Suspended workload, and a volume whose claim is missing, as needing attention. A plugin card shows Workload Degraded instead of a Healthy chip when the worst state among its non-suspended workloads is not Healthy or ExternallyManaged.

On the Deployment tab:

  • Scan is offered only for a scan-per-node workload.
  • Redeploy re-applies the desired spec and replaces running containers only where the spec differs. Restart replaces them anyway.
  • On Kubernetes, Redeploy deletes and recreates an unbound (Pending) volume claim whose StorageClass differs from the volume's own. A bound claim, a claim adopted from a restore and a claim with no resolvable class are never replaced.
  • A volume whose claim does not exist reads "Claim missing". The reconciler creates a new, empty claim on its next pass unless the workload is paused, observe-only or managed outside Reeve.

A Kubernetes or Docker workload object that is deleted outside Reeve reads Failed and is recreated on the next pass, unless the workload is paused, observe-only, managed outside Reeve or in an update, or reconciliation is paused. A provider that cannot be read leaves the workload Unknown and recreates nothing. If the object was removed while the workload had not been Healthy since its last deploy, it is not recreated. The workload stays Failed, says that something else removes it and raises workload.<id>.unavailable.

Updates

An update changes the plugin type's version and applies configuration and workload parameters to the selected instance. Without an instance id it targets the oldest one. Native reload and WASM activation cover all running and enabled instances of the type, and siblings stay enabled.

When several instances of a type have managed workloads, the update plans and health-gates all of them in one sequential cohort. The selected instance goes first with the submitted parameters. The others keep their stored parameters. The type version commits only after every member passes. A new instance of the type cannot be created while the cohort is open.

An update goes through staging, apply, health gate, version commit, plugin roll and completion. It rolls back through the stages it entered, unless it has passed one that cannot be undone. The plugin roll is such a stage, and the update's detail names it. Abandoning a cohort before the version commit rolls back every instance in it, and the confirmation says so.

The plugin roll reloads one replica at a time. A reload that fails, does not finish or leaves a fault halts the roll. The replicas not yet reached keep serving the old version. A halt stands until an operator chooses Retry or Give up, which ends the update where it stands and undoes nothing. Deleting an instance that is being updated, or the repository its update loads from, is refused until the update ends.

A clustered roll needs Workloads:PluginRoll:FleetSize. Without it, a clustered host refuses to start a plugin update before anything changes. On an unclustered host the fleet is one. The health gate requires provider readiness and a gateway session established after the apply whose handshake echoes the applied spec hash. Parameters and the consented profile commit only on success.

Retained volumes

Retained volumes hold data whose loss cannot be recovered: Matter and Thread fabric state, Bluetooth bind keys and Z-Wave network keys. They are kept indefinitely, matched by label, owned by one workload, purged only by an explicit operator action and offered for restore at reinstall.

Networking

A workload runs on the cluster network, the host network or an operator network. It may join operator-owned network attachments beside the provider's own network, never instead of it. The platform lists and connects to them. It never creates, changes or deletes an operator network, and it checks only that the named attachment exists. Any existing Docker network can be named, the platform's own included.

Clustering

Several backend replicas can run behind a load balancer with no session affinity. See Multi-replica cluster.

  • PostgreSQL 18 or newer is required. PostgreSQL decides ownership, liveness and held slots. Redis is mandatory on every deployment and carries fire de-duplication, trigger cooldowns and hints. A Redis outage never stops a replica. Lost hints cost one poll, and listeners re-read database state when Redis returns.
  • Every process needs a unique REPLICA_ID or Workflow:Engine:ReplicaId, a single replica and the migrate-only job included. Startup is refused when neither is set. A replica raises cluster.replica_id_conflict when another process claims its id.
  • Single-owner units (trigger host, workflow resume, repository sync, OAuth refresh, bridge link, presence sweep) each run on one replica. The workload reconciler, watcher and retained scan run under an elected leader.
  • A configuration write is answered once every serving replica has applied it. A replica that cannot keep up fences itself instead of serving stale configuration.
  • Every upgrade stops the whole fleet first. A replica exits with code 76, without counting toward safe mode, while a replica outside its build window holds a lease. The migration job does the same.
  • Admin hub membership is rechecked when an access change is applied and every 5 seconds, so a revoked user leaves the broadcast group within one interval.
  • Any replica serves a request for an installed plugin type, and every replica runs every enabled instance. Enabling, disabling, editing or deleting an instance, or changing its grant, takes effect on every replica once the write is acknowledged. For a moment the instance can read "not running", and the plugins page refetches while an enabled instance starts. A disabled instance's workloads run only after it is enabled and consent allows. The install wizard enables the new instance by default and lets the operator switch that off.

Exposing devices to other ecosystems

Reeve publishes its devices as a local Matter bridge node: a root node, an aggregator and one bridged endpoint per exposed device. Any Matter controller can commission it over the LAN, such as Apple Home, Google Home, Alexa or Home Assistant. Nineteen of the twenty-one canonical device types are covered. Commissioning uses IP and mDNS only. The full description is in Matter bridge.

What is exposed

  • Exposure is a per-device flag, off until the operator marks the device exported. Coordinators stay opt-in and unknown devices are never exported.
  • A per-device exported-name override changes the name the ecosystem shows.
  • A multi-gang device becomes one endpoint per gang. Each button of a scene controller becomes its own momentary switch.
  • A scene is exported only if it is enabled and marked exported. Scenes start not exported.
  • The Matter type of a Switch or an Outlet is set per device in Exported as: Auto (default), Light, Plug or Wall switch. Auto uses the kind last applied from the device's Shows as setting, otherwise the type's default (Switch: wall switch, Outlet: plug). A change to Shows as reaches Matter only after Resync, or after choosing Auto for that device, and the screen says when one is waiting. A controller may keep the type it knows. Google Home shows a new type only after the gang is recreated (Expose off, Resync, on, Resync, set the device up again).
  • A colour light accepts hue and saturation, xy and colour-temperature commands. A light with no colour temperature of its own gets a white point as the matching colour.
  • A vacuum tells controllers when a cleaning run ends. Its areas show the administrator's names. A name that equals another area's shown name, or is longer than 128 bytes, is not used, and those areas show the device's own name. Naming or clearing an area rebuilds the endpoint with the same endpoint number. Area ids and stored selections do not change.
  • A smoke or CO detector that reports no battery is exposed without the power source its Matter type asks for.

Pairing

Pairing windows mint a fresh single-use code with a bounded lifetime and stay closed at rest. Removing the last ecosystem decommissions the node and rotates its stored credentials. Fabric state lives on the bridge's own writable volume.

Opening a window, rotating its code and unpairing answer 200 only after the bridge reports the new state. The command reaches the replica that holds the bridge link. A 504 means the bridge did not report in time. Repeating an unpair is harmless. Repeating an open or a rotate revokes whatever the unanswered attempt may have created. A 503 means no replica held the link or its holder was busy, nothing ran and any client may repeat it.

Resync of the exposure snapshot is served by the replica holding the link. With no live link it answers 400. 503 and 504 mean the same as above.

Behaviour with replicas and outages

  • The bridge link runs on one replica. A command a controller sends reaches the device only while that replica holds the link. When the link is stopping the command is dropped, and the controller sees a timeout or its own optimistic value until the next state frame.
  • Saved bridge settings apply on the link holder, and a 30 s reconcile repairs a missed one.
  • Live state reaches an ecosystem without a device read per change, and a report that changes nothing sends nothing. A lost state relay is healed from the database within 45 s.
  • A device whose sources are all offline turns unreachable in the ecosystem with the next periodic snapshot (about 45 s, at most about 90 s). It keeps its endpoint and last shape, so a rename, room, type or label edit reaches controllers only once the device is Online again.
  • A button press ingested on a replica without the link is forwarded to the holder. It arrives at most once, and exactly once while the holder is known and Redis is up. A press is dropped if it waited 3 s in the forward queue. It is lost when no replica holds the link, while the holder is moving, and while Redis is down. A single node forwards nothing.
  • A device that is un-exposed, or that the bridge identity may no longer see, stops publishing once the link owner has applied the change.

Cameras and media

Every frame reaches a client through the backend proxy or, for WebRTC, through the optional media plane. A camera workload is never exposed to the browser or the network. See Media plane and Camera media.

Transports

  • The live picture is fragmented MP4 over a WebSocket. A progressive route exists because it is the one transport that answers a viewer-limit question with a status code.
  • Per device, clients also get routes for the negotiated transport, a single frame, a viewer-slot probe, and the snapshot and clip the camera kept for one detection.
  • Access control applies to every frame, including per-user overrides. Camera media routes accept session cookies only. A personal access token cannot fetch a camera, and neither can the phone.
  • A camera whose plugin can negotiate gets a WebRTC peer connection with the viewer, over a signalling socket the backend relays and reads only the envelope of. Peers connect directly on the home network. A viewer that cannot is served by the shared media plane, which answers with its own addresses. A camera that answers several seconds after the offer is still served, and one setting lengthens that allowance. This is also how a Matter camera becomes reachable.
  • The web client falls back to fragmented MP4 when a negotiation fails. The phone only uses fragmented MP4. A peer connection that lost its picture, for example because the camera went into privacy, is an outage: the viewer keeps retrying and is live again once the camera is.
  • A camera with livestream privacy on is shown as private, and its player starts afresh when privacy ends.
  • A private camera gives out no still. While a camera reports its privacy shutter closed or livestream privacy on, the server refuses its single frame to every client, the Matter bridge included, and says which one is the reason. It does not ask the camera.

The shared media server

An operator may deploy one shared media server for cameras whose plugin cannot make a peer. It pulls those cameras and is itself the viewer's peer, so all cameras and viewers share one exposed port. It is optional, off by default and invisible to the viewer. A camera it cannot take keeps its existing transport.

A viewer outside the home reaches the plane in one of three setups: the plane's UDP port forwarded and announced under a DNS name, STUN with no inbound port, or both. STUN is opt-in (Cameras:MediaPlane:ViewerStunUrls for the browser, the plane's own STUN servers at deploy). It connects where both NATs allow hole punching. Otherwise the viewer falls back to fragmented MP4. A camera with no fMP4 rung has no fallback, so its viewer sees the snapshot or "unavailable". Operators whose off-LAN viewers need such cameras keep the public port. With nothing configured, nothing changes.

While STUN is on, each finished session leaves one row of flags and classes, never an address, kept for 62 days. The media plane's admin overview then shows Viewer connectivity: the share of answered viewers outside the home network whose ICE never connected, split by whether they fell back to fMP4, and the viewers that gathered no public address. It warns when the last five answered negotiations found no off-LAN address for the plane. With STUN off nothing is recorded and the section is hidden.

What the platform stores

The camera record carries stream management, user-level pan/tilt/zoom, zone management, chime state, stream state, motion and motion detection. Stream URLs, snapshot URLs and credentials are never capabilities.

Detections travel as events: object detection, plate recognition, zone stop, doorbell press and chime playback. The first two carry the camera's own detection identifier. Camera automation triggers pass it into the run, and links to that detection's snapshot and clip are built from it. The platform stores no video and no snapshots. Recording and retention belong to the recorder, so a link stops working when the recorder's retention expires.

Two recorder postures exist. A managed recorder is installed and owned by the platform and has its own per-instance broker, so detection traffic never touches the operator's broker. An external recorder is one the operator already runs and is attached strictly read-only.

Motion

A camera is in motion while anything bound to it sees motion. Its own plugin, a recorder watching its stream or any other plugin sends "motion now" at least every 2 seconds while it lasts. A camera whose plugin reports motion as state is turned into the same events by the host. A plugin that does not own the camera needs the permission for reporting detections. Motion ends 6 seconds after the last report from any source.

One motion stretch gives one "motion started" and one "motion stopped" event in the camera's history. The "Camera — motion" automation trigger fires once on the edge it is set to. Every started stretch gets its stopped event, also if the server that saw it start fails: within about 40 seconds of its end, or about 100 seconds if a close fails part-way, counted from when Redis answers again after an outage. While Redis is unreachable no camera reports motion, to automations or to the baby monitor.

Motion that begins while the camera pans, tilts, zooms or moves to a preset, or within 10 seconds after (an operator setting), does not count until it pauses for 6 seconds. Motion already visible before the move keeps counting. The camera.motion state remains what the camera's own plugin reports.

Viewer limit

Each camera has a concurrent-viewer budget. It is enforced by a distributed slot limiter that admits viewers when the database is unavailable. A live stream renews its slot. If it lapses, it can reclaim a free slot, otherwise it ends. Snapshots take no slot.

Transport When the budget is exceeded
HTTP stream The response body ends. A HEAD probe reports the current budget
Media WebSocket Closes with status 1008, reason viewer limit
WebRTC Sends an end signal with reason viewer limit. If it cannot be delivered within 2 s, the session is cancelled

The Matter bridge exposes a snapshot camera endpoint by default. It exposes the full camera type only when a media port and signaller are present. It pulls media through the same access check and viewer budget as a browser.

The camera in the web application

The device panel is a control surface, not a status list. It shows a working control for every capability the camera's descriptor calls controllable: pan, tilt and zoom, privacy and recording switches, night vision, microphone and speaker levels, detection sensitivity, the status light and the chime. It shows a labelled value for every capability the camera reports but cannot set, and nothing for one it does not declare. A camera whose live video is unavailable still drives every capability it declares and says so above the controls.

A picture starts on a tap. The Basic drawer, the dashboard camera and device widgets and the room widget show a placeholder with Show live. The picture stops on Hide live, when the fullscreen overlay closes or when the drawer closes. The Advanced device page and the embed route start live. While a live picture is negotiated, the viewer shows the last still under "Connecting…", or a labelled skeleton, never an empty box. In Advanced an info icon on the picture shows the transport, codecs and candidate pair once measured. A camera tile on Start is twice as wide and tall as other tiles on a two-column grid. It shows the camera's name and its motion and privacy state, and asks the camera for nothing.

A camera card on the device lists is collapsed: one row with Show preview, the Motion, Recording, Moving and privacy-shutter chips and two switches. No media is requested until the button is pressed. Room and dashboard tiles offer at most two actions: cut the livestream and mute the microphone. In Basic the drawer shows no diagnostic chips and folds setting-role controls into "Settings · N".

The Android app follows the same rule. Camera tiles show Show preview, and idle rooms of the baby-monitor screen show Show picture. Nothing is requested until the tap, unless Auto-preview cameras is on (Settings, off by default, per phone). The camera sheet loads on open.

Device lists and device pages

On the device lists a click anywhere on a card opens the detail page, except on the favourite star and the live controls. A card shows one status dot and a line such as "Online · 2 min ago". Green means online. Amber means "Not reporting · last data 4 min ago" (stale data) or a degraded source. Red means "Offline · last seen …".

A device page opens on the control. A breadcrumb sits above a header with icon, name, one status dot, room and kind. A physical page also shows the integration. Rename, Change room, Rediscover and Remove sit in More actions, and only Edit tile stays beside it.

The body is tabs, kept in ?tab= so a link or reload lands on the same tab:

Tab Content Visible in
Overview Control, "At a glance" card, latest commands, findings Basic and Advanced
History Chart and events Basic (logical page) and Advanced
Sources Failover policy, merge, sources Advanced
Settings Basic tile, average-temperature exclusion, linked helpers Advanced
Diagnostics Identifiers, raw state, raw command, recent commands, unmapped properties, state transitions, labels and metadata Advanced

A physical page has Overview and, in Advanced, Diagnostics. In History a setpoint, position or brightness is drawn as steps from its value before the window, and a reading is extended only to the device's last report. Diagnostics blocks start collapsed, show a count in the header ("Recent commands · 20") and remember which are open in localStorage per browser. The page works without storage.

Baby monitor

The baby monitor turns a camera into an alarm. The detail is in Baby monitor. It is off by default and enabled per deployment with BabyMonitor:Enabled. There is no switch in the application, and where it is off nobody sees the feature. Turning it off keeps every profile, and each phone with a running session is told once.

An administrator or power user creates a profile. It names a camera, the sound classes and motion duration it reacts to, a sensitivity preset, a quiet period, an optional reminder interval and the household members who may use it. A profile may only name a camera its manager can view themselves.

This is not a medical device. It detects a configured sound or sustained motion, not breathing, and this is stated wherever a profile or session is set up. Sound detection depends on the camera's own event source. A camera whose detector has silently stopped looks like a quiet room, and the profile form says so.

Alarms

The backend evaluates confirmed sound and motion as one episode. It alerts when the episode starts and every five minutes while it is active and unacknowledged.

  • A phone rings once per episode. The first alert it hears rings, even if it joined mid-episode. Later alerts are a quiet "nobody has answered yet" notification. The phone remembers the episode, so a restart does not ring again.
  • Only a detection rings: a new episode and the test alarm. Every failure is one quiet notification that follows silent mode and Do Not Disturb, plus a status on the session screen. A problem sounds only the first time it appears. If it comes back, it is shown silently until that room has been problem-free for ten minutes or the session is restarted.
  • OK on a phone stops its ring and removes its notification, and tells the server, which stops the re-alerts. The episode itself continues.
  • A member can send a test alarm to their own phone. It is rate-limited, never reaches anyone else and is not an episode.
  • If one member's phone stops monitoring, the others are not told. A member who loses access to the camera is told once that their session stopped.
  • While a session runs, the server also watches the camera. A camera that is unavailable, or gives no picture, for 60 seconds shows a camera fault with a quiet notification on every phone with a session, until it has been healthy for 30 seconds. A camera that only negotiates WebRTC is judged by availability alone.
  • A camera whose plugin is disabled or removed shows nothing and sends no notice. A camera retired by a device-type change stops the sessions like a deleted camera, and the profile needs a new camera.

On the Android app

Baby monitor is on Home and as a launcher shortcut. It is shown only when the monitor is on and the member belongs to a usable profile. One tap starts up to four rooms. Each room has a tile with the live picture, an optional sound toggle, PTZ for members with device control, a status strip and recent events.

  • A full-screen icon shows only the picture, on black, in either orientation. A room that needs a look or an OK is still listed over it. The same icon is on the picture in a camera's device sheet. Pinch zooms digitally up to 4x, a drag pans and a double-tap returns to fit. No camera command is sent.
  • The alarm sounds through a silenced ringer, is capped at 60 seconds per ring and opens full-screen over the lock screen.
  • A readiness screen checks notifications, alarm volume, Do Not Disturb, battery optimisation and exact alarms. It never blocks Start.
  • Each phone chooses its alarm style, sound, alarm volume and an optional automatic stop time. It is told after twelve hours that the monitor is still on. Alarm volume is 0 to 100 percent, 25 percent after install, set by a slider or typed. It does not change the system alarm volume. At 0 percent the ring only vibrates and readiness warns. The system alarm volume caps the level, and readiness warns when it is lower.
  • If the app is killed or the phone restarts, the phone says once that the monitor stopped. It does not resume by itself. Signing out ends every session on the phone.
  • Managers see in the web app who is watching each profile.

The web application

A React single-page application with code-split routes. Light and dark colour schemes follow the browser. The interface is English only. User-written markdown is sanitised against an allowlist.

Basic and Advanced

One application serves both audiences. Basic is the default for everyone. It shows a room-grouped start screen with a drawer per device, and a sidebar trimmed to household destinations. Advanced is the full operator interface. Its toggle appears only for users whose permissions reach an Advanced destination.

The mode only changes what is shown. Hiding a menu item never hides its route, and the server checks every sensitive action. A tab or button the server would refuse is not drawn: Discovered needs integrations.manage, and Merge suggestions and the merge buttons need devices.manage. A typed-in URL for either goes back to the device list.

Basic never shows a device id, source id, plugin or protocol name, raw properties or metadata editing. An unavailable device shows one neutral label.

Basic sorts a device's capabilities by catalogue role:

Role Examples Basic Advanced
Control or Reading switch, brightness, temperature rows, chips, chart series same
Setting image flip, HDR, night vision, motion sensitivity, status light, chime one collapsed "Settings" entry all shown
Diagnostic battery, sensor voltage, link quality, camera frame rate, stream state device facts only Diagnostics tab

A capability with no catalogue role is a Control if the instance can be commanded, otherwise a Reading. Raw driver properties appear only in Advanced.

History offers only numeric capabilities. A cumulative energy counter (Wh, kWh) is never a tile headline or drawer reading, and the drawer shows the energy used today instead. A control whose value the device does not report reads "—".

The Basic device drawer is 480 px wide (full width on a phone). It names the device and room once, shows the control large with at most three readings, and keeps every setting under a collapsed "Settings" group.

Device controls

  • A channel with a blank or generic name ("State", "Channel", "Gang", "State L2") is shown as "Channel N", N being its 1-based position. A name a person or driver chose, "Switch 2" included, is kept.
  • Recent activity lists what happened to a device from its state history. Commands Reeve sent, with their status, are under Diagnostics, Recent commands.
  • Percentages read "75 %". Switch channels read "On" or "Off". An option select the device has not reported reads "Not set".
  • A light's drawer shows on/off, brightness, colour temperature and one colour picker, and folds the rest under "Settings · N". Light state reads "On · 80 %".
  • A climate control opens with one state line, for example "Heating to 21 °C · room 19 °C" or "Off · set to 26 °C · room 25.5 °C". Fan mode, swing and calibration sit under "Settings · N".
  • A vacuum offers "Whole home" as the first room chip.

Household and rooms

The Household page lists rooms with an icon, name and device count. Room names are unique regardless of case: creating or renaming a room to a name another room has in any case ("salon" beside "Salon") is a 409. Changing the case of a room's own name is accepted.

A room is renamed inline, given an icon from a picker, and reordered with up and down. The icons are home, living-room, bedroom, kitchen, dining-room, bathroom, office, study, lounge, hallway, sunroom, garden, garage, laundry, game-room, music-room, gym, pool, workshop. No icon, or an unknown stored value, shows the default (a door).

Deleting a room (rooms.manage, DELETE /api/rooms/{id}) asks for confirmation and says how many devices and utility meters it holds. It is never refused. Its devices and meters become unassigned, and the deletion is audited as rooms.deleted. A dashboard room panel that names it shows no devices, a workflow that filters by it finds none, a blueprint installation bound to it fails the next daily validation and its workflow is disabled, and a token scoped to it as a device group reaches nothing through it.

First-run setup

The wizard is offered only to a person with home.manage, until someone finishes it. Completing or skipping it (POST /api/users/me/onboarding/complete and /skip) needs home.manage. A first room also needs rooms.manage. A second completion by the same account is a 409. The wizard proposes the browser's time zone (Etc/UTC when none is sent) and a currency from the language (USD with locale en-US as the fallback). The person confirms each.

Demo content is optional. The wizard first runs the workload preflight a demo install runs (answers within 30 seconds). If it finds a blocker, such as a failing check at error severity, a missing StorageClass or an unhealthy Virtual Devices simulator, the card is disabled with the reason and fix. Completing setup with demo content starts a background run and answers at once. The app shell shows progress and then the outcome with the backend's reason. Every person with home.manage sees the household's latest run in the app shell and in System, Home settings, and can start a new run there. A failure shows again after a reload until dismissed in that browser. A success hides itself after six seconds. A run survives the loss of its replica: the next owner resumes each step.

Delivery

The frontend serves the app shell, sw.js, the manifest and other unhashed files with Cache-Control: no-cache, and hashed files under /assets/ as public, max-age=31536000, immutable, so a browser shows a new UI on its first load after a deploy. The service worker caches hashed assets first and the app shell network-first with an offline fallback. A lazy chunk that fails to load in a tab older than the deploy reloads the page once.

Dashboards and widgets

Dashboards are recursive layouts of containers and widgets, personal or shared, with pinning. A save replaces the whole dashboard and the last save wins, with no conflict prompt (known limitation).

With no dashboard, Basic links to Start. Advanced (with dashboards.edit and at least one room) offers, on a click, to create a dashboard with one room panel per room. Panels flow into as many columns as fit (about one per 460 px). On a phone each room panel keeps its device list behind a "Show <room> devices (n)" toggle.

Custom widgets are third-party bundles in a cross-origin sandboxed frame. They get no token and talk by message passing, and reach only the devices bound to them in the dashboard configuration. Their configuration forms are generated from the widget's schema. A widget renders for every user who can see its dashboard and reads and writes its bound devices with that viewer's own access. Anyone who may edit dashboards can place any installed widget. Every administrator sees, updates and uninstalls installed widgets. An update rewrites the installation in place with the release its repository lists.

Live updates arrive over SignalR. Sign-in state is held in memory only, behind the session cookie, and every change of user clears every cache and store.

System status

System status, at /app/system, is the Advanced operator's home for what needs attention. It is open to anyone who may see at least one box of GET /api/system/status. Its sidebar entry carries the attention count in the colour of the worst severity.

The Overview tab has a status line, the ten worst open alerts and one box per area. Boxes with a problem come first and are expanded. The status line never reads All clear over a box that needs attention, and it names replicas and boxes it could not read (status incomplete: reeve-1, Delivery). It shows how many replicas the cluster should have, and while live replicas run different versions the Version box needs attention and lists each version with its replica count.

  • The Plugins box needs attention for a load fault, a secret wait, or an enabled instance whose fleet-wide health is NotConfigured or worse.
  • The Devices box counts the non-retired devices an enabled plugin cannot reach (44 of 44 devices unreachable: their plugin or its session is down). A device that is Offline by its own report is named (3 devices offline by their own report) but never puts the box in attention, since a household may leave a device off. A disabled instance's devices count nowhere.
  • A box shows only to a holder of the permission that gates its data.
Tab Shows
Alerts alerts by state and area with the acknowledge, snooze, silence and repair actions. Filters live in the address, so a link opens already narrowed. See alerts
Plugins & workloads plugin health, workloads with the engine's reason and each volume's capacity, detached volumes, the gateway's live sessions and its handshake failures of the last 24 hours, the plugin roll with Retry and Give up (workloads.approve)
Automations & devices automations disabled automatically, devices that objects still refer to through features they no longer have, and automations, scenes and shared dashboards that refer to removed devices or helpers
Security secret provider health and unresolved references, the key ring, configured certificates with expiry highlighted, open egress denials
Cluster (home.manage) every replica with its boot state, build, unit kinds, safe-mode reason and last boot failure; Restart on a running replica and Remove from list on one that is not; each replica's log tail

On the Cluster tab a replica refused by the start-up window shows Refused to start <time> and the box needs attention for 10 minutes. A replica not seen live for Coordination:MissingReplicaWindow (default 24 hours) stays listed as stopped and is deleted after Coordination:BootStateRetention (default 7 days). While any replica is in safe mode, the tab lists plugin instances with enable switches.

In Advanced a bell lists what is new since the user last signed in, and each item can be dismissed for this user or silenced for everyone. An open Critical alert or a replica in safe mode raises a banner on every page for a user who may see it. Advanced shows the message and a link. Basic shows "Reeve needs an administrator's attention", linking to System status with no detail. An Advanced user who signs in while a Critical alert is open lands on System status once per sign-in.

Dates and times

Every instant is English text in the viewer's browser time zone. Under 24 hours it is relative ("just now", "5 min ago", "3 hr ago"), otherwise "Oct 26, 18:02", with the year when it is not the current one. Future instants read absolute. Hovering shows the exact time with seconds, except on the Basic activity list. The Start heading and the dashboard clock widget use the household's time zone. The clock widget may name its own zone and says under the time which zone it shows.

The mobile companion

A read-oriented Android companion, not a second web application. It monitors the home and sends simple commands. The phone may change only a closed list: a device's name, room and favourite flag, scene activation, per-capability actuation, adding a device by pairing, and starting, stopping, acknowledging and testing a baby monitor session. Full detail is in mobile.

  • Four tabs (home, devices, map, settings) with bottom sheets instead of pickers.
  • Android surfaces: a Device Controls provider, Quick Settings scene tiles, launcher shortcuts and home-screen widgets for favourites and presence. Only the Device Controls panel sends device commands and only the scene tile activates scenes.
  • Settings offers System, Light or Dark theme (default Dark). About shows the app and server versions.
  • It shares the browser's session cookie, kept in secure storage so a cold start is signed in. Cleartext HTTP is refused. Offline, it shows the last dashboard and device snapshots from a cache that signing out wipes.
  • Location sharing is opt-in. The map lists all sharing phones for a user with locations.view (or home.manage) and only the user's own for anyone else.
  • Automation notifications become OS notifications. With "Notify me when the app is closed" on (off by default) they also reach a minimised phone, which receives alerts but not every device state change.
  • Matter pairing runs on the phone's platform commissioner and hands the server a routable address.
  • Rows grow with font scale up to 200%, touch targets are at least 48 by 48 dp, and rotary controls have increment and decrement buttons for screen readers.

Identity and access

Reeve supports local password sign-in and OpenID Connect with several providers at once. Reeve never contacts a provider to check it, so an enabled OIDC integration reports "Configured (not checked)", never Healthy. TOTP and WebAuthn are second factors and step-up proofs. Personal access tokens give scripts a revocable, bounded credential. Details are in authentication and authorization.

Roles and permissions. Access control uses a closed catalogue of permission codes. Per-user overrides can hide a device or make it view-only. Per-user time windows follow the household time zone and restrict device control and history. Analytics and utility metering data stay visible outside a window.

A built-in role's default grants are given once, when the role is created or a code first enters the catalogue. An administrator's removal of a default grant survives every restart. An upgrade grants a new code only to roles whose defaults list it and revokes nothing. Administrator always holds the whole catalogue.

Step-up. Sensitive writes wait for the user to choose the action again after proving identity, and revealing a stored secret always needs an explicit "Reveal now" click.

Built-in administrator. It is the break-glass account. While it exists it cannot be disabled or lose the Administrator role, not even through OIDC role sync. Every database initializer run restores its existence, password and role.

Safe mode. With local login disabled, a safe-mode replica accepts a password only from an account holding the Administrator role. A safe-mode replica is not ready, answers every request outside the recovery and sign-in surface with 503 replica_not_serving, and takes no workloads-engine leadership. A peer's Cluster tab can restart it.

Failed sign-ins. Repeated failed password sign-ins block the source address, five attempts for fifteen minutes by default (Auth:Lockout). Every name gets the same 429, so nobody can lock another person's account.

Federated sessions. A session ends only when the provider refuses its token. If the provider is unreachable, the request gets 503 with Retry-After, the session stays, and the web client retries instead of showing the sign-in page. A provider's new signing key is picked up on the first token that names it.

Cross-site requests. A write or realtime connection that carries the session cookie and that the browser marks Sec-Fetch-Site: same-site or cross-site is refused with 403 cross_site_request_refused, unless its origin is in Cors:AllowedOrigins. A request without that header, as plain-HTTP addresses and the phone app produce, is let through.

How fast changes apply. A change to what a user may see or control takes effect on every replica within five seconds for requests and thirty seconds for realtime pushes, both tunable. Revoking a session or token, changing a password, and disabling or deleting a user also close that user's SignalR connections on every replica. Sessions are authoritative in Redis and tokens in Postgres. An outage of one store does not end a credential that is valid in the other.

Energy and utilities

Plans, meters and the formula language are described in utility resources. This section covers what the pages show.

Meters and units. Meters cover electricity, gas, water, sewage and heat. Energy is normalised to kilowatt-hours and volume to cubic metres. An unrecognised unit raises an unsupported-conversion flag instead of being guessed.

A meter that names a canonical capability of its device is checked when the device model changes and when the meter is saved or deleted. The finding is listed on the device and links to the meter's editor. It blocks nothing. Consumption stops accruing while the metric is missing.

Code Raised when
device.capability.missing the device no longer declares the capability
device.capability.kind-changed the capability is now another kind
device.capability.value-domain-changed the unit changed, until the meter is saved with the new unit
device.replaced the device is retired

Tariffs. A variable-cost expression is evaluated once per time bucket under scheduled coefficients, and a fixed-cost expression once per billing period. Every scheduled coefficient needs a default, and the highest-priority matching rule wins. Rule times, buckets and billing periods follow the home's wall clock, daylight-saving changes included. Cost is an estimate, not an invoice. Any plan can be previewed against recorded usage, and a formula plan also from typed values. A typed rate accepts a point or a comma as the decimal mark.

Current draw and Used today. The Start page's Drawing now, the Basic Energy page's Current draw and Used today, and the Android app's Power now follow the household's main electricity meters. A main meter is an electricity meter with no parent, included in calculations, that another electricity meter sits behind. Without one, the interface says the scope is partial.

  • A main meter whose device reports counts as itself. Otherwise the devices of the meters directly behind it count. Reporting means a power reading for the draw and an energy counter for Used today.
  • On a main meter's device, only the reading the meter reads is counted when the device has it, otherwise every power reading or energy counter it has.
  • When nothing under the main meters reports, or none is configured, every available device is summed.

To get these figures right, add a meter for the mains reading and put the plug meters behind it. GET api/utility/meters/main-devices lists the main meters' devices, the reading each reads and the devices behind it for any holder of devices.view, leaving out devices the caller cannot see. The meters themselves need utility.view. Top consumers on the Energy page list every device.

Cumulative counters. The server computes a counter's use from its raw readings and the last reading at or before the window start. Windows and buckets are end-inclusive, (from, to]. A step belongs to the bucket of the later reading. A fall to under half the previous reading is a reset and the new reading counts as use. A smaller fall counts none. Hours past raw retention come from the hourly aggregate, accurate to the hour at each edge. A series stored in an energy unit is a counter, and its use is stated in watt-hours. A counter that cannot state a use in the window adds nothing to Used today. If none can, the page says so instead of showing 0.

Data, history and operations

Storage, analytics and retention

TimescaleDB is the only persistent store, for domain data and time-series history. One database backup is a complete backup, plus the directory or bucket of a filesystem or S3 object storage provider if one is in use. Redis holds only cache, sessions and queues. Backup itself is left to infrastructure. The repository ships backup, restore and verification scripts, and the operator owns frequency, retention and storage. See backup and restore.

One hourly continuous aggregate backs wide analytics windows, and narrow windows read the raw data. The aggregate excludes the newest hour. Statistics that cannot be recomputed from hourly buckets return null over aggregate-sourced ranges.

Every table that grows daily has a retention policy or a scheduled bulk delete. Audit retention is Audit:RetentionDays (default 365, range 1 to 3650). The audit log holds real changes and failures, not read activity or run history, and its page filters by event type, scope and actor.

Migrations apply at boot behind a boot lock, followed by reference seeds and the bootstrap administrator. A migrate-only mode applies the schema and exits.

A replica that is not serving

A replica that has not joined the cluster, has been fenced or is behind the configuration it must serve refuses requests instead of acting on stale state. The refusal is a problem document with a top-level errorCode (replica_not_serving, replica_fenced, replica_behind) and a Retry-After header. A write whose commit is refused mid-request answers 503 write_refused. If entries were already appended it answers 202 write_unconfirmed.

A fenced replica still answers sign-in, health, metrics, /version, the client configuration, system status, replica logs, the recovery endpoints, and (with home.manage) /api/admin/cluster/skips and /api/admin/cluster/status. It closes open connections, including camera streams and Matter media. It runs no flow step or leader job and hands no command, notification or alert delivery to a plugin. Its plugin instances keep running and receiving device events, so an automation fired by an event only the fenced replica receives does not run during the fence, while one a peer also receives runs there. The devices behind its plugins move to a peer once the plugin closes its connection. The replica resumes once the cluster reports it serving again.

The Android app waits Retry-After and retries an admission refusal once. It does not retry write_refused. On write_refused or write_unconfirmed it shows a notice and re-reads state (mobile). See running multiple replicas.

Health and observability

A liveness probe answers while the process runs. Readiness gates on the primary database and the cluster library's check. A details endpoint exposes degraded-tagged checks without pulling a pod from rotation.

Observability is exported, never bundled: a Prometheus scrape endpoint (optionally bearer-protected) and OTLP trace push to the operator's collector. Prometheus scraping and OTLP metrics are off unless enabled, and tracing is registered only when a collector endpoint is set. Dashboards and alert rules ship as importable files. Spans carry no workflow values, tokens or connection strings. The backend and the browser app can each report errors to a Sentry-protocol service, each with its own project DSN, both off by default. See observability.

Trusted certificate authorities

The operator can add CA certificates as a PEM bundle in Tls__TrustedCaCertificates (chart tls.trustedCaCertificates). A block that does not parse, or a bundle over 64 KiB after normalisation, stops startup with an error naming the setting. The host trusts the list after the system roots for its own outbound TLS: HTTP clients, secret providers, MQTT connections, and the access it gives in-process plugins. A host name mismatch is never accepted. Database, Redis, Kubernetes, Docker and Loki connections keep their own trust settings. A workload gets the list only if its manifest declares the bootstrap key trustedCaCertificates. Changing the list takes a host restart. See TLS trust.

Egress and certificate alerts

A blocked outbound call raises one egress.denied alert per subject (a core client, workflow or plugin instance), host and port. The subject's next allowed call to that host and port clears it. A server certificate the host refuses raises tls.certificate_rejected, naming the client or secret provider, host, issuer and reason, and the next accepted handshake clears it. It covers HTTP clients and Vault, not S3, MQTT or the inside of a workload. An allowed call never waits on either alert. See alerts.

Object storage

Blob-shaped state lives in named providers: the built-in database provider plus any number of local filesystem or S3-compatible providers. They are edited on the Object storage page, or declared by the deployment with Managed:ObjectStorage, which makes the list read-only while switching stays available. See object storage.

Switching providers is a verified copy-and-flip migration that works on any number of replicas. Once the switch is accepted no replica writes to the old backend, and none uses it once the flip commits. One replica drives a migration at a time, and another replica taking over resumes where it stands. A migration that copies existing data ends by deleting target objects outside its snapshot. An operator with home.manage can abort a running migration from the Object storage page. The migration is marked failed and audited, and writes resume on the current provider. Objects already copied stay on the target until the next migration to it deletes them.

Resilience

Two consecutive failed boots engage safe mode, which disables non-essential subsystems and offers a recovery interface for fixing the configuration that broke the boot. Boot state is kept in the database. A backend started while the database is still coming up waits for it for a bounded time. One whose database never answers exits so its restart policy tries again, and that does not count toward safe mode.

The operator status API summarises the permission-filtered cluster, plugin, workload, gateway, security, certificate and build views. A missing report marks that replica incomplete, and only unreadable report storage makes dependent boxes unavailable. Boot history cannot be removed for a current, live or recently failing replica. Key-ring metadata is available to secrets.bind holders through the status API.

Deliberately not in the product

  • Cloud voice fulfilment. There is no Google Home or Alexa cloud integration. The local Matter bridge reaches those ecosystems instead.
  • An in-application backup action. Use Postgres-native tooling.
  • Video storage. Recording and retention belong to the recorder.
  • A sandbox for the C# scripting block. Access control is the control.
  • Plugin quality tiers or a certification programme. A manifest declaring a quality level is rejected. The only trust signal is a signature the operator's own key list verifies.
  • iOS. The mobile companion is Android only.

Device model findings

When a device's capabilities change, the scenes, automations, workflows, baby-monitor profiles and utility meters that refer to it are checked again. Each finding names the affected device and object. The codes are in devices, the design in device model and the fixes in troubleshooting.

Warnings and errors. A broken reference is a warning rather than an error only while a plugin-owned source of the device has not yet reported a descriptor. An Unknown, Coordinator or host-owned source never softens it. A warning becomes an error once a plugin reports a descriptor equal to the stored one and no source is awaiting description.

Automations. An open Error on an automation, its workflow, or any workflow it reaches through static sub-workflow nodes (up to 10 levels) disables the automation. Enabling it is refused with automation.blocked.device-model. When the last blocking finding clears, the automation resumes only if the model switched it off and nobody has edited, enabled, disabled or put it in debug mode since. Resuming writes an automation.resumed audit row and event.

Where operators see findings. On the device view, as a badge on affected automations and scenes, and beside the causing blocks in the workflow editor. They update without a reload. Each entry links to the editor of the object it sits on. Its message names the device and, for a channel or button, the channel's plugin-assigned number and its former label.

Stored values. A stored value or expected unit is judged against each source's capability by the rule a command uses. If no source accepts it, the finding is device.capability.value-domain-changed. Wired or computed values and ordering-operator thresholds are not judged. A utility meter's unit is judged against the unit each source declares, and saving the meter with the declared unit clears it.

Alerts.

Alert Raised when Cleared
device.dependencies_broken a device has open Error findings (one per device) the findings clear or the device is removed
automation.disabled model findings or a workflow input change disabled an automation the automation is enabled by any path, within the one-minute maintenance pass
device.rehomed (Warning) a device-type change moved a source one acknowledgement
device.exposure_changed (Warning) a Matter endpoint of an exposed device was removed, re-identified or made read-only one acknowledgement

automation.disabled says why in plain words ("a device it uses changed", "its workflow's inputs changed") and names the device and capability, or the parameters that no longer fit. A disable caused by a workflow input change stays until an operator enables the automation.

Retired devices. A device retired by a device-type change stays visible with its replacement. References to it are device.replaced errors that an operator repairs by hand, and saving the repaired object clears the finding. Commands to a retired device are refused. Retention removes it only after the device-model event retention period and when no scanned reference or utility meter points at it.

Device-type change. The new device inherits the Matter exposure flag and exported name of the device the source left. If that device is retired, its helpers move too, except one whose name the new device already has. Utility meters, dashboard tiles and chart series are not moved. device.rehomed says that telemetry history, channel labels and critical keys do not carry over.

Matter exposure. The bridge rebuilds an exposed device after any applied descriptor change of its active source. A re-home or collapse gives the endpoints new ids, so the device must be added again in Google Home or Apple Home, and the alert says so. The bridge never exposes a retired device.

One device replacing several. When a plugin reports that one device replaces several (a power strip that replaces several plugs), the host moves their scene actions, automation triggers and bindings, channel labels, helpers, dashboard device widgets, exposure, access restrictions, room and critical flags onto the new device's channels in one transaction. It retires the replaced devices and records a collapse model event. History stays on the retired devices. Where two replaced devices restrict the same user by time of day, the windows that allow the fewest minutes apply.

What the mapping cannot carry stays on the retired device and is reported as device.replaced. Published workflow versions are never rewritten, only scanned. Blueprint installations, utility meters, tiles, favourites, baby-monitor profiles and merge suggestions keep pointing at the retired device.

If the report also changes the type of its reporting source, that change applies first and the collapse follows as a separate change. If the collapse keeps failing, the fifth failed attempt raises an Error alert on the plugin naming the device, the replaced devices and the last error. It clears when the change completes or its source or plugin instance is removed. Retries continue, at most hourly. The alert goes through the plugin issue registry.