Skip to content

Commit 5a6c1f9

Browse files
committed
fix: Fix SLZB-06p7 configure failing Koenkk/zigbee2mqtt#23918
1 parent 6c4b506 commit 5a6c1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devices/custom_devices_diy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ const definitions: DefinitionWithExtend[] = [
276276
exposes: [],
277277
whiteLabel: [{vendor: 'SMLIGHT', model: 'SLZB-07', description: 'Router', fingerprint: [{modelID: 'SLZB-07'}]}],
278278
configure: async (device, coordinatorEndpoint) => {
279-
const endpoint = device.getEndpoint(1);
279+
const endpoint = device.endpoints[0];
280280
const payload = [{attribute: 'zclVersion', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0}];
281281
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic']);
282282
await endpoint.configureReporting('genBasic', payload);

0 commit comments

Comments
 (0)