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

    Class HomeBuildingAtaFacade

    Facade for one /context building's ATA devices — the account-level group. MELCloud Home has no group endpoint, so the group contract is emulated over the members: reads aggregate the devices' states (fields where members diverge fold to null, the wire's mixed marker) and writes fan out to every member.

    Index
    • Builds a facade for one building's ATA group.

      Parameters

      • api: HomeAPIAdapter

        Home API client (carries the device registry).

      • building: { id: string; name: string }

        Identity of the /context building.

        • id: string

          Identifier the group is keyed on.

        • name: string

          Display name captured at build time.

      • getFacade: HomeAtaFacadeResolver

        Resolver returning the cached device facade for a member model.

      Returns HomeBuildingAtaFacade

    id: string
    • get name(): string

      Display name of the building, as of the latest sync that still holds one of its devices; the last observed name once emptied.

      Returns string

      The user-facing label of the account's building.

    • Apply a Classic group state to every member device. The delta is translated to the Home vocabulary once, then fanned out; members already matching it (a tolerated NoChangesError from their update) are fine by definition and do not fail the group write.

      Parameters

      Returns Promise<void>

      The single member failure, or an AggregateError bundling every member failure when more than one PUT rejects.