Special AttributeClient class to allow identifying attributes that are supported because reported by the Devices.

Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

attribute: Attribute<T, any>
clusterId: ClusterId
endpointId: EndpointNumber
name: string
schema: TlvSchema<any>

Methods

  • Get the value with version of the attribute. Fabric scoped reads are always done with the remote.

    Parameters

    • OptionalalwaysRequestFromRemote: boolean
    • isFabricFiltered: boolean = true

    Returns Promise<undefined | {
        value: T;
        version: number;
    }>

  • Set the value of the attribute. When dataVersion parameter is provided the value is only set when the cluster dataVersion of the server matches. If it does not match it is rejected with an Error.

    Parameters

    • value: T
    • OptionaldataVersion: number

    Returns Promise<void>