From fea5c35a1ba615df62f7c6400fa30a7449a796d2 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 16 Mar 2021 19:23:53 +0100 Subject: [PATCH] Support AU-A1ZBDSS. https://github.com/Koenkk/zigbee2mqtt/issues/6704 --- devices.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/devices.js b/devices.js index 38c4b822c5a35..9822c4668bb76 100755 --- a/devices.js +++ b/devices.js @@ -16044,6 +16044,28 @@ const devices = [ await reporting.bind(endpoint, coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']); }, }, + { + zigbeeModel: ['DoubleSocket50AU'], + model: 'AU-A1ZBDSS', + vendor: 'Aurora Lighting', + description: 'Double smart socket UK', + fromZigbee: [fz.identify, fz.on_off, fz.electrical_measurement], + exposes: [e.switch().withEndpoint('left'), e.switch().withEndpoint('right'), + e.power().withEndpoint('left'), e.power().withEndpoint('right')], + toZigbee: [tz.on_off], + meta: {configureKey: 1, multiEndpoint: true}, + endpoint: (device) => { + return {'left': 1, 'right': 2}; + }, + configure: async (device, coordinatorEndpoint, logger) => { + const endpoint1 = device.getEndpoint(1); + await reporting.bind(endpoint1, coordinatorEndpoint, ['genIdentify', 'genOnOff', 'haElectricalMeasurement']); + await reporting.onOff(endpoint1); + const endpoint2 = device.getEndpoint(2); + await reporting.bind(endpoint2, coordinatorEndpoint, ['genIdentify', 'genOnOff', 'haElectricalMeasurement']); + await reporting.onOff(endpoint2); + }, + }, { zigbeeModel: ['SmartPlug51AU'], model: 'AU-A1ZBPIA',