Skip to content

Commit

Permalink
feat(add): 1822647A Koenkk/zigbee2mqtt#18884
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Sep 6, 2023
1 parent 07fa6a3 commit 69c8ed1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/devices/somfy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ const definitions: Definition[] = [
},
exposes: [e.cover_position(), e.battery()],
},
{
zigbeeModel: ['1822647'],
model: '1822647A',
vendor: 'SOMFY',
description: 'Zigbee smart plug',
fromZigbee: [fz.on_off, fz.metering],
toZigbee: [tz.on_off],
exposes: [e.switch(), e.power(), e.energy()],
configure: async (device, coordinatorEndpoint, logger) => {
const ep = device.getEndpoint(12);
await reporting.bind(ep, coordinatorEndpoint, ['genBasic', 'genIdentify', 'genOnOff', 'seMetering']);
await reporting.onOff(ep, {min: 1, max: 3600, change: 0});
await reporting.readMeteringMultiplierDivisor(ep);
await reporting.instantaneousDemand(ep);
await reporting.currentSummDelivered(ep);
await reporting.currentSummReceived(ep);
},
},
];

module.exports = definitions;

0 comments on commit 69c8ed1

Please sign in to comment.