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

    Interface HomeAPIConfig

    Configuration options for the MELCloud Home API.

    interface HomeAPIConfig {
        abortSignal?: AbortSignal;
        baseURL?: string;
        events?: LifecycleEvents;
        locale?: string;
        logger?: Logger;
        password?: string;
        settingManager?: SettingManager;
        shouldResumeSessionInBackground?: boolean;
        syncIntervalMinutes?: number | false;
        timezone?: string;
        transport?: TransportConfig;
        username?: string;
    }

    Hierarchy (View Summary)

    Index
    abortSignal?: AbortSignal

    Optional shutdown signal applied to every outgoing request.

    When the signal fires, all in-flight HTTP requests abort with a DOMException of name AbortError. Subsequent calls from the same client instance will also abort immediately. Use this to tie the SDK lifetime to a host process lifetime — e.g. pass the Homey app's shutdown signal so outstanding requests don't dangle across a reload.

    baseURL?: string

    Base URL of the MELCloud Home BFF server.

    Structured-events callbacks invoked around SDK lifecycle moments. Useful to plug the SDK into a host observability stack (pino / winston / OpenTelemetry / custom metrics).

    locale?: string

    BCP-47 locale tag for report chart labels (dates, times). Defaults to the runtime locale when unset.

    logger?: Logger

    Custom logger. Defaults to console.

    password?: string
    settingManager?: SettingManager

    External setting manager for persisting credentials and session data.

    shouldResumeSessionInBackground?: boolean

    Restore the persisted session in the background instead of awaiting it inside create(). Session probing and full logins can take tens of seconds on slow networks, which blows a host app's init budget (e.g. Homey's 30 s ready timeout). The lifecycle contract is unchanged — auto-sync arming, onAuthenticationLost, login backoff — it just runs off the critical path; isAuthenticated() may report false until the background restore lands.

    syncIntervalMinutes?: number | false

    Auto-sync timer in minutes. false disables the timer entirely (manual list() / fetch() only). Omit to use the subclass default (1 for Home, 5 for Classic).

    timezone?: string

    IANA timezone identifier (e.g. 'Europe/Paris') used to render chart labels and resolve day/hour windows. The Home wire speaks UTC wall-clock (live-probed 2026-07-18); this timezone only affects local presentation. Defaults to UTC when unset.

    transport?: TransportConfig

    HTTP transport: pre-built HttpClient or build options.

    username?: string