From 5855048a73738b4d843f5ef5619b11fcb56340b7 Mon Sep 17 00:00:00 2001 From: RSB SOFT <133694534+RAULSALABIGAS@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:47:42 +0200 Subject: [PATCH] feat(add): SIN-4-1-22_LEX (#5991) * Update adeo.ts Add support for ADEO/LEXMAN controller * Update adeo.ts Add support for ADEO/LEXMAN controller update * Update adeo.ts * Update adeo.ts previous code correction * Update adeo.ts * Update philips.js * Update adeo.ts --- src/devices/adeo.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/devices/adeo.ts b/src/devices/adeo.ts index 9337347cf4cf6..ece9cd34c2c0d 100644 --- a/src/devices/adeo.ts +++ b/src/devices/adeo.ts @@ -325,6 +325,18 @@ const definitions: Definition[] = [ }, exposes: [e.cover_position()], }, + { + zigbeeModel: ['SIN-4-1-22_LEX'], + model: 'SIN-4-1-22_LEX', + vendor: 'ADEO', + description: 'ENKI LEXMAN Access Control', + extend: extend.switch(), + configure: async (device, coordinatorEndpoint, logger) => { + const ep = device.getEndpoint(1); + await reporting.bind(ep, coordinatorEndpoint, ['genOnOff']); + await reporting.onOff(ep); + }, + }, ]; module.exports = definitions;