UNPKG

matter-history

Version:
85 lines 3.4 kB
/** * This file contains the class MatterHistory. * * @file matterHistory.ts * @author Luca Liguori * @date 2023-12-26 * @version 1.3.0 * * Copyright 2023, 2024, 2025 Luca Liguori. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ import { MatterbridgeEndpoint } from 'matterbridge'; import { AnsiLogger } from 'matterbridge/logger'; import { History, OptionalHistoryParams } from './history.js'; export declare class MatterHistory extends History { constructor(log: AnsiLogger, name: string, optionalParams?: OptionalHistoryParams); static uint8ArrayFromHex(hexString: string): Uint8Array; static uint8ArrayToHex(byteArray: Uint8Array): string; /** * Sets the Matter History Type. * * @param matterType - The type of matter device: "door", "motion", "energy", "weather" and "room". * @param serialNumber - The optional serial number. */ setMatterHystoryType(matterType: string, serialNumber?: string): void; /** * Creates a room Eve History Cluster Server. * * @param device - The Matter Device instance. * @param log - The AnsiLogger instance. */ createRoomEveHistoryClusterServer(device: MatterbridgeEndpoint, log: AnsiLogger): void; /** * Creates a Weather Eve History Cluster Server. * * @param device - The Matter Device instance. * @param log - The AnsiLogger instance. */ createWeatherEveHistoryClusterServer(device: MatterbridgeEndpoint, log: AnsiLogger): void; /** * Creates an Energy Eve History Cluster Server. * * @param device - The Matter Device instance. * @param log - The AnsiLogger instance. */ createEnergyEveHistoryClusterServer(device: MatterbridgeEndpoint, log: AnsiLogger): void; /** * Creates a Motion Eve History Cluster Server. * * @param device - The Matter Device instance. * @param log - The AnsiLogger instance. */ createMotionEveHistoryClusterServer(device: MatterbridgeEndpoint, log: AnsiLogger): void; /** * Creates a door EveHistoryCluster server. * * @param device - The Matter Device instance. * @param log - The AnsiLogger instance. */ createDoorEveHistoryClusterServer(device: MatterbridgeEndpoint, log: AnsiLogger): void; private setConfigDataTags; autoPilot(device: MatterbridgeEndpoint): void; OnGetConfigData(isFabricFiltered: boolean | undefined): Uint8Array; OnSetConfigData(value: Uint8Array): boolean; OnGetHistoryStatus(isFabricFiltered: boolean | undefined): Uint8Array; OnGetHistoryEntries(): Uint8Array; OnSetHistorySetTime(value: Uint8Array): boolean; OnSetHistoryRequest(value: Uint8Array): boolean; OnGetimesOpened(): number; OnGetLastEvent(): number; OnGetLastReset(): number; OnSetLastReset(lastReset: number): boolean; } //# sourceMappingURL=matterHistory.d.ts.map