Skip to content

Commit

Permalink
feat(add): TERNCY-WS01 @gcmilo704 Koenkk/zigbee2mqtt#18086
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jun 22, 2023
1 parent 30e6fcd commit 5016e9f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/devices/terncy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ const e = exposes.presets;
const ea = exposes.access;

const definitions: Definition[] = [
{
zigbeeModel: ['TERNCY-WS01-S4'],
model: 'TERNCY-WS01',
vendor: 'TERNCY',
description: 'Smart light switch - 4 gang without neutral wire',
extend: extend.switch(),
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'), e.switch().withEndpoint('l3'),
e.switch().withEndpoint('l4')],
endpoint: (device) => {
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
},
meta: {multiEndpoint: true},
configure: async (device, coordinatorEndpoint, logger) => {
for (const ID of [1, 2, 3, 4]) {
const endpoint = device.getEndpoint(ID);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
}
},
},
{
zigbeeModel: ['DL001'],
model: 'DL001',
Expand Down

0 comments on commit 5016e9f

Please sign in to comment.