Interface IValueFunc

interface IValueFunc {
    addEvent(
        level: EventLogLevel,
        message: string,
        info?: JSONObject,
    ): Promise<IEventLog>;
    analyzeEnergy(start: Timestamp, end: Timestamp): Promise<any>;
    control(data: ReportValueInput, timestamp?: Timestamp): Promise<boolean>;
    controlWithAck(
        data: ReportValueInput,
        timestamp?: Timestamp,
    ): Promise<undefined | null | string>;
    createState(parameters: IState): Promise<IState>;
    deleteState(type: StateType): Promise<void>;
    energyPieChart(start: Timestamp, end: Timestamp): Promise<any>;
    forceReport(
        data: ReportValueInput,
        timestamp?: Timestamp,
    ): Promise<boolean>;
    getControlLog(request: LogRequest): Promise<ILogResponse>;
    getReportLog(request: LogRequest): Promise<ILogResponse>;
    onControl(callback: ValueStreamCallback): Promise<boolean>;
    onRefresh(callback: RefreshStreamCallback): Promise<boolean>;
    onReport(
        callback: ValueStreamCallback,
        callOnInit?: boolean,
    ): Promise<boolean>;
    report(
        data: ReportValueInput | LogValues,
        timestamp?: Timestamp,
    ): Promise<boolean>;
    summarizeEnergy(start: Timestamp, end: Timestamp): Promise<any>;
}

Implemented by

Methods