Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 2-gang mode for LK Fuga wireless battery switch (550D6001) #2732

Merged
merged 2 commits into from
Jun 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions devices/schneider_electric.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,17 @@ module.exports = [
description: 'LK FUGA wiser wireless battery 4 button switch',
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop],
toZigbee: [],
exposes: [e.action(['on', 'off', 'brightness_*'])],
endpoint: (device) => {
return {'top': 21, 'bottom': 22};
},
meta: {multiEndpoint: true},
exposes: [e.action(['on_*', 'off_*', 'brightness_*'])],
configure: async (device, coordinatorEndpoint, logger) => {
// Currently all four front switches operate out of ep21 for some reason
const buttonEndpoint = device.getEndpoint(21);
await reporting.bind(buttonEndpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
// When in 2-gang operation mode, unit operates out of endpoints 21 and 22, otherwise just 21
const topButtonsEndpoint = device.getEndpoint(21);
await reporting.bind(topButtonsEndpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
const bottomButtonsEndpoint = device.getEndpoint(22);
await reporting.bind(bottomButtonsEndpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
},
},
{
Expand Down