Device parameter – one controllable parameter of a device (e.g. Power, Brightness). Holds a WeakRef to the parent node so writes can be dispatched via the best available transport (see delegatedTransportHandler).

Implements

Constructors

Properties

_nodeRef: WeakRef<ESPRMNeoNode>
bounds?: Record<string, unknown>
dataType: string
deviceName: string
id: string
properties: string[]
type: string
uiType?: string
validStrings?: string[]
value?: any

Methods

  • Gets aggregated time-series data for this param from GET /v1/groups/{groupId}/nodes/{nodeId}/timeseries/aggregates.

    Query modes (all require options.window):

    • no date options: current (live) window
    • date: one completed historical window
    • startDate + endDate: paginated range of completed windows

    Parameters

    • Optionaloptions: ESPRMNeoTSDataOptions

      Query options (window required; date or startDate/endDate for historical windows; paginate via pageSize/startKey or the result's fetchNext()).

    Returns Promise<ESPRMNeoTSDataResult>

    Promise resolving to time-series data with aggregates populated.