matterbridge-roborock-vacuum-plugin
Version:
Matterbridge Roborock Vacuum Plugin
28 lines • 1.05 kB
TypeScript
import { AnsiLogger } from 'matterbridge/logger';
import { ServiceArea } from 'matterbridge/matter/clusters';
import { RoomIndexMap } from '../core/application/models/index.js';
import { HomeEntity } from '../core/domain/entities/Home.js';
export interface AreaInfo {
mapId: number | null;
roomId: number;
roomName: string;
}
export interface SegmentInfo {
areaId: number;
mapId: number;
roomName: string;
}
export interface SupportedAreasResult {
supportedAreas: ServiceArea.Area[];
supportedMaps: ServiceArea.Map[];
roomIndexMap: RoomIndexMap;
}
/**
* Convert vacuum rooms and room map to Matter ServiceArea areas.
* Handles single and multiple map configurations.
* @param homeInFo - Home entity containing room and map information
* @param logger - Logger for debugging and error reporting
* @returns Supported areas, maps, and room index mapping
*/
export declare function getSupportedAreas(homeInFo: HomeEntity, logger: AnsiLogger): SupportedAreasResult;
//# sourceMappingURL=getSupportedAreas.d.ts.map