From d1c71ca91b5c440715662141dcf472a1a61b3b0e Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 18 Nov 2022 00:04:54 +0100 Subject: [PATCH] Fix Zigbee auto-responder frame direction --- tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_8_parsers.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_8_parsers.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_8_parsers.ino index db21e801f..3ec2ae123 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_8_parsers.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_8_parsers.ino @@ -2307,6 +2307,9 @@ void ZCLFrame::autoResponder(const uint16_t *attr_list_ids, size_t attr_len) { zcl.clusterSpecific = false; /* not cluster specific */ zcl.needResponse = false; /* noresponse */ zcl.direct = true; /* direct response */ + if (localShortAddr == 0x0000) { + zcl.direction = 1; // if we are coordinator, then response is from client to server + } zcl.setTransac(transactseq); zcl.payload.addBuffer(buf); zigbeeZCLSendCmd(zcl);