ReadonlyauthenticateSign in with explicit credentials; throws on rejection.
ReadonlyclearCancel any pending automatic sync.
ReadonlyensureSync check first; when it reads false, one best-effort
resumeSession probe, then a re-check — the lazy self-heal
consumers otherwise hand-roll (a valid persisted Home token reads
unauthenticated until a context fetch has run).
ReadonlyfetchFetch all buildings and sync the device registry — the heartbeat, mirroring Classic fetch().
ReadonlygetFetch the internal-temperatures report (flow/return/tank/zone) for an ATW unit.
ReadonlygetFetch energy telemetry for a unit; the registry's connection type selects the measure family.
ReadonlygetFetch the error log for a unit; the registry's connection type selects the unit path.
ReadonlygetFetch WiFi signal strength (RSSI) telemetry for a device.
ReadonlygetFetch the temperature report for a unit; the registry's connection type selects the endpoint.
ReadonlygetFetch the current user's claims from the BFF. Returns null on failure.
ReadonlyisWhether a session is currently usable, from local state alone.
ReadonlyisWhether the client is currently inside a server rate-limit backoff.
ReadonlylocaleBCP-47 locale tag the instance was configured with, or undefined.
ReadonlylogExplicit sign-out: clears the persisted session material.
ReadonlyregistryHome device registry with stable model references across syncs.
ReadonlyresumeBest-effort session restore from persisted credentials. Never
throws — returns false when no credentials are persisted or
sign-in fails (logged via the SDK logger).
ReadonlysetUpdate the automatic sync interval and reschedule. Pass false to disable.
ReadonlytimezoneIANA timezone the instance was configured with, or undefined.
ReadonlyupdateBatch frost-protection write (device ids grouped in units), then refresh.
ReadonlyupdateBatch holiday-mode write (device ids grouped in units), then refresh.
ReadonlyupdateBatch overheat-protection write (ATA-only feature), then refresh.
ReadonlyupdatePush a setpoint update (wire path from the registry's connection type), then refresh.
ReadonlyuserThe currently authenticated user, or null.
Injectable contract for the MELCloud Home API client.
Mirrors the public surface of the HomeAPI class with property-with-arrow syntax so facades, mocks, and tests can reference methods safely (
expect(api.updateValues),mock<HomeAPIAdapter>({...})) without triggeringunbound-methodlint — the class has real methods that carrythis, whereas this interface declares them as plain functions with no implicit binding.Per-unit endpoints share one verb per concept (
updateValues,getEnergy,getErrorLog,getTemperatures); the registry model's connection type routes the wire path, so callers never pick an ATA/ATW variant —getAtwInternalTemperaturesis the one deliberate exception (no ATA counterpart exists).