Skip to content

Commit

Permalink
fix: Fix Legrand device pairing (#8093)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeForLove83 authored Oct 9, 2024
1 parent 51d99cc commit ef59340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit ef59340

Please sign in to comment.