matterbridge-roborock-vacuum-plugin
Version:
Matterbridge Roborock Vacuum Plugin
11 lines • 437 B
JavaScript
import { CleanModeDisplayLabel } from '../core/cleanModeConfig/index.js';
export class GoVacationHandler {
canHandle(_mode, activity) {
return activity === CleanModeDisplayLabel.GoVacation;
}
async handle(duid, _mode, _activity, context) {
context.logger.notice(`${context.behaviorName}-GoHome`);
await context.roborockService.stopAndGoHome(duid);
}
}
//# sourceMappingURL=goVacationHandler.js.map