MELCloud & MELCloud Home API for Node.js - v48.2.0
    Preparing search index...

    Class ClassicFacadeManager

    Lazily creates and caches facade instances using a WeakMap keyed by model reference. Ensures each model instance maps to exactly one facade throughout its lifetime.

    Index
    • Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.

      Parameters

      • kind: "areas" | "floors"

        Registry collection to look in.

      • id: number

        Entity identifier.

      Returns ClassicZoneFacade | null

      The facade, or null when the id is unknown.

    • Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.

      Parameters

      • kind: "buildings"

        Registry collection to look in.

      • id: number

        Entity identifier.

      Returns ClassicBuildingFacade | null

      The facade, or null when the id is unknown.

    • Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.

      Parameters

      • kind: "devices"

        Registry collection to look in.

      • id: number

        Entity identifier.

      Returns ClassicDeviceFacadeAny | null

      The facade, or null when the id is unknown.

    • Resolves a facade by registry collection and id — the by-id twin of get, using the same collection vocabulary as the registry's namespaced accessors.

      Parameters

      • kind: "areas" | "buildings" | "devices" | "floors"

        Registry collection to look in.

      • id: number

        Entity identifier.

      Returns ClassicFacade | null

      The facade, or null when the id is unknown.