Dominevo
ReferenceDevice capabilities

day-night

Vendor-neutral day/night (IR-cut) control — the per-camera config cap shared by reolink / hikvision / amcrest.

Vendor-neutral day/night (IR-cut) control — the per-camera config cap shared by reolink / hikvision / amcrest. Models the common firmware surface: the IR-cut switching MODE plus the two knobs that gate it (photocell sensitivity + switchDelaySec). Each vendor maps these onto its own ISAPI / Baichuan / Dahua-CGI fields; the cap standardises the shape so ONE derived-form renders every camera.

No hand-written settings-contribution methods — the framework derives the UI + save routing from this surface.

IR-cut switching mode. schedule = time-of-day table configured on the camera.

At a glance

Capabilityday-night
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera
Device settingsYes: its settings section on the device page is built from this capability's methods.
Sourcepackages/types/src/capabilities/day-night.cap.ts

Methods

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

MethodKindRequired of a providerAccess
getOptionsqueryyesdefault
setSettingsmutationyesadmin

getOptions

query

Input

No fields besides deviceId.

Output

Per-camera availability descriptor — drives which controls the admin UI renders. Booleans as supportsX; numeric ranges as { min, max, step } (normalized 0–100); the mode choice-set as an array. A provider returns honest, camera-probed values — never hardcoded.

FieldTypeRequiredDescription
modes("auto" | "day" | "night" | "schedule")[]yesModes this camera accepts. Empty → the camera has no configurable day/night mode.
supportsSensitivitybooleanyes
sensitivity{ min: number; max: number; step: number }noPresent when supportsSensitivity — the normalized 0–100 range.
supportsSwitchDelaybooleanyes
switchDelaySec{ min: number; max: number; step: number }noPresent when supportsSwitchDelay — the allowed delay range in seconds.

setSettings

mutation

Input

FieldTypeRequiredDescription
settings{ mode?: "auto" | "day" | "night" | "schedule"; sensitivity?: number; switchDelaySec?: number }yes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
dayNight.autoDay/night auto
dayNight.dayDay mode
dayNight.nightNight mode

Runtime state

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

FieldTypeRequiredDescription
mode"auto" | "day" | "night" | "schedule"yes
sensitivitynumbernoIR-cut trigger sensitivity, NORMALIZED 0–100 (higher = switches to night sooner).
switchDelaySecnumbernoDelay before the IR-cut filter flips, in seconds.
lastFetchedAtnumberyes