ReadonlyareasReturns the area with the given id, or undefined when no such area is registered.
ReadonlybuildingsReturns the building with the given id, or undefined when no such building is registered.
ReadonlydevicesReturns the device with the given id, or undefined when no such device is registered.
ReadonlyfloorsReturns the floor with the given id, or undefined when no such floor is registered.
Get all areas within a specific building.
The building ID to look up areas for.
The areas belonging to the specified building.
Returns the areas attached to the given floor (excluding building-level areas).
Floor identifier.
The areas under that floor.
Build a hierarchical zone structure from the registry, optionally filtered by device type.
Options object.
Optionaltype?: ClassicDeviceTypeOptional device type to filter the zone structure.
The hierarchical building zone structure.
Returns the devices attached directly to the given area.
Area identifier.
The devices in that area.
Returns every device under the given building (regardless of floor or area placement).
Building identifier.
The devices under that building.
Returns every device under the given floor (regardless of area placement).
Floor identifier.
The devices under that floor.
Returns every device whose Type matches the given device type.
Ata, Atw, or Erv discriminator.
The matching devices.
Returns the floors of the given building.
Building identifier.
The floors under that building.
Flattens the hierarchical zone tree returned by getBuildings into a single, name-sorted list.
Optional filter.
Optionaltype?: ClassicDeviceTypeRestrict to a single device type.
Every zone (buildings, floors, areas, devices), sorted by name.
Upserts the area registry and rebuilds the by-building / by-floor
indexes; entries absent from areas are pruned.
Fresh wire-format area entries.
Upserts the building registry; entries absent from buildings are pruned.
Fresh wire-format building entries.
Upserts the device registry and rebuilds the by-building / by-floor /
by-area indexes; entries absent from devices are pruned.
Fresh wire-format list-device entries.
Upserts the floor registry and rebuilds the by-building index;
entries absent from floors are pruned.
Fresh wire-format floor entries.
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.