The AttributeConfiguration class is defined with a field attr in doc at Zigbee Driver Structures — SmartThings Edge Device Drivers documentation
however, the examples in the doc (see below) and the examples in github both use attribute.
Which is correct?
from doc
cluster_configurations = {
[capabilities.switch.ID] = {
{
cluster = zcl_clusters.OnOff.ID,
attribute = zcl_clusters.OnOff.attributes.OnOff.ID,
minimum_interval = 0,
maximum_interval = 300,
data_type = data_types.Boolean
}
},
[capabilities.switchLevel.ID] = {
{
cluster = zcl_clusters.Level.ID,
attribute = zcl_clusters.Level.attributes.CurrentLevel.ID,
minimum_interval = 1,
maximum_interval = 3600,
data_type = data_types.Uint8,
reportable_change = 1
}
}