Skip to content

Commit d7f9a3c

Browse files
committed
fix: Fix duplicate publish for some Tuya devics Koenkk/zigbee2mqtt#25605
1 parent ab83fc5 commit d7f9a3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/tuya.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,7 @@ const tuyaFz = {
18541854
cluster: 'manuSpecificTuya',
18551855
type: ['commandDataResponse', 'commandDataReport', 'commandActiveStatusReport', 'commandActiveStatusReportAlt'],
18561856
convert: (model, msg, publish, options, meta) => {
1857+
if (utils.hasAlreadyProcessedMessage(msg, model, msg.data.seq)) return;
18571858
const result: KeyValue = {};
18581859
if (!model.meta || !model.meta.tuyaDatapoints) throw new Error('No datapoints map defined');
18591860
const datapoints = model.meta.tuyaDatapoints;

0 commit comments

Comments
 (0)