MELCloud & MELCloud Home API for Node.js - v23.3.3
    Preparing search index...

    Function updateDevices

    • Method decorator factory that propagates data changes to device models after the decorated method completes. Supports filtering by device type and handles the special SetPower method name for power state updates.

      Type Parameters

      Parameters

      • root0: { type?: DeviceType } = {}

        Options object.

        • Optionaltype?: DeviceType

          Optional device type to filter which devices are updated.

      Returns (
          target: (...args: any[]) => Promise<T>,
          context: ClassMethodDecoratorContext,
      ) => (...args: unknown[]) => Promise<T>

      A method decorator that updates device models after execution.