Skip to content

Commit

Permalink
feat(add): LDSENK02S (#5803)
Browse files Browse the repository at this point in the history
* Add support for ADEO LDSENK02S

* Add trailing comma
  • Loading branch information
RodriBus authored May 26, 2023
1 parent 5900bf0 commit cad4c52
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/devices/adeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,19 @@ module.exports = [
toZigbee: [],
exposes: [e.occupancy(), e.battery_low(), e.tamper()],
},
{
zigbeeModel: ['LDSENK02S'],
model: 'LDSENK02S',
vendor: 'ADEO',
description: 'ENKI LEXMAN 16A EU smart plug',
extend: extend.switch({exposes: [e.power(), e.energy()], fromZigbee: [fz.electrical_measurement, fz.metering]}),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
await reporting.onOff(endpoint);
await reporting.activePower(endpoint);
await reporting.currentSummDelivered(endpoint);
await reporting.readMeteringMultiplierDivisor(endpoint);
},
},
];

0 comments on commit cad4c52

Please sign in to comment.