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

    Class DeviceV2Facade

    Facade for V2/V4 products: named-attribute control, derogations (boost, vacation), timer and lock switches.

    Hierarchy (View Summary)

    Index
    id: string

    Wire did of the wrapped device.

    product: Product

    Product generation of the wrapped device.

    • get derogationEndString(): string | null

      The running derogation's end, formatted for display in the configured locale — time-of-day for boost and presence, day + month + time for vacation. null when no derogation is running — or when it was already running at first sight: the wire carries no start timestamp, so the end is only derived when a change is observed (see Device.derogationEndDate).

      Returns string | null

      The formatted end label, or null.

    • get derogationTime(): number

      The derogation duration — minutes for boost, days for vacation.

      Returns number

      The wire derog_time value.

    • get isLocked(): boolean

      Whether the physical controls are locked.

      Returns boolean

      true when the child lock is on.

    • get isOn(): boolean

      Whether the device is heating (mode is not stop).

      Returns boolean

      true while any heating mode is active.

    • get isTimer(): boolean

      Whether the on-device program timer is running.

      Returns boolean

      true when the timer is on.

    • get name(): string

      The user-facing device name, tracking renames across syncs.

      Returns string

      The wire dev_alias value.