side: Number (optional; 0: server and 1: client cluster side; default: 0)
The numbers can be written as decimal or hexadecimal (but not strings).
In a matchexpr this function can be used to select a DDF if the device Simple Descriptors have (or have not) a specific cluster. This is useful since some devices add new clusters via OTA firmware updates, for which new DDFs might be required.
Important: This must only be used in DDF matchexpr it's not meant for "write" or "parse" functions!
R.hasCluster(endpoint, clusterId [, side]) -> bool
The numbers can be written as decimal or hexadecimal (but not strings).
In a
matchexpr
this function can be used to select a DDF if the device Simple Descriptors have (or have not) a specific cluster. This is useful since some devices add new clusters via OTA firmware updates, for which new DDFs might be required.Important: This must only be used in DDF
matchexpr
it's not meant for "write" or "parse" functions!Example:
{ matchexpr: "R.hasCluster(0x0b, 0xFC03)" }