Optional
Readonly
attributeOptional
Readonly
autoUnless set to false all events and attributes are subscribed and value changes are reflected in the ClusterClient instances. With this reading attributes values is mostly looked up in the locally cached data. Additionally more features like reaction on shutdown event or endpoint structure changes (for bridges) are done internally automatically.
Optional
Readonly
eventOptional additional callback method which is called for each Event reported by the device. Use this if subscribing to all relevant events is too much effort.
Optional
Readonly
stateOptional callback method which is called when the state of the node changes. This can be used to detect when the node goes offline or comes back online.
Optional
Readonly
subscribeMaximum subscription interval when values are changed. This is also used as a keepalive mechanism to validate that the device is still available. matter.js tries to set meaningful values based on the device type, connection type and other details. So ideally do not set this parameter unless you know it better.
Optional
Readonly
subscribeMinimum subscription interval when values are changed. Default it is set to 1s. If the device is intermittently connected, the minimum interval is always set to 0s because required by Matter specs.
Optional additional callback method which is called for each Attribute change reported by the device. Use this if subscribing to all relevant attributes is too much effort.