Skip to content

Commit

Permalink
Add 3025CSGZ (#4018)
Browse files Browse the repository at this point in the history
* Add CH/Socket/2 Wiser Double Socket

* Update schneider_electric.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
dphroon and Koenkk authored Mar 19, 2022
1 parent 621b034 commit f62e9b2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions devices/schneider_electric.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,24 @@ module.exports = [
},
exposes: [e.battery(), e.illuminance(), e.illuminance_lux(), e.occupancy()],
},
{
zigbeeModel: ['CH/Socket/2'],
model: '3025CSGZ',
vendor: 'Schneider Electric',
description: 'Dual connected smart socket',
extend: extend.switch(),
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2')],
meta: {multiEndpoint: true},
endpoint: (device) => {
return {'l1': 1, 'l2': 2};
},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint1 = device.getEndpoint(1);
await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint1);
const endpoint2 = device.getEndpoint(2);
await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint2);
},
},
];

0 comments on commit f62e9b2

Please sign in to comment.