Heatzy API for Node.js - v13.0.0
    Preparing search index...

    Function getTargetTemperature

    • Build the control attributes that set a target temperature, in the register layout the product generation expects: Glow clamps the value into the mode's accepted range — symmetric with the read side — and splits it across tempH/tempL (hundreds bit + remainder in tenths); every other generation takes a single temp register in tenths, unclamped.

      Parameters

      • product: Product

        Product generation of the target device.

      • mode: "cft" | "eco"

        Which setpoint to write (comfort or eco).

      • value: number

        Target temperature in °C.

      Returns PostAttributes

      The attributes to pass to setValues.