UNPKG

matterbridge-roborock-vacuum-plugin

Version:
19 lines (18 loc) 865 B
import { RvcCleanMode } from 'matterbridge/matter/clusters'; import { RvcCleanMode as RvcCleanModeDisplayMap } from './smart.js'; import { getDefaultSupportedCleanModes } from '../default/initalData.js'; export function getSupportedCleanModesSmart(enableExperimentalFeature) { return [ { label: RvcCleanModeDisplayMap[4], mode: 4, modeTags: [{ value: RvcCleanMode.ModeTag.Mop }, { value: RvcCleanMode.ModeTag.Vacuum }, { value: RvcCleanMode.ModeTag.Auto }], }, { label: RvcCleanModeDisplayMap[5], mode: 5, modeTags: [{ value: RvcCleanMode.ModeTag.Mop }, { value: RvcCleanMode.ModeTag.Vacuum }, { value: RvcCleanMode.ModeTag.Day }], }, ...getDefaultSupportedCleanModes(enableExperimentalFeature).filter((x) => x.mode !== 4 && x.mode !== 5), ]; }