From cdc9d8dfc9082e39ef06ad33e0921c4913782db0 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Mon, 18 Jan 2021 21:28:12 +0100 Subject: [PATCH] Zigbee send ack to command (#10624) * Zigbee send ack to command * Fix cluster Co-authored-by: Stephan Hadinger --- tasmota/xdrv_23_zigbee_5_converters.ino | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tasmota/xdrv_23_zigbee_5_converters.ino b/tasmota/xdrv_23_zigbee_5_converters.ino index 674f6fdd0..4af809b5c 100644 --- a/tasmota/xdrv_23_zigbee_5_converters.ino +++ b/tasmota/xdrv_23_zigbee_5_converters.ino @@ -1673,6 +1673,27 @@ void ZCLFrame::parseClusterSpecificCommand(Z_attribute_list& attr_list) { } } } + // Send Default Response to acknowledge the attribute reporting + if (0 == _frame_control.b.disable_def_resp) { + // the device expects a default response + SBuffer buf(2); + buf.add8(_cmd_id); + buf.add8(0x00); // Status = OK + + ZigbeeZCLSend_Raw(ZigbeeZCLSendMessage({ + _srcaddr, + 0x0000, + _cluster_id, + _srcendpoint, + ZCL_DEFAULT_RESPONSE, + _manuf_code, + false /* not cluster specific */, + false /* noresponse */, + true /* direct no retry */, + _transact_seq, /* zcl transaction id */ + buf.getBuffer(), buf.len() + })); + } } // ======================================================================