Skip to content

Commit

Permalink
Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch (Koenkk#319)
Browse files Browse the repository at this point in the history
* Support for 'FB56+ZSW1IKJ1.7' 3-gang Nue Smart Switch

Confirmed working, but please check my parentheses etc @Koenkk .... I get double MQTT feedback.

It would also be great if you could support 'top' and 'bottom' in https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/extension/devicePublish.js#L8 - is this a possibility? This would make more sense for countries like Australia where switches are mounted vertically, and give the option for the handler to match the local orientation of the device.

* Changed FB56+ZSW1IKJ1.7 to include new button descriptors (top/bottom)
  • Loading branch information
highground88 authored and qosmio committed Dec 25, 2019
1 parent d1e888e commit f796336
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -7195,6 +7195,28 @@ const devices = [
},

// Nue, 3A
{
zigbeeModel: ['FB56+ZSW1IKJ1.7'],
model: 'HGZB-043',
vendor: 'Nue / 3A',
description: 'Smart light switch - 3 gang',
supports: 'on/off',
fromZigbee: [fz.generic_state_multi_ep, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
ep: (device) => {
return {'top': 16, 'center': 17, 'bottom': 18};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const ep16 = shepherd.find(ieeeAddr, 16);
execute(ep16, [(cb) => ep16.bind('genOnOff', coordinator, cb)], () => {
const ep17 = shepherd.find(ieeeAddr, 17);
execute(ep17, [(cb) => ep17.bind('genOnOff', coordinator, cb)], () => {
const ep18 = shepherd.find(ieeeAddr, 18);
execute(ep18, [(cb) => ep18.bind('genOnOff', coordinator, cb)], callback);
});
});
},
},
{
zigbeeModel: ['FB56+ZSC05HG1.0'],
model: 'HGZB-04D',
Expand Down

0 comments on commit f796336

Please sign in to comment.