UNPKG

matterbridge

Version:
53 lines 2.13 kB
/** * This file contains the entry point of Matterbridge. * * @file index.ts * @author Luca Liguori * @date 2023-12-29 * @version 1.0.7 * * 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. * */ // Matterbridge import { Matterbridge } from './matterbridge.js'; import { hasParameter } from './utils/export.js'; // AnsiLogger module import { AnsiLogger } from './logger/export.js'; // Matterbridge export * from './matterbridge.js'; export * from './matterbridgeTypes.js'; export * from './matterbridgeEndpoint.js'; export * from './matterbridgeEndpointHelpers.js'; export * from './matterbridgeBehaviors.js'; export * from './matterbridgeDeviceTypes.js'; export * from './matterbridgePlatform.js'; export * from './matterbridgeAccessoryPlatform.js'; export * from './matterbridgeDynamicPlatform.js'; export { addVirtualDevice } from './helpers.js'; // Single class device types export * from './roboticVacuumCleaner.js'; export * from './laundryWasher.js'; export * from './waterHeater.js'; export * from './evse.js'; const log = new AnsiLogger({ logName: 'Main', logTimestampFormat: 4 /* TimestampFormat.TIME_MILLIS */, logLevel: hasParameter('debug') ? "debug" /* LogLevel.DEBUG */ : "info" /* LogLevel.INFO */ }); async function main() { log.debug('***Matterbridge.loadInstance() called'); await Matterbridge.loadInstance(); log.debug('***Matterbridge.loadInstance() exited'); } main().catch((error) => { log.error(`Matterbridge.loadInstance() failed with error: ${error instanceof Error ? error.message : error}`); }); //# sourceMappingURL=index.js.map