Skip to content

Commit 341d55e

Browse files
committed
Zigbee new event
1 parent 66c3591 commit 341d55e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/Berry.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,9 @@ class my_zb_handler
23492349
def attributes_refined(event_type, frame, attr_list, idx)
23502350
print(f"shortaddr=Ox{idx:04X} {event_type=} {attr_list=}")
23512351
end
2352+
def attributes_final(event_type, frame, attr_list, idx)
2353+
print(f"shortaddr=Ox{idx:04X} {event_type=} {attr_list=}")
2354+
end
23522355
23532356
end
23542357
@@ -2360,6 +2363,7 @@ zigbee.add_handler(my_handler)
23602363
# shortaddr=OxC1BC event_type=frame_received frame={'srcendpoint': 21, 'transactseq_set': 0, 'shortaddr': 49596, 'dstendpoint': 1, 'payload': bytes('5500003956CE8243'), 'shortaddr_hex': '0xC1BC', 'manuf': 0, 'payload_ptr': <ptr: 0x3ffccb5c>, 'need_response': 0, 'transactseq': 25, 'cmd': 1, 'direct': 0, 'cluster': 12, 'cluster_specific': 0, 'groupaddr': 0}
23612364
# shortaddr=OxC1BC event_type=attributes_raw attr_list={"000C/0055":261.612,"Endpoint":21,"LinkQuality":21}
23622365
# shortaddr=OxC1BC event_type=attributes_refined attr_list={"ActivePower":261.612,"(ActivePower)":"0B04/050B","Endpoint":21,"LinkQuality":21}
2366+
# shortaddr=OxC1BC event_type=attributes_final attr_list={"ActivePower":261.612,"(ActivePower)":"0B04/050B","Endpoint":21,"LinkQuality":21}
23632367
23642368
# to remove handler:
23652369
# zigbee.remove_handler(my_handler)

0 commit comments

Comments
 (0)