Skip to content

Commit 7df6e2d

Browse files
committed
Add optional reporting interval and reportable change fields to Zigbee event mappings
1 parent 5fb0a63 commit 7df6e2d

4 files changed

Lines changed: 37 additions & 2 deletions

File tree

cddl/zigbee-event-map.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ zigbee-event-map = {
1212
attributeType: uint,
1313
? profileID: uint,
1414
? manufacturerCode: uint,
15+
? minReportingInterval: uint,
16+
? maxReportingInterval: uint,
17+
? reportableChange: number,
1518
}

draft-ietf-asdf-sdf-protocol-mapping.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,16 @@ Where:
559559
- `attributeType` is the Zigbee data type of the attribute.
560560
- `profileID` is the Zigbee application profile ID (optional). If not provided, it defaults to the Home Automation profile (0x0104), which is the default profile in Zigbee 3.0.
561561
- `manufacturerCode` is the Zigbee manufacturer code of the attribute (optional).
562+
- `minReportingInterval` is the minimum reporting interval in seconds
563+
(optional). It is the minimum time between issued attribute reports and
564+
applies only when `type` is `"attribute_reporting"`.
565+
- `maxReportingInterval` is the maximum reporting interval in seconds
566+
(optional). It is the maximum time between issued attribute reports and
567+
applies only when `type` is `"attribute_reporting"`.
568+
- `reportableChange` is the minimum change to the attribute value that triggers
569+
a report (optional). It applies only when `type` is `"attribute_reporting"`
570+
and to attributes with an 'analog' data type, and MUST have the same data type
571+
as the reported attribute.
562572

563573

564574
For example, a Zigbee event mapping for a temperature change report:
@@ -574,7 +584,10 @@ For example, a Zigbee event mapping for a temperature change report:
574584
"endpointID": 1,
575585
"clusterID": 1026,
576586
"attributeID": 0,
577-
"attributeType": 41
587+
"attributeType": 41,
588+
"minReportingInterval": 10,
589+
"maxReportingInterval": 300,
590+
"reportableChange": 50
578591
}
579592
}
580593
}

generated/combined.cddl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ zigbee-event-map = {
7070
attributeType: uint,
7171
? profileID: uint,
7272
? manufacturerCode: uint,
73+
? minReportingInterval: uint,
74+
? maxReportingInterval: uint,
75+
? reportableChange: number,
7376
}
7477

7578
$$SDF-ACTION-PROTOCOL-MAP //= (

openapi/ProtocolMap-Zigbee.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,21 @@ components:
4747
example: 260
4848

4949
ProtocolMap-Zigbee-Event:
50-
allOf:
50+
allOf:
5151
- $ref: '#/components/schemas/ProtocolMap-Zigbee-Propmap'
52+
- type: object
53+
properties:
54+
zigbee:
55+
type: object
56+
properties:
57+
minReportingInterval:
58+
type: integer
59+
format: int32
60+
example: 10
61+
maxReportingInterval:
62+
type: integer
63+
format: int32
64+
example: 300
65+
reportableChange:
66+
type: number
67+
example: 50

0 commit comments

Comments
 (0)