From ef59340c723f2cf8ea8381997a9de69b431c657e Mon Sep 17 00:00:00 2001 From: CodeForLove83 Date: Wed, 9 Oct 2024 14:49:54 +0200 Subject: [PATCH] fix: Fix Legrand device pairing (#8093) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 074a53e95cc0d..898af405ee71b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -463,7 +463,7 @@ export async function onEvent(type: OnEventType, data: OnEventData, device: Zh.D device.customReadResponse = (frame, endpoint) => { if (frame.isCluster('genBasic') && frame.payload.find((i: {attrId: number}) => i.attrId === 61440)) { const options = {manufacturerCode: Zcl.ManufacturerCode.LEGRAND_GROUP, disableDefaultResponse: true}; - const payload = {0xf00: {value: 23, type: 35}}; + const payload = {0xf000: {value: 23, type: 35}}; endpoint.readResponse('genBasic', frame.header.transactionSequenceNumber, payload, options).catch((e) => { logger.logger.warning(`Legrand security read response failed: ${e}`, NS); });