mysa-js-sdk
    Preparing search index...

    Interface ShadowStateUpdate

    The body of a POST /state/{deviceId}/update request to Mysa's current backend.

    Only the sections to change are sent, each with only the fields to change.

    interface ShadowStateUpdate {
        modes?: ShadowModes;
        source: number;
        targetCool?: Pick<ShadowTarget, "setpoint">;
        targetHeat?: Pick<ShadowTarget, "setpoint">;
    }
    Index
    modes?: ShadowModes

    The operating mode to apply.

    source: number

    Identifies where the change originates. Always 3, which is what the Mysa app sends and reports as "app".

    targetCool?: Pick<ShadowTarget, "setpoint">

    The cooling setpoint to apply.

    targetHeat?: Pick<ShadowTarget, "setpoint">

    The heating setpoint to apply.