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

    Class DeviceFacade

    Behavioral wrapper around a registry Device for first-generation (V1) products, which only expose the heating mode. Subclasses layer the richer generations on top. Obtain instances through FacadeManager.get — facades are cached per entity.

    Hierarchy (View Summary)

    Index
    id: string

    Wire did of the wrapped device.

    product: Product

    Product generation of the wrapped device.

    • get isOn(): boolean

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

      Returns boolean

      true while any heating mode is active.

    • get name(): string

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

      Returns string

      The wire dev_alias value.

    • Notify the API's onSyncComplete observer, scoped to this device. Invoked by the @syncDevices decorator after each decorated mutation or read.

      Returns Promise<void>