Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/devices/legrand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,4 +717,31 @@
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['NLIS - Triple light switch'],
model: 'NLIS - Triple light switch',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the model number written on the device page here. (also update the picture pr accordingly)

vendor: 'Legrand',
description: 'Triple light switch',
fromZigbee: [fz.on_off],
toZigbee: [tz.on_off],
exposes: [
e.switch().withEndpoint('right'),
e.switch().withEndpoint('center'),
e.switch().withEndpoint('left'),
],
endpoint: (device) => {
return {
'right': 1,
'center': 2,
'left': 3,
};
},
meta: {multiEndpoint: true},
configure: async (device, coordinatorEndpoint, logger) => {
for (const ep of [1, 2, 3]) {
const endpoint = device.getEndpoint(ep);
await endpoint.bind('genOnOff', coordinatorEndpoint);
}
},
};

Check failure on line 746 in src/devices/legrand.ts

View workflow job for this annotation

GitHub Actions / ci

',' expected.
];

Check failure on line 747 in src/devices/legrand.ts

View workflow job for this annotation

GitHub Actions / ci

Declaration or statement expected.
Loading