Special AttributeClient class to allow identifying attributes that are supported because reported by the Devices, but the contained attribute is unknown.

Hierarchy (view full)

Constructors

Properties

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

Methods

  • Add a listener to the attribute.

    Parameters

    • listener: ((newValue: any) => void)
        • (newValue): void
        • Parameters

          • newValue: any

          Returns void

    Returns void

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

    Parameters

    • OptionalalwaysRequestFromRemote: boolean
    • OptionalisFabricFiltered: boolean

    Returns Promise<any>

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

    Parameters

    • OptionalalwaysRequestFromRemote: boolean
    • OptionalisFabricFiltered: boolean

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

  • Remove a listener from the attribute.

    Parameters

    • listener: ((newValue: any) => void)
        • (newValue): void
        • Parameters

          • newValue: any

          Returns void

    Returns void

  • 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: any
    • OptionaldataVersion: number

    Returns Promise<void>

  • Subscribe to the attribute.

    Parameters

    • minIntervalFloorSeconds: number
    • maxIntervalCeilingSeconds: number
    • OptionalknownDataVersion: number
    • OptionalisFabricFiltered: boolean

    Returns Promise<void>