diff --git a/devices.js b/devices.js index 6287ef62f5f343..e65927d5389e24 100755 --- a/devices.js +++ b/devices.js @@ -6967,6 +6967,25 @@ const devices = [ execute(device, actions, callback); }, }, + { + zigbeeModel: ['45856'], + model: '45856GE', + vendor: 'GE', + description: 'In-wall smart switch', + supports: 'on/off', + fromZigbee: [fz.ignore_onoff_change, fz.generic_state], + toZigbee: [tz.on_off, tz.ignore_transition], + configure: (ieeeAddr, shepherd, coordinator, callback) => { + const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0}; + const device = shepherd.find(ieeeAddr, 1); + const actions = [ + (cb) => device.bind('genOnOff', coordinator, cb), + (cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb), + ]; + + execute(device, actions, callback); + }, + }, { zigbeeModel: ['45857'], model: '45857GE',