UNPKG

matterbridge-dyson-robot

Version:

A Matterbridge plugin that connects Dyson robot vacuums and air treatment devices to the Matter smart home ecosystem via their local or cloud MQTT APIs.

35 lines 3.18 kB
import { ModeBase, RvcOperationalState } from 'matterbridge/matter/clusters'; export declare class RvcOperationalStateError extends Error { readonly id: RvcOperationalState.ErrorState | number; readonly label?: string | undefined; readonly details?: string | undefined; constructor(id: RvcOperationalState.ErrorState | number, label?: string | undefined, // (if a manufacturer-specific id, otherwise undefined) details?: string | undefined, options?: ErrorOptions); static toId(err?: unknown, defaultId?: number): RvcOperationalState.ErrorState | number; static toStruct(err?: unknown, defaultId?: number): RvcOperationalState.ErrorStateStruct; static toResponse(err?: unknown, defaultId?: number): RvcOperationalState.OperationalCommandResponse; static create(idName: keyof typeof RvcOperationalState.ErrorState): new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly NoError: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly UnableToStartOrResume: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly UnableToCompleteOperation: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly CommandInvalidInState: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly FailedToFindChargingDock: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly Stuck: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly DustBinMissing: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly DustBinFull: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly WaterTankEmpty: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly WaterTankMissing: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly WaterTankLidOpen: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; static readonly MopCleaningPadMissing: new (details?: string, options?: ErrorOptions) => RvcOperationalStateError; } export declare class ChangeToModeError extends Error { readonly status: ModeBase.ModeChangeStatus | number; constructor(status: ModeBase.ModeChangeStatus | number, message?: string, options?: ErrorOptions); static toResponse(err?: unknown): ModeBase.ChangeToModeResponse; static create(statusName: keyof typeof ModeBase.ModeChangeStatus): new (message?: string, options?: ErrorOptions) => ChangeToModeError; static readonly Success: new (message?: string, options?: ErrorOptions) => ChangeToModeError; static readonly UnsupportedMode: new (message?: string, options?: ErrorOptions) => ChangeToModeError; static readonly GenericFailure: new (message?: string, options?: ErrorOptions) => ChangeToModeError; static readonly InvalidInMode: new (message?: string, options?: ErrorOptions) => ChangeToModeError; } //# sourceMappingURL=error-360.d.ts.map