Device registry with stable model references across syncs.
The currently authenticated user, or null.
Authenticate with MELCloud Home using the provided or stored credentials.
Optionaldata: LoginCredentialsCancel any pending automatic sync.
Fetch energy consumption data for a device.
Fetch WiFi signal strength (RSSI) telemetry for a device.
Fetch temperature trend summary for a device.
Fetch the current user's claims from the BFF.
Returns null if the request fails (401, network error, etc.)
and clears the stored user state.
The user or null.
Whether a user is currently authenticated (session cookie valid).
Fetch all buildings (owned + guest), sync the device registry, and schedule the next auto-sync.
All buildings or an empty array on failure.
Update the automatic sync interval and reschedule. Set to 0 or null to disable.
Update device values and refresh device data via list().
StaticcreateCreate and initialize a MELCloud Home API instance. Authenticates and fetches the current user if credentials are provided.
Optionalconfig: HomeAPIConfigOptional configuration.
The initialized API instance.
MELCloud Home API client. Authenticates via headless OIDC login through a double-federated flow: BFF → IdentityServer → AWS Cognito.
Cookies are managed manually (not via axios-cookiejar-support) because the cross-domain redirect chain requires Set-Cookie headers to be captured at each intermediate 302 response.
Uses a private constructor — create instances via MELCloudHomeAPI.create.