Merge pull request #16152 from s-hadinger/zigbee_autoprobe_cmd

Zigbee add received commands as battery auto-probe triggers
This commit is contained in:
s-hadinger 2022-08-04 18:48:25 +02:00 committed by GitHub
commit dfc1f72ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1700,6 +1700,7 @@ void Z_IncomingMessage(class ZCLFrame &zcl_received) {
zcl_received.parseWriteAttributesResponse(attr_list); zcl_received.parseWriteAttributesResponse(attr_list);
} else if (zcl_received.isClusterSpecificCommand()) { } else if (zcl_received.isClusterSpecificCommand()) {
zcl_received.parseClusterSpecificCommand(attr_list); zcl_received.parseClusterSpecificCommand(attr_list);
Z_Query_Battery(srcaddr); // do battery auto-probing when receiving commands
} }
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_ZIGBEE D_JSON_ZIGBEEZCL_RAW_RECEIVED ": {\"0x%04X\":{%s}}"), srcaddr, attr_list.toString().c_str()); AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_ZIGBEE D_JSON_ZIGBEEZCL_RAW_RECEIVED ": {\"0x%04X\":{%s}}"), srcaddr, attr_list.toString().c_str());