MELCloud & MELCloud Home API for Node.js - v60.5.0
    Preparing search index...

    Type Alias HomeEnergyQuery<TData>

    HomeEnergyQuery: TData extends HomeAtwDeviceData
        ? {
            from: string;
            interval: string;
            measure: "consumed"
            | "produced";
            to: string;
        }
        : { from: string; interval: string; to: string }

    Per-type energy-telemetry query: the ATW interval measures split consumed and produced (measure selects the direction, and only exists there), while ATA has a single cumulative measure and no direction to pick. from is inclusive, to exclusive (ISO timestamps); interval speaks the wire's .NET enum — Minute, Hour, Day, Week or Month.

    Type Parameters

    • TData extends HomeDeviceData

      Wire-format device payload variant selecting the query shape.