MELCloud & MELCloud Home API for Node.js - v60.5.0
    Preparing search index...

    Class ClassicRegistry

    Central in-memory registry of all MELCloud models (buildings, floors, areas, devices). Synced from the Classic API response and queryable by ID or parent relationship.

    Index
    areas: { getById: (id: number) => ClassicArea | undefined } = ...

    Type Declaration

    • getById: (id: number) => ClassicArea | undefined

      Returns the area with the given id, or undefined when no such area is registered.

    buildings: { getById: (id: number) => ClassicBuilding | undefined } = ...

    Type Declaration

    • getById: (id: number) => ClassicBuilding | undefined

      Returns the building with the given id, or undefined when no such building is registered.

    devices: { getById: (id: number) => ClassicDeviceAny | undefined } = ...

    Type Declaration

    • getById: (id: number) => ClassicDeviceAny | undefined

      Returns the device with the given id, or undefined when no such device is registered.

    floors: { getById: (id: number) => ClassicFloor | undefined } = ...

    Type Declaration

    • getById: (id: number) => ClassicFloor | undefined

      Returns the floor with the given id, or undefined when no such floor is registered.

    • Get all areas within a specific building.

      Parameters

      • id: number & $brand<"BuildingID">

        The building ID to look up areas for.

      Returns ClassicArea[]

      The areas belonging to the specified building.

    • Returns the areas attached to the given floor (excluding building-level areas).

      Parameters

      • id: number & $brand<"FloorID">

        Floor identifier.

      Returns ClassicArea[]

      The areas under that floor.