Closed proton999 closed 5 years ago
Can you post the complete devices.js?
Ofcourse, here it is.
'use strict';
const debug = require('debug')('zigbee-shepherd-converters:devices'); const fz = require('./converters/fromZigbee'); const tz = require('./converters/toZigbee');
const repInterval = { MAX: 62000, HOUR: 3600, MINUTE: 60, };
const coordinatorGroup = 99;
const defaultIgnoreConverters = [ fz.ignore_genGroups_devChange, fz.ignore_genIdentify_change, fz.ignore_genScenes_change, fz.ignore_diagnostic_change, fz.ignore_lightLink_change, fz.ignore_basic_change, ];
const generic = { light_onoff_brightness: { supports: 'on/off, brightness', fromZigbee: [ fz.ignore_light_brightness_change, fz.state_change, fz.state, fz.brightness_report, ].concat(defaultIgnoreConverters), toZigbee: [tz.light_onoff_brightness, tz.ignore_transition, tz.light_alert], }, light_onoff_brightness_colortemp: { supports: 'on/off, brightness, color temperature', fromZigbee: [ fz.ignore_light_brightness_change, fz.color_colortemp, fz.state_change, fz.state, fz.brightness_report, fz.color_colortemp_report, ].concat(defaultIgnoreConverters), toZigbee: [tz.light_onoff_brightness, tz.light_colortemp, tz.ignore_transition, tz.light_alert], }, light_onoff_brightness_colorxy: { supports: 'on/off, brightness, color xy', fromZigbee: [ fz.ignore_light_brightness_change, fz.color_colortemp, fz.state_change, fz.state, fz.brightness_report, fz.color_colortemp_report, ].concat(defaultIgnoreConverters), toZigbee: [tz.light_onoff_brightness, tz.light_color, tz.ignore_transition, tz.light_alert], }, light_onoff_brightness_colortemp_colorxy: { supports: 'on/off, brightness, color temperature, color xy', fromZigbee: [ fz.ignore_light_brightness_change, fz.color_colortemp, fz.state_change, fz.state, fz.brightness_report, fz.color_colortemp_report, ].concat(defaultIgnoreConverters), toZigbee: [ tz.light_onoff_brightness, tz.light_color_colortemp, tz.ignore_transition, tz.light_alert, ], }, };
const gledopto = { light_onoff_brightness: { supports: generic.light_onoff_brightness.supports, fromZigbee: generic.light_onoff_brightness.fromZigbee, toZigbee: [tz.gledopto_light_onoff_brightness, tz.ignore_transition, tz.light_alert], }, light_onoff_brightness_colortemp: { supports: generic.light_onoff_brightness_colortemp.supports, fromZigbee: generic.light_onoff_brightness_colortemp.fromZigbee, toZigbee: [ tz.gledopto_light_onoff_brightness, tz.gledopto_light_colortemp, tz.ignore_transition, tz.light_alert, ], }, light_onoff_brightness_colortemp_colorxy: { supports: generic.light_onoff_brightness_colortemp_colorxy.supports, fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee, toZigbee: [ tz.gledopto_light_onoff_brightness, tz.gledopto_light_color_colortemp, tz.ignore_transition, tz.light_alert, ], }, };
const tzHuePowerOnBehavior = [tz.hue_power_on_behavior, tz.hue_power_on_brightness, tz.hue_power_on_color_temperature]; const hue = { light_onoff_brightness: { supports: generic.light_onoff_brightness.supports + ', power-on behavior', fromZigbee: generic.light_onoff_brightness.fromZigbee, toZigbee: generic.light_onoff_brightness.toZigbee.concat(tzHuePowerOnBehavior), }, light_onoff_brightness_colortemp: { supports: generic.light_onoff_brightness_colortemp.supports + ', power-on behavior', fromZigbee: generic.light_onoff_brightness_colortemp.fromZigbee, toZigbee: generic.light_onoff_brightness_colortemp.toZigbee.concat(tzHuePowerOnBehavior), }, light_onoff_brightness_colorxy: { supports: generic.light_onoff_brightness_colorxy.supports + ', power-on behavior', fromZigbee: generic.light_onoff_brightness_colorxy.fromZigbee, toZigbee: generic.light_onoff_brightness_colorxy.toZigbee.concat(tzHuePowerOnBehavior), }, light_onoff_brightness_colortemp_colorxy: { supports: generic.light_onoff_brightness_colortemp_colorxy.supports + ', power-on behavior', fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee, toZigbee: generic.light_onoff_brightness_colortemp_colorxy.toZigbee.concat(tzHuePowerOnBehavior), }, };
const foundationCfg = {manufSpec: 0, disDefaultRsp: 0};
const execute = (device, actions, callback, delay) => { if (!device) { callback(false, 'No device'); return; } delay || (delay = 300); const len = actions.length; let nextActionIndex = 0;
const next = () => {
if (nextActionIndex === len) {
callback(true, '');
return;
}
const nextAction = actions[nextActionIndex++];
setTimeout(nextAction,
delay,
(error) => {
debug(`Configured '${nextAction.toString()}' with result '${error ? error : 'OK'}'`);
if (error) {
callback(false, error);
return;
}
next();
}
);
};
next();
};
const devices = [ // Xiaomi { zigbeeModel: ['lumi.light.aqcn02'], model: 'ZNLDP12LM', vendor: 'Xiaomi', description: 'Aqara smart LED bulb', extend: generic.light_onoff_brightness_colortemp, fromZigbee: [ fz.brightness, fz.color_colortemp, fz.state_report, fz.xiaomi_bulb_interval, fz.ignore_light_brightness_report, fz.ignore_light_color_colortemp_report, fz.ignore_onoff_change, fz.ignore_basic_change, fz.ignore_occupancy_report, fz.ignore_temperature_change, fz.ignore_humidity_change, fz.ignore_pressure_change, fz.ignore_humidity_report, fz.ignore_pressure_report, fz.ignore_temperature_report, ], }, { zigbeeModel: ['lumi.sensor_switch'], model: 'WXKG01LM', vendor: 'Xiaomi', description: 'MiJia wireless switch', supports: 'single, double, triple, quadruple, many, long, long_release click', fromZigbee: [fz.xiaomi_battery_3v, fz.WXKG01LM_click, fz.ignore_onoff_change, fz.ignore_basic_change], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_switch.aq2', 'lumi.remote.b1acn01\u0000\u0000\u0000\u0000\u0000\u0000'], model: 'WXKG11LM', vendor: 'Xiaomi', description: 'Aqara wireless switch', supports: 'single, double click (and triple, quadruple, hold, release depending on model)', fromZigbee: [ fz.xiaomi_battery_3v, fz.WXKG11LM_click, fz.ignore_onoff_change, fz.ignore_basic_change, fz.xiaomi_action_click_multistate, fz.ignore_multistate_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_switch.aq3', 'lumi.sensor_swit'], model: 'WXKG12LM', vendor: 'Xiaomi', description: 'Aqara wireless switch (with gyroscope)', supports: 'single, double, shake, hold, release', fromZigbee: [ fz.xiaomi_battery_3v, fz.WXKG12LM_action_click_multistate, fz.ignore_onoff_change, fz.ignore_basic_change, fz.ignore_multistate_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_86sw1\u0000lu', 'lumi.remote.b186acn01\u0000\u0000\u0000'], model: 'WXKG03LM', vendor: 'Xiaomi', description: 'Aqara single key wireless wall switch', supports: 'single (and double, hold, release and long click depending on model)', fromZigbee: [ fz.xiaomi_battery_3v, fz.WXKG03LM_click, fz.ignore_basic_change, fz.xiaomi_action_click_multistate, fz.ignore_multistate_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_86sw2\u0000Un', 'lumi.sensor_86sw2.es1', 'lumi.remote.b286acn01\u0000\u0000\u0000'], model: 'WXKG02LM', vendor: 'Xiaomi', description: 'Aqara double key wireless wall switch', supports: 'left, right, both click (and double, long click for left, right and both depending on model)', fromZigbee: [ fz.xiaomi_battery_3v, fz.WXKG02LM_click, fz.ignore_basic_change, fz.WXKG02LM_click_multistate, fz.ignore_multistate_change, ], toZigbee: [], ep: (device) => { return {'left': 1, 'right': 2, 'both': 3}; }, }, { zigbeeModel: ['lumi.ctrl_neutral1'], model: 'QBKG04LM', vendor: 'Xiaomi', description: 'Aqara single key wired wall switch', supports: 'on/off', fromZigbee: [ fz.QBKG04LM_QBKG11LM_state, fz.ignore_onoff_change, fz.QBKG04LM_QBKG11LM_operation_mode, fz.ignore_basic_report, ], toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode], ep: (device) => { return {'system': 1, 'default': 2}; }, }, { zigbeeModel: ['lumi.ctrl_ln1.aq1', 'lumi.ctrl_ln1'], model: 'QBKG11LM', vendor: 'Xiaomi', description: 'Aqara single key wired wall switch', supports: 'on/off, power measurement', fromZigbee: [ fz.QBKG04LM_QBKG11LM_state, fz.QBKG11LM_power, fz.QBKG04LM_QBKG11LM_operation_mode, fz.ignore_onoff_change, fz.ignore_basic_change, fz.QBKG11LM_click, fz.ignore_multistate_report, fz.ignore_multistate_change, fz.ignore_analog_change, fz.xiaomi_power, ], toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode], }, { zigbeeModel: ['lumi.ctrl_neutral2'], model: 'QBKG03LM', vendor: 'Xiaomi', description: 'Aqara double key wired wall switch', supports: 'release/hold, on/off', fromZigbee: [ fz.QBKG03LM_QBKG12LM_LLKZMK11LM_state, fz.QBKG03LM_buttons, fz.QBKG03LM_QBKG12LM_operation_mode, fz.ignore_basic_report, ], toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode], ep: (device) => { return {'system': 1, 'left': 2, 'right': 3}; }, }, { zigbeeModel: ['lumi.ctrl_ln2.aq1'], model: 'QBKG12LM', vendor: 'Xiaomi', description: 'Aqara double key wired wall switch', supports: 'on/off, power measurement', fromZigbee: [ fz.QBKG03LM_QBKG12LM_LLKZMK11LM_state, fz.QBKG12LM_LLKZMK11LM_power, fz.QBKG03LM_QBKG12LM_operation_mode, fz.ignore_analog_change, fz.ignore_basic_change, fz.QBKG12LM_click, fz.ignore_multistate_report, fz.ignore_multistate_change, fz.ignore_onoff_change, fz.xiaomi_power, ], toZigbee: [tz.on_off, tz.xiaomi_switch_operation_mode], ep: (device) => { return {'left': 1, 'right': 2}; }, }, { zigbeeModel: ['lumi.sens'], model: 'WSDCGQ01LM', vendor: 'Xiaomi', description: 'MiJia temperature & humidity sensor ', supports: 'temperature and humidity', fromZigbee: [ fz.xiaomi_battery_3v, fz.WSDCGQ01LM_WSDCGQ11LM_interval, fz.xiaomi_temperature, fz.xiaomi_humidity, fz.ignore_basic_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.weather'], model: 'WSDCGQ11LM', vendor: 'Xiaomi', description: 'Aqara temperature, humidity and pressure sensor', supports: 'temperature, humidity and pressure', fromZigbee: [ fz.xiaomi_battery_3v, fz.xiaomi_temperature, fz.xiaomi_humidity, fz.generic_pressure, fz.ignore_basic_change, fz.ignore_temperature_change, fz.ignore_humidity_change, fz.ignore_pressure_change, fz.WSDCGQ01LM_WSDCGQ11LM_interval, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_motion'], model: 'RTCGQ01LM', vendor: 'Xiaomi', description: 'MiJia human body movement sensor', supports: 'occupancy', fromZigbee: [fz.xiaomi_battery_3v, fz.generic_occupancy_no_off_msg, fz.ignore_basic_change], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_motion.aq2'], model: 'RTCGQ11LM', vendor: 'Xiaomi', description: 'Aqara human body movement and illuminance sensor', supports: 'occupancy and illuminance', fromZigbee: [ fz.xiaomi_battery_3v, fz.generic_occupancy_no_off_msg, fz.generic_illuminance, fz.ignore_basic_change, fz.ignore_illuminance_change, fz.ignore_occupancy_change, fz.RTCGQ11LM_interval, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_magnet'], model: 'MCCGQ01LM', vendor: 'Xiaomi', description: 'MiJia door & window contact sensor', supports: 'contact', fromZigbee: [ fz.xiaomi_battery_3v, fz.xiaomi_contact, fz.ignore_onoff_change, fz.ignore_basic_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_magnet.aq2'], model: 'MCCGQ11LM', vendor: 'Xiaomi', description: 'Aqara door & window contact sensor', supports: 'contact', fromZigbee: [ fz.xiaomi_battery_3v, fz.xiaomi_contact, fz.xiaomi_contact_interval, fz.ignore_onoff_change, fz.ignore_basic_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_wleak.aq1'], model: 'SJCGQ11LM', vendor: 'Xiaomi', description: 'Aqara water leak sensor', supports: 'water leak true/false', fromZigbee: [fz.xiaomi_battery_3v, fz.SJCGQ11LM_water_leak_iaszone, fz.ignore_basic_change], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_cube', 'lumi.sensor_cube.aqgl01'], model: 'MFKZQ01LM', vendor: 'Xiaomi', description: 'Mi/Aqara smart home cube', supports: 'shake, wakeup, fall, tap, slide, flip180, flip90, rotate_left and rotate_right', fromZigbee: [ fz.xiaomi_battery_3v, fz.MFKZQ01LM_action_multistate, fz.MFKZQ01LM_action_analog, fz.ignore_analog_change, fz.ignore_multistate_change, fz.ignore_basic_change, ], toZigbee: [], }, { zigbeeModel: ['lumi.plug'], model: 'ZNCZ02LM', description: 'Mi power plug ZigBee', supports: 'on/off, power measurement', vendor: 'Xiaomi', fromZigbee: [ fz.state, fz.xiaomi_power, fz.xiaomi_plug_state, fz.ignore_onoff_change, fz.ignore_basic_change, fz.ignore_analog_change, fz.ignore_occupancy_report, fz.ignore_illuminance_report, fz.ignore_temperature_change, fz.ignore_humidity_change, fz.ignore_pressure_change, ], toZigbee: [tz.on_off], }, { zigbeeModel: ['lumi.ctrl_86plug', 'lumi.ctrl_86plug.aq1'], model: 'QBCZ11LM', description: 'Aqara socket Zigbee', supports: 'on/off, power measurement', vendor: 'Xiaomi', fromZigbee: [ fz.state, fz.xiaomi_power, fz.xiaomi_plug_state, fz.ignore_onoff_change, fz.ignore_basic_change, fz.ignore_analog_change, ], toZigbee: [tz.on_off], }, { zigbeeModel: ['lumi.sensor_smoke'], model: 'JTYJ-GD-01LM/BW', description: 'MiJia Honeywell smoke detector', supports: 'smoke', vendor: 'Xiaomi', fromZigbee: [fz.xiaomi_battery_3v, fz.JTYJGD01LMBW_smoke, fz.ignore_basic_change], toZigbee: [], }, { zigbeeModel: ['lumi.sensor_natgas'], model: 'JTQJ-BF-01LM/BW', vendor: 'Xiaomi', description: 'MiJia gas leak detector ', supports: 'gas', fromZigbee: [ fz.JTQJBF01LMBW_gas, fz.JTQJBF01LMBW_sensitivity, fz.JTQJBF01LMBW_gas_density, fz.ignore_basic_change, ], toZigbee: [tz.JTQJBF01LMBW_sensitivity, tz.JTQJBF01LMBW_selfest], }, { zigbeeModel: ['lumi.lock.v1'], model: 'A6121', vendor: 'Xiaomi', description: 'Vima Smart Lock', supports: 'inserted, forgotten, key error', fromZigbee: [fz.xiaomi_lock_report, fz.ignore_basic_change], toZigbee: [], }, { zigbeeModel: ['lumi.vibration.aq1'], model: 'DJT11LM', vendor: 'Xiaomi', description: 'Aqara vibration sensor', supports: 'drop, tilt and touch', fromZigbee: [ fz.xiaomi_battery_3v, fz.DJT11LM_vibration, fz.ignore_basic_change, fz.ignore_doorlock_change, ], toZigbee: [tz.DJT11LM_vibration_sensitivity], }, { zigbeeModel: ['lumi.curtain'], model: 'ZNCLDJ11LM', description: 'Aqara curtain motor', supports: 'open, close, stop, position', vendor: 'Xiaomi', fromZigbee: [ fz.ZNCLDJ11LM_curtain_genAnalogOutput_change, fz.ZNCLDJ11LM_curtain_genAnalogOutput_report, fz.ignore_closuresWindowCovering_change, fz.closuresWindowCovering_report, fz.ignore_basic_change, fz.ignore_basic_report, ], toZigbee: [tz.ZNCLDJ11LM_control], }, { zigbeeModel: ['lumi.relay.c2acn01'], model: 'LLKZMK11LM', vendor: 'Xiaomi', description: 'Aqara wireless relay controller', supports: 'on/off, power measurement', fromZigbee: [ fz.QBKG03LM_QBKG12LM_LLKZMK11LM_state, fz.QBKG12LM_LLKZMK11LM_power, fz.xiaomi_power, fz.ignore_analog_change, fz.ignore_basic_change, fz.ignore_multistate_report, fz.ignore_multistate_change, fz.ignore_onoff_change, ], toZigbee: [tz.on_off], ep: (device) => { return {'l1': 1, 'l2': 2}; }, },
// IKEA
{
zigbeeModel: [
'TRADFRI bulb E27 WS opal 980lm', 'TRADFRI bulb E26 WS opal 980lm',
'TRADFRI bulb E27 WS\uFFFDopal 980lm',
],
model: 'LED1545G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E26/E27 980 lumen, dimmable, white spectrum, opal white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI bulb E27 WS clear 950lm', 'TRADFRI bulb E26 WS clear 950lm'],
model: 'LED1546G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E26/E27 950 lumen, dimmable, white spectrum, clear',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI bulb E27 opal 1000lm', 'TRADFRI bulb E27 W opal 1000lm'],
model: 'LED1623G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27 1000 lumen, dimmable, opal white',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['TRADFRI bulb GU10 WS 400lm'],
model: 'LED1537R6',
vendor: 'IKEA',
description: 'TRADFRI LED bulb GU10 400 lumen, dimmable, white spectrum',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI bulb GU10 W 400lm'],
model: 'LED1650R5',
vendor: 'IKEA',
description: 'TRADFRI LED bulb GU10 400 lumen, dimmable',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['TRADFRI bulb E14 WS opal 400lm', 'TRADFRI bulb E12 WS opal 400lm'],
model: 'LED1536G5',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E12/E14 400 lumen, dimmable, white spectrum, opal white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI bulb E26 opal 1000lm', 'TRADFRI bulb E26 W opal 1000lm'],
model: 'LED1622G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E26 1000 lumen, dimmable, opal white',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['TRADFRI bulb E27 CWS opal 600lm', 'TRADFRI bulb E26 CWS opal 600lm'],
model: 'LED1624G9',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27/E26 600 lumen, dimmable, color, opal white',
extend: generic.light_onoff_brightness_colorxy,
},
{
zigbeeModel: [
'TRADFRI bulb E14 W op/ch 400lm', 'TRADFRI bulb E12 W op/ch 400lm',
'TRADFRI bulb E17 W op/ch 400lm',
],
model: 'LED1649C5',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E12/E14/E17 400 lumen, dimmable warm white, chandelier opal',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['TRADFRI bulb E27 WS opal 1000lm'],
model: 'LED1732G11',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27 1000 lumen, dimmable, white spectrum, opal white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI wireless dimmer'],
model: 'ICTC-G-1',
vendor: 'IKEA',
description: 'TRADFRI wireless dimmer',
supports: 'brightness [0-255] (quick rotate for instant 0/255), action',
fromZigbee: [
fz.cmd_move, fz.cmd_move_with_onoff, fz.cmd_stop, fz.cmd_stop_with_onoff,
fz.cmd_move_to_level_with_onoff, fz.generic_battery, fz.ignore_power_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {
direction: 0, attrId: 33, dataType: 32, minRepIntval: 0, maxRepIntval: repInterval.MAX, repChange: 0,
};
const actions = [
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.foundation('genPowerCfg', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['TRADFRI transformer 10W', 'TRADFRI Driver 10W'],
model: 'ICPSHC24-10EU-IL-1',
vendor: 'IKEA',
description: 'TRADFRI driver for wireless control (10 watt)',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['TRADFRI transformer 30W', 'TRADFRI Driver 30W'],
model: 'ICPSHC24-30EU-IL-1',
vendor: 'IKEA',
description: 'TRADFRI driver for wireless control (30 watt)',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['FLOALT panel WS 30x30'],
model: 'L1527',
vendor: 'IKEA',
description: 'FLOALT LED light panel, dimmable, white spectrum (30x30 cm)',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['FLOALT panel WS 60x60'],
model: 'L1529',
vendor: 'IKEA',
description: 'FLOALT LED light panel, dimmable, white spectrum (60x60 cm)',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['FLOALT panel WS 30x90'],
model: 'L1528',
vendor: 'IKEA',
description: 'FLOALT LED light panel, dimmable, white spectrum (30x90 cm)',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['SURTE door WS 38x64'],
model: 'L1531',
vendor: 'IKEA',
description: 'SURTE door light panel, dimmable, white spectrum (38x64 cm)',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['TRADFRI control outlet'],
model: 'E1603',
description: 'TRADFRI control outlet',
supports: 'on/off',
vendor: 'IKEA',
fromZigbee: [fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['TRADFRI remote control'],
model: 'E1524',
description: 'TRADFRI remote control',
supports:
'toggle, arrow left/right click/hold/release, brightness up/down click/hold/release',
vendor: 'IKEA',
fromZigbee: [
fz.cmdToggle, fz.E1524_arrow_click, fz.E1524_arrow_hold, fz.E1524_arrow_release,
fz.E1524_brightness_up_click, fz.E1524_brightness_down_click, fz.E1524_brightness_up_hold,
fz.E1524_brightness_up_release, fz.E1524_brightness_down_hold, fz.E1524_brightness_down_release,
fz.generic_battery, fz.ignore_power_change, fz.ignore_basic_change, fz.E1524_hold,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {
direction: 0, attrId: 33, dataType: 32, minRepIntval: 0, maxRepIntval: repInterval.MAX, repChange: 0,
};
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.foundation('genPowerCfg', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['TRADFRI on/off switch'],
model: 'E1743',
vendor: 'IKEA',
description: 'TRADFRI ON/OFF switch',
supports: 'on, off',
fromZigbee: [
fz.genOnOff_cmdOn, fz.genOnOff_cmdOff, fz.E1743_brightness_up, fz.E1743_brightness_down,
fz.E1743_brightness_stop, fz.generic_battery, fz.ignore_power_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {
direction: 0, attrId: 33, dataType: 32, minRepIntval: 0, maxRepIntval: repInterval.MAX, repChange: 0,
};
const actions = [
(cb) => device.bind('genOnOff', coordinatorGroup, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.foundation('genPowerCfg', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['TRADFRI motion sensor'],
model: 'E1525',
vendor: 'IKEA',
description: 'TRADFRI motion sensor',
supports: 'occupancy',
fromZigbee: [fz.generic_battery, fz.ignore_power_change, fz.E1525_occupancy, fz.ignore_basic_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {
direction: 0, attrId: 33, dataType: 32, minRepIntval: 0, maxRepIntval: repInterval.MAX, repChange: 0,
};
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.foundation('genPowerCfg', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['TRADFRI signal repeater'],
model: 'E1746',
description: 'TRADFRI signal repeater',
supports: '',
vendor: 'IKEA',
fromZigbee: [],
toZigbee: [],
},
// Philips
{
zigbeeModel: ['LLC012', 'LLC011'],
model: '7299760PH',
vendor: 'Philips',
description: 'Hue Bloom',
extend: hue.light_onoff_brightness_colorxy,
},
{
zigbeeModel: ['LLC020'],
model: '7146060PH',
vendor: 'Philips',
description: 'Hue Go',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LCC001'],
model: '4090531P7',
vendor: 'Philips',
description: 'Hue Flourish white and color ambiance ceiling light',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LWB004'],
model: '433714',
vendor: 'Philips',
description: 'Hue Lux A19 bulb E27',
extend: hue.light_onoff_brightness,
},
{
zigbeeModel: ['LWB006', 'LWB014'],
model: '9290011370',
vendor: 'Philips',
description: 'Hue white A60 bulb E27',
extend: hue.light_onoff_brightness,
},
{
zigbeeModel: ['LWB010'],
model: '8718696449691',
vendor: 'Philips',
description: 'Hue White Single bulb B22',
extend: hue.light_onoff_brightness,
},
{
zigbeeModel: ['LWG001'],
model: '9290018195',
vendor: 'Philips',
description: 'Hue white GU10',
extend: hue.light_onoff_brightness,
},
{
zigbeeModel: ['LST001'],
model: '7299355PH',
vendor: 'Philips',
description: 'Hue white and color ambiance LightStrip',
extend: hue.light_onoff_brightness_colorxy,
},
{
zigbeeModel: ['LST002'],
model: '915005106701',
vendor: 'Philips',
description: 'Hue white and color ambiance LightStrip plus',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LCT001', 'LCT007', 'LCT010', 'LCT012', 'LCT014', 'LCT015', 'LCT016'],
model: '9290012573A',
vendor: 'Philips',
description: 'Hue white and color ambiance E26/E27/E14',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LCT002'],
model: '9290002579A',
vendor: 'Philips',
description: 'Hue white and color ambiance BR30',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LCT003'],
model: '8718696485880',
vendor: 'Philips',
description: 'Hue white and color ambiance GU10',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LCT024'],
model: '915005733701',
vendor: 'Philips',
description: 'Hue White and color ambiance Play Lightbar',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LTW011'],
model: '464800',
vendor: 'Philips',
description: 'Hue white ambiance BR30 flood light',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTW012'],
model: '8718696695203',
vendor: 'Philips',
description: 'Hue white ambiance E14',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTW013'],
model: '8718696598283',
vendor: 'Philips',
description: 'Hue white ambiance GU10',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTW015'],
model: '9290011998B',
vendor: 'Philips',
description: 'Hue white ambiance E26',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTW010', 'LTW001', 'LTW004'],
model: '8718696548738',
vendor: 'Philips',
description: 'Hue white ambiance E26/E27',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LCW001'],
model: '4090130P7',
vendor: 'Philips',
description: 'Hue Sana',
extend: hue.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LTC001'],
model: '3261030P7',
vendor: 'Philips',
description: 'Hue Being',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTC003'],
model: '3261331P7',
vendor: 'Philips',
description: 'Hue white ambiance Still',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTC011'],
model: '4096730U7',
vendor: 'Philips',
description: 'Hue Cher ceiling light',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTC015'],
model: '3216331P5',
vendor: 'Philips',
description: 'Hue white ambiance Aurelle rectangle panel light',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTC016'],
model: '3216431P5',
vendor: 'Philips',
description: 'Hue white ambiance Aurelle round panel light',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LTP003'],
model: '4033930P7',
vendor: 'Philips',
description: 'Hue white ambiance suspension Fair',
extend: hue.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LWB015'],
model: '046677476816',
vendor: 'Philips',
description: 'Hue white PAR38 outdoor',
extend: hue.light_onoff_brightness,
},
{
zigbeeModel: ['LLC010'],
model: '7199960PH',
vendor: 'Philips',
description: 'Hue Iris',
extend: hue.light_onoff_brightness_colorxy,
},
{
zigbeeModel: ['RWL020', 'RWL021'],
model: '324131092621',
vendor: 'Philips',
description: 'Hue dimmer switch',
supports: 'on/off, brightness, up/down/hold/release, click count',
fromZigbee: [
fz._324131092621_ignore_on, fz._324131092621_ignore_off, fz._324131092621_ignore_step,
fz._324131092621_ignore_stop, fz._324131092621_notification,
fz.ignore_power_change, fz.hue_battery,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const ep1 = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => ep1.bind('genOnOff', coordinator, cb),
(cb) => ep1.bind('genLevelCtrl', coordinator, cb),
];
execute(ep1, actions, (result) => {
if (result) {
const ep2 = shepherd.find(ieeeAddr, 2);
const actions = [
(cb) => ep2.foundation('genBasic', 'write',
[{attrId: 0x0031, dataType: 0x19, attrData: 0x000B}],
{manufSpec: 1, disDefaultRsp: 1, manufCode: 0x100B}, cb),
(cb) => ep2.bind('manuSpecificPhilips', coordinator, cb),
(cb) => ep2.bind('genPowerCfg', coordinator, cb),
(cb) => ep2.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
];
execute(ep2, actions, callback);
} else {
callback(result);
}
});
},
},
{
zigbeeModel: ['SML001'],
model: '9290012607',
vendor: 'Philips',
description: 'Hue motion sensor',
supports: 'occupancy, temperature, illuminance',
fromZigbee: [
fz.hue_battery, fz.generic_occupancy, fz.generic_temperature,
fz.ignore_occupancy_change, fz.generic_illuminance, fz.ignore_illuminance_change,
fz.ignore_temperature_change,
],
toZigbee: [tz.occupancy_timeout],
ep: (device) => {
return {
'': 2, // default
'ep1': 1,
'ep2': 2, // e.g. for write to msOccupancySensing
};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 2);
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('msIlluminanceMeasurement', coordinator, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.bind('msOccupancySensing', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
(cb) => device.report('msOccupancySensing', 'occupancy', 0, 600, null, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.report('msIlluminanceMeasurement', 'measuredValue', 0, 600, null, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['SML002'],
model: '9290019758',
vendor: 'Philips',
description: 'Hue motion outdoor sensor',
supports: 'occupancy, temperature, illuminance',
fromZigbee: [
fz.hue_battery, fz.generic_occupancy, fz.generic_temperature,
fz.ignore_occupancy_change, fz.generic_illuminance, fz.ignore_illuminance_change,
fz.ignore_temperature_change,
],
toZigbee: [tz.occupancy_timeout],
ep: (device) => {
return {
'': 2, // default
'ep1': 1,
'ep2': 2, // e.g. for write to msOccupancySensing
};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 2);
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('msIlluminanceMeasurement', coordinator, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.bind('msOccupancySensing', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
(cb) => device.report('msOccupancySensing', 'occupancy', 0, 600, null, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.report('msIlluminanceMeasurement', 'measuredValue', 0, 600, null, cb),
];
execute(device, actions, callback);
},
},
// Belkin
{
zigbeeModel: ['MZ100'],
model: 'F7C033',
vendor: 'Belkin',
description: 'WeMo smart LED bulb',
fromZigbee: [
fz.brightness, fz.state_change, fz.state_report, fz.brightness_report,
fz.ignore_genGroups_devChange, fz.ignore_basic_change,
],
supports: generic.light_onoff_brightness.supports,
toZigbee: generic.light_onoff_brightness.toZigbee,
},
// EDP
{
zigbeeModel: ['ZB-SmartPlug-1.0.0'],
model: 'PLUG EDP RE:DY',
vendor: 'EDP',
description: 're:dy plug',
supports: 'on/off, power measurement',
fromZigbee: [fz.ignore_onoff_change, fz.generic_power, fz.ignore_metering_change],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 85);
execute(device, [(cb) => device.report('seMetering', 'instantaneousDemand', 10, 60, 1, cb)], callback);
},
},
// Custom devices (DiY)
{
zigbeeModel: ['lumi.router'],
model: 'CC2530.ROUTER',
vendor: 'Custom devices (DiY)',
description: '[CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/)',
supports: 'state, description, type, rssi',
fromZigbee: [fz.CC2530ROUTER_state, fz.CC2530ROUTER_meta, fz.ignore_onoff_change],
toZigbee: [],
},
{
zigbeeModel: ['DNCKAT_S001'],
model: 'DNCKATSW001',
vendor: 'Custom devices (DiY)',
description: '[DNCKAT single key wired wall light switch](https://github.com/dzungpv/dnckatsw00x/)',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
},
{
zigbeeModel: ['DNCKAT_S002'],
model: 'DNCKATSW002',
vendor: 'Custom devices (DiY)',
description: '[DNCKAT double key wired wall light switch](https://github.com/dzungpv/dnckatsw00x/)',
supports: 'hold/release, on/off',
fromZigbee: [fz.DNCKAT_S00X_state, fz.DNCKAT_S00X_buttons],
toZigbee: [tz.on_off],
ep: (device) => {
return {'left': 1, 'right': 2};
},
},
{
zigbeeModel: ['DNCKAT_S003'],
model: 'DNCKATSW003',
vendor: 'Custom devices (DiY)',
description: '[DNCKAT triple key wired wall light switch](https://github.com/dzungpv/dnckatsw00x/)',
supports: 'hold/release, on/off',
fromZigbee: [fz.DNCKAT_S00X_state, fz.DNCKAT_S00X_buttons],
toZigbee: [tz.on_off],
ep: (device) => {
return {'left': 1, 'center': 2, 'right': 3};
},
},
{
zigbeeModel: ['DNCKAT_S004'],
model: 'DNCKATSW004',
vendor: 'Custom devices (DiY)',
description: '[DNCKAT quadruple key wired wall light switch](https://github.com/dzungpv/dnckatsw00x/)',
supports: 'hold/release, on/off',
fromZigbee: [fz.DNCKAT_S00X_state, fz.DNCKAT_S00X_buttons],
toZigbee: [tz.on_off],
ep: (device) => {
return {'bottom_left': 1, 'bottom_right': 2, 'top_left': 3, 'top_right': 4};
},
},
// eCozy
{
zigbeeModel: ['Thermostat'],
model: '1TST-EU',
vendor: 'eCozy',
description: 'Smart heating thermostat',
supports: 'temperature, occupancy, un-/occupied heating, schedule',
fromZigbee: [
fz.ignore_basic_change, fz.generic_battery_voltage,
fz.thermostat_att_report, fz.thermostat_dev_change,
],
toZigbee: [
tz.factory_reset, tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration,
tz.thermostat_occupancy, tz.thermostat_occupied_heating_setpoint,
tz.thermostat_unoccupied_heating_setpoint, tz.thermostat_setpoint_raise_lower,
tz.thermostat_remote_sensing, tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode,
tz.thermostat_weekly_schedule, tz.thermostat_clear_weekly_schedule, tz.thermostat_weekly_schedule_rsp,
tz.thermostat_relay_status_log, tz.thermostat_relay_status_log_rsp,
],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const actions = [
// from https://github.com/ckpt-martin/Hubitat/blob/master/eCozy/eCozy-ZigBee-Thermostat-Driver.groovy
(cb) => device.bind('genBasic', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('genIdentify', coordinator, cb),
(cb) => device.bind('genTime', coordinator, cb),
(cb) => device.bind('genPollCtrl', coordinator, cb),
(cb) => device.bind('hvacThermostat', coordinator, cb),
(cb) => device.bind('hvacUserInterfaceCfg', coordinator, cb),
(cb) => device.report('hvacThermostat', 'localTemp', 5, 30, 0, cb),
];
execute(device, actions, callback);
},
},
// OSRAM
{
zigbeeModel: ['Outdoor Lantern W RGBW OSRAM'],
model: '4058075816718',
vendor: 'OSRAM',
description: 'SMART+ outdoor wall lantern RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['Classic A60 RGBW'],
model: 'AA69697',
vendor: 'OSRAM',
description: 'Classic A60 RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['CLA60 RGBW OSRAM'],
model: 'AC03645',
vendor: 'OSRAM',
description: 'LIGHTIFY LED CLA60 E27 RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['CLA60 TW OSRAM'],
model: 'AC03642',
vendor: 'OSRAM',
description: 'SMART+ CLASSIC A 60 TW',
extend: generic.light_onoff_brightness_colortemp,
},
{
// AA70155 is model number of both bulbs.
zigbeeModel: ['LIGHTIFY A19 Tunable White', 'Classic A60 TW'],
model: 'AA70155',
vendor: 'OSRAM',
description: 'LIGHTIFY LED A19 tunable white / Classic A60 TW',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['PAR16 50 TW'],
model: 'AA68199',
vendor: 'OSRAM',
description: 'LIGHTIFY LED PAR16 50 GU10 tunable white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['Classic B40 TW - LIGHTIFY'],
model: 'AB32840',
vendor: 'OSRAM',
description: 'LIGHTIFY LED Classic B40 tunable white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['Ceiling TW OSRAM'],
model: '4058075816794',
vendor: 'OSRAM',
description: 'Smart+ Ceiling TW',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['Classic A60 W clear - LIGHTIFY'],
model: 'AC03641',
vendor: 'OSRAM',
description: 'LIGHTIFY LED Classic A60 clear',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['Surface Light W �C LIGHTIFY'],
model: '4052899926158',
vendor: 'OSRAM',
description: 'LIGHTIFY Surface Light TW',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['Surface Light TW'],
model: 'AB401130055',
vendor: 'OSRAM',
description: 'LIGHTIFY Surface Light LED Tunable White',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['Plug 01'],
model: 'AB3257001NJ',
description: 'Smart+ plug',
supports: 'on/off',
vendor: 'OSRAM',
fromZigbee: [fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['Flex RGBW', 'LIGHTIFY Indoor Flex RGBW', 'LIGHTIFY Flex RGBW'],
model: '4052899926110',
vendor: 'OSRAM',
description: 'Flex RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['LIGHTIFY Outdoor Flex RGBW', 'LIGHTIFY FLEX OUTDOOR RGBW'],
model: '4058075036185',
vendor: 'OSRAM',
description: 'Outdoor Flex RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['Gardenpole RGBW-Lightify'],
model: '4058075036147',
vendor: 'OSRAM',
description: 'Smart+ gardenpole RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['Gardenpole Mini RGBW OSRAM'],
model: 'AC0363900NJ',
vendor: 'OSRAM',
description: 'Smart+ mini gardenpole RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['PAR 16 50 RGBW - LIGHTIFY'],
model: 'AB35996',
vendor: 'OSRAM',
description: 'Smart+ Spot GU10 Multicolor',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['B40 DIM Z3'],
model: 'AC08562',
vendor: 'OSRAM',
description: 'SMART+ Candle E14 Dimmable White',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['Motion Sensor-A'],
model: 'AC01353010G',
vendor: 'OSRAM',
description: 'SMART+ Motion Sensor',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ias_zone_motion_dev_change,
fz.ias_zone_motion_status_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['MR16 TW OSRAM'],
model: 'AC03648',
vendor: 'OSRAM',
description: 'SMART+ spot GU5.3 tunable white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['Lightify Switch Mini', 'Lightify Switch Mini\u0000'],
model: 'AC0251100NJ',
vendor: 'OSRAM',
description: 'Smart+ switch mini',
supports: 'on/off, brightness',
fromZigbee: [
fz.AC0251100NJ_on, fz.AC0251100NJ_off, fz.AC0251100NJ_on_hold, fz.AC0251100NJ_off_hold,
fz.AC0251100NJ_release, fz.AC0251100NJ_circle, fz.AC0251100NJ_circle_release,
fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.bind('lightingColorCtrl', coordinator, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 900, 3600, 0, cb),
];
execute(device, actions, callback);
},
},
// Hive
{
zigbeeModel: ['FWBulb01'],
model: 'HALIGHTDIMWWE27',
vendor: 'Hive',
description: 'Active smart bulb white LED (E27)',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['FWBulb02UK'],
model: 'HALIGHTDIMWWB22',
vendor: 'Hive',
description: 'Active smart bulb white LED (B22)',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['SLP2b'],
model: '1613V',
vendor: 'Hive',
description: 'Active plug',
supports: 'on/off, power measurement',
fromZigbee: [
fz.state, fz.ignore_onoff_change, fz.generic_power, fz.ignore_metering_change,
fz.generic_temperature, fz.ignore_temperature_change,
],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 9);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => device.report('seMetering', 'instantaneousDemand', 10, 60, 1, cb),
];
execute(device, actions, callback);
},
},
// Innr
{
zigbeeModel: ['RB 185 C'],
model: 'RB 185 C',
vendor: 'Innr',
description: 'E27 Bulb RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['BY 185 C'],
model: 'BY 185 C',
vendor: 'Innr',
description: 'B22 Bulb RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['RB 265'],
model: 'RB 265',
vendor: 'Innr',
description: 'E27 Bulb',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RB 278 T'],
model: 'RB 278 T',
vendor: 'Innr',
description: 'E27 Bulb',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RB 285 C'],
model: 'RB 285 C',
vendor: 'Innr',
description: 'E27 Bulb RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['BY 285 C'],
model: 'BY 285 C',
vendor: 'Innr',
description: 'B22 Bulb RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['RB 165'],
model: 'RB 165',
vendor: 'Innr',
description: 'E27 Bulb',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RB 175 W'],
model: 'RB 175 W',
vendor: 'Innr',
description: 'E27 Bulb warm dimming',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RB 178 T'],
model: 'RB 178 T',
vendor: 'Innr',
description: 'Smart bulb tunable white E27',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['RS 122'],
model: 'RS 122',
vendor: 'Innr',
description: 'GU10 Spot',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RS 125'],
model: 'RS 125',
vendor: 'Innr',
description: 'GU10 Spot',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RS 225'],
model: 'RS 225',
vendor: 'Innr',
description: 'GU10 Spot',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RS 128 T'],
model: 'RS 128 T',
vendor: 'Innr',
description: 'GU10 Spot 350 lm, dimmable, white spectrum',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['RS 228 T'],
model: 'RS 228 T',
vendor: 'Innr',
description: 'GU10 Spot 350 lm, dimmable, white spectrum',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['RB 145'],
model: 'RB 145',
vendor: 'Innr',
description: 'E14 Candle',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RB 248 T'],
model: 'RB 248 T',
vendor: 'Innr',
description: 'E14 Candle with white spectrum',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['BY 165', 'BY 265'],
model: 'BY 165',
vendor: 'Innr',
description: 'B22 Bulb dimmable',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['PL 110'],
model: 'PL 110',
vendor: 'Innr',
description: 'Puck Light',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['ST 110'],
model: 'ST 110',
vendor: 'Innr',
description: 'Strip Light',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['UC 110'],
model: 'UC 110',
vendor: 'Innr',
description: 'Under Cabinet Light',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['DL 110 N'],
model: 'DL 110 N',
vendor: 'Innr',
description: 'Spot narrow',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['DL 110 W'],
model: 'DL 110 W',
vendor: 'Innr',
description: 'Spot wide',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['SL 110 N'],
model: 'SL 110 N',
vendor: 'Innr',
description: 'Spot Flex narrow',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['SL 110 M'],
model: 'SL 110 M',
vendor: 'Innr',
description: 'Spot Flex medium',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['SL 110 W'],
model: 'SL 110 W',
vendor: 'Innr',
description: 'Spot Flex wide',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['SP 120'],
model: 'SP 120',
vendor: 'Innr',
description: 'Smart plug',
supports: 'on/off, power measurement',
fromZigbee: [fz.ignore_electrical_change, fz.SP120_power, fz.state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const onOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const activePower = {
direction: 0, attrId: 1291, dataType: 41, minRepIntval: 1, maxRepIntval: 300, repChange: 1,
};
const rmsCurrent = {
direction: 0, attrId: 1288, dataType: 33, minRepIntval: 1, maxRepIntval: 300, repChange: 100,
};
const rmsVoltage = {
direction: 0, attrId: 1285, dataType: 33, minRepIntval: 1, maxRepIntval: 300, repChange: 1,
};
const electricalCfg = [rmsCurrent, rmsVoltage, activePower];
const actions = [
(cb) => device.foundation('genOnOff', 'configReport', [onOff], foundationCfg, cb),
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('haElectricalMeasurement', 'configReport', electricalCfg, foundationCfg, cb),
(cb) => device.bind('haElectricalMeasurement', coordinator, cb),
];
execute(device, actions, callback);
},
},
// Sylvania
{
zigbeeModel: ['LIGHTIFY RT Tunable White'],
model: '73742',
vendor: 'Sylvania',
description: 'LIGHTIFY LED adjustable white RT 5/6',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LIGHTIFY BR Tunable White'],
model: '73740',
vendor: 'Sylvania',
description: 'LIGHTIFY LED adjustable white BR30',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LIGHTIFY BR RGBW', 'BR30 RGBW'],
model: '73739',
vendor: 'Sylvania',
description: 'LIGHTIFY LED RGBW BR30',
supports: generic.light_onoff_brightness_colortemp_colorxy.supports,
toZigbee: generic.light_onoff_brightness_colortemp_colorxy.toZigbee.concat([tz.osram_cmds]),
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee.concat([
fz.ignore_genIdentify_change,
fz.ignore_diagnostic_change,
fz.ignore_genScenes_change,
]),
},
{
zigbeeModel: ['LIGHTIFY A19 RGBW'],
model: '73693',
vendor: 'Sylvania',
description: 'LIGHTIFY LED RGBW A19',
supports: generic.light_onoff_brightness_colortemp_colorxy.supports,
toZigbee: generic.light_onoff_brightness_colortemp_colorxy.toZigbee.concat([tz.osram_cmds]),
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee,
},
{
zigbeeModel: ['LIGHTIFY A19 ON/OFF/DIM', 'LIGHTIFY A19 ON/OFF/DIM 10 Year'],
model: '74283',
vendor: 'Sylvania',
description: 'LIGHTIFY LED soft white dimmable A19',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['A19 W 10 year'],
model: '74696',
vendor: 'Sylvania',
description: 'LIGHTIFY LED soft white dimmable A19',
supports: generic.light_onoff_brightness.supports,
toZigbee: generic.light_onoff_brightness.toZigbee.concat([tz.osram_cmds]),
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_genIdentify_change,
fz.ignore_diagnostic_change,
fz.ignore_genScenes_change,
fz.ignore_light_color_colortemp_report,
]),
},
{
zigbeeModel: ['PLUG'],
model: '72922-A',
vendor: 'Sylvania',
description: 'SMART+ Smart Plug',
supports: 'on/off',
fromZigbee: [fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['A19 TW 10 year'],
model: '71831',
vendor: 'Sylvania',
description: 'Smart Home adjustable white A19 LED bulb',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['MR16 TW'],
model: '74282',
vendor: 'Sylvania',
description: 'Smart Home adjustable white MR16 LED bulb',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['LIGHTIFY Gardenspot RGB'],
model: 'LTFY004',
vendor: 'Sylvania',
description: 'LIGHTIFY LED gardenspot mini RGB',
extend: generic.light_onoff_brightness_colorxy,
},
{
zigbeeModel: ['PAR38 W 10 year'],
model: '74580',
vendor: 'Sylvania',
description: 'Smart Home soft white PAR38 outdoor bulb',
extend: generic.light_onoff_brightness,
},
// GE
{
zigbeeModel: ['ZLL Light'],
model: '22670',
vendor: 'GE',
description: 'Link smart LED light bulb, A19/BR30 soft white (2700K)',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['45852'],
model: '45852GE',
vendor: 'GE',
description: 'ZigBee plug-in smart dimmer',
supports: 'on/off, brightness',
fromZigbee: [fz.brightness, fz.ignore_onoff_change, fz.state],
toZigbee: [tz.light_onoff_brightness, 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: ['45853'],
model: '45853GE',
vendor: 'GE',
description: 'Plug-in smart switch',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_change],
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: ['45856'],
model: '45856GE',
vendor: 'GE',
description: 'In-wall smart switch',
supports: 'on/off',
fromZigbee: [fz.ignore_onoff_change, fz.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',
vendor: 'GE',
description: 'ZigBee in-wall smart dimmer',
supports: 'on/off, brightness',
fromZigbee: [fz.brightness, fz.ignore_onoff_change, fz.state],
toZigbee: [tz.light_onoff_brightness, 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);
},
},
// Sengled
{
zigbeeModel: ['E11-G13'],
model: 'E11-G13',
vendor: 'Sengled',
description: 'Element Classic (A19)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
},
{
zigbeeModel: ['E11-G23', 'E11-G33'],
model: 'E11-G23/E11-G33',
vendor: 'Sengled',
description: 'Element Classic (A60)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
},
{
zigbeeModel: ['Z01-CIA19NAE26'],
model: 'Z01-CIA19NAE26',
vendor: 'Sengled',
description: 'Element Touch (A19)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
},
{
zigbeeModel: ['Z01-A19NAE26'],
model: 'Z01-A19NAE26',
vendor: 'Sengled',
description: 'Element Plus (A19)',
supports: generic.light_onoff_brightness_colortemp.supports,
fromZigbee: generic.light_onoff_brightness_colortemp.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness_colortemp.toZigbee,
},
{
zigbeeModel: ['E11-N1EA'],
model: 'E11-N1EA',
vendor: 'Sengled',
description: 'Element Plus Color (A19)',
supports: generic.light_onoff_brightness_colortemp_colorxy.supports,
fromZigbee: generic.light_onoff_brightness_colortemp_colorxy.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness_colortemp_colorxy.toZigbee,
},
{
zigbeeModel: ['E12-N14'],
model: 'E12-N14',
vendor: 'Sengled',
description: 'Element Classic (BR30)',
supports: generic.light_onoff_brightness.supports,
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_metering_change,
fz.ignore_diagnostic_change,
]),
toZigbee: generic.light_onoff_brightness.toZigbee,
},
{
zigbeeModel: ['E1A-AC2'],
model: 'E1ACA4ABE38A',
vendor: 'Sengled',
description: 'Element downlight smart LED bulb',
extend: generic.light_onoff_brightness,
},
// Swann
{
zigbeeModel: ['SWO-KEF1PA'],
model: 'SWO-KEF1PA',
vendor: 'Swann',
description: 'Key fob remote',
supports: 'panic, home, away, sleep',
fromZigbee: [fz.KEF1PA_arm, fz.KEF1PA_panic],
toZigbee: [tz.factory_reset],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('ssIasZone', coordinator, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 250);
},
},
{
zigbeeModel: ['SWO-WDS1PA'],
model: 'SWO-WDS1PA',
vendor: 'Swann',
description: 'Window/door sensor',
supports: 'contact',
fromZigbee: [fz.ias_contact_dev_change, fz.ias_contact_status_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
// JIAWEN
{
zigbeeModel: ['FB56-ZCW08KU1.1'],
model: 'K2RGBW01',
vendor: 'JIAWEN',
description: 'Wireless Bulb E27 9W RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
// Netvox
{
zigbeeModel: ['Z809AE3R'],
model: 'Z809A',
vendor: 'Netvox',
description: 'Power socket with power consumption monitoring',
supports: 'on/off, power measurement',
fromZigbee: [fz.state, fz.ignore_onoff_change, fz.ignore_electrical_change, fz.Z809A_power],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('haElectricalMeasurement', 'rmsVoltage', 10, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'rmsCurrent', 10, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'activePower', 10, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'powerFactor', 10, 1000, 1, cb),
];
execute(device, actions, callback);
},
},
// Nanoleaf
{
zigbeeModel: ['NL08-0800'],
model: 'NL08-0800',
vendor: 'Nanoleaf',
description: 'Smart Ivy Bulb E27',
extend: generic.light_onoff_brightness,
},
// Nue, 3A
{
zigbeeModel: ['FTB56+ZSN15HG1.0'],
model: 'HGZB-1S',
vendor: 'Nue / 3A',
description: 'Smart 1 key scene wall switch',
supports: 'on/off, click',
toZigbee: [tz.on_off],
fromZigbee: [fz.nue_click, fz.ignore_power_report, fz.ignore_power_change],
},
{
zigbeeModel: ['FTB56+ZSN16HG1.0'],
model: 'HGZB-02S',
vendor: 'Nue / 3A',
description: 'Smart 2 key scene wall switch',
supports: 'on/off, click',
toZigbee: [tz.on_off],
fromZigbee: [fz.nue_click, fz.ignore_power_report, fz.ignore_power_change],
},
{
zigbeeModel: ['FB56+ZSN08KJ2.3'],
model: 'HGZB-045',
vendor: 'Nue / 3A',
description: 'Smart 4 key scene wall switch',
supports: 'on/off, click',
toZigbee: [tz.on_off],
fromZigbee: [fz.nue_click, fz.ignore_power_report, fz.ignore_power_change],
},
{
zigbeeModel: ['LXN56-DC27LX1.1'],
model: 'LXZB-02A',
vendor: 'Nue / 3A',
description: 'Smart light controller',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['FNB56-ZSW03LX2.0'],
model: 'HGZB-43',
vendor: 'Nue / 3A',
description: 'Smart light switch - 3 gang v2.0',
supports: 'on/off',
fromZigbee: [fz.generic_state_multi_ep, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
ep: (device) => {
return {'top': 1, 'center': 2, 'bottom': 3};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const ep1 = shepherd.find(ieeeAddr, 1);
execute(ep1, [(cb) => ep1.bind('genOnOff', coordinator, cb)], () => {
const ep2 = shepherd.find(ieeeAddr, 2);
execute(ep2, [(cb) => ep2.bind('genOnOff', coordinator, cb)], () => {
const ep3 = shepherd.find(ieeeAddr, 3);
execute(ep3, [(cb) => ep3.bind('genOnOff', coordinator, cb)], callback);
});
});
},
},
{
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',
vendor: 'Nue / 3A',
description: 'Smart dimmer wall switch',
supports: 'on/off, brightness',
toZigbee: [tz.on_off, tz.light_brightness],
fromZigbee: [fz.state, fz.ignore_onoff_change, fz.brightness_report, fz.ignore_light_brightness_change],
},
{
zigbeeModel: ['FB56+ZSW1HKJ1.7', 'FB56+ZSW1HKJ2.5'],
model: 'HGZB-042',
vendor: 'Nue / 3A',
description: 'Smart light switch - 2 gang',
supports: 'on/off',
fromZigbee: [fz.generic_state_multi_ep, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
ep: (device) => {
return {'top': 16, 'bottom': 17};
},
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)], callback);
});
},
},
{
zigbeeModel: ['FB56+ZSW05HG1.2'],
model: 'HGZB-01A/02A',
vendor: 'Nue / 3A',
description: 'Smart 1 gang wall or in-wall switch',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
},
{
zigbeeModel: ['FB56+ZSW1GKJ2.5'],
model: 'HGZB-41',
vendor: 'Nue / 3A',
description: 'Smart one gang wall switch',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
},
{
zigbeeModel: ['FNB56-SKT1DHG1.4'],
model: 'MG-AUWS01',
vendor: 'Nue / 3A',
description: 'Smart Double GPO',
supports: 'on/off',
fromZigbee: [fz.nue_power_state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
ep: (device) => {
return {'left': 12, 'right': 11};
},
},
{
zigbeeModel: ['FNB56-ZSW23HG1.1'],
model: 'HGZB-01A',
vendor: 'Nue / 3A',
description: 'Smart light controller',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['FNB56-ZSC01LX1.2'],
model: 'HGZB-02A',
vendor: 'Nue / 3A',
description: 'Smart light controller',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['FNB56-ZSW01LX2.0'],
model: 'HGZB-42-UK / HGZB-41',
description: 'Smart switch 1 or 2 gang',
vendor: 'Nue / 3A',
supports: 'on/off',
fromZigbee: [fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off],
},
// Smart Home Pty
{
zigbeeModel: ['FB56-ZCW11HG1.2'],
model: 'HGZB-07A',
vendor: 'Smart Home Pty',
description: 'RGBW Downlight',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['FNB56-SKT1EHG1.2'],
model: 'HGZB-20-DE',
vendor: 'Smart Home Pty',
description: 'Power plug',
supports: 'on/off',
fromZigbee: [fz.state_change],
toZigbee: [tz.on_off],
},
// Gledopto
{
zigbeeModel: ['GLEDOPTO', 'GL-C-008', 'GL-C-007'],
model: 'GL-C-008',
vendor: 'Gledopto',
description: 'Zigbee LED controller RGB + CCT / RGBW / WWCW / Dimmer',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else if (device.epList.toString() === '11,12,13,15') {
return {
'rgb': 12,
'white': 15,
};
} else if (device.epList.toString() === '11,13,15') {
return {
'rgb': 11,
'white': 15,
};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-S-004Z'],
model: 'GL-S-004Z',
vendor: 'Gledopto',
description: 'Zigbee Smart WW/CW GU10',
extend: gledopto.light_onoff_brightness_colortemp,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-C-006', 'GL-C-009'],
model: 'GL-C-006/GL-C-009',
vendor: 'Gledopto',
description: 'Zigbee LED controller WW/CW Dimmer',
extend: gledopto.light_onoff_brightness_colortemp,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-S-007Z'],
model: 'GL-S-007Z',
vendor: 'Gledopto',
description: 'Smart RGBW GU10',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-B-001Z'],
model: 'GL-B-001Z',
vendor: 'Gledopto',
description: 'Smart 4W E14 RGB / CW LED bulb',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-B-007Z'],
model: 'GL-B-007Z',
vendor: 'Gledopto',
description: 'Smart 6W E27 RGB / CW LED bulb',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-B-008Z'],
model: 'GL-B-008Z',
vendor: 'Gledopto',
description: 'Smart 12W E27 RGB / CW LED bulb',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-D-003Z', 'GL-D-005Z'],
model: 'GL-D-003Z',
vendor: 'Gledopto',
description: 'LED RGB + CCT downlight ',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['GL-S-003Z'],
model: 'GL-S-003Z',
vendor: 'Gledopto',
description: 'Smart RGBW GU10 ',
extend: gledopto.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13') {
return {'': 11};
} else {
return {};
}
},
},
{
zigbeeModel: ['HOMA2023'],
model: 'GD-CZ-006',
vendor: 'Gledopto',
description: 'Zigbee LED Driver',
extend: gledopto.light_onoff_brightness,
},
{
zigbeeModel: ['GL-FL-004TZ'],
model: 'GL-FL-004TZ',
vendor: 'Gledopto',
description: 'Zigbee 10W floodlight RGB CCT',
extend: generic.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
if (device.epList.toString() === '11,12,13') {
return {'': 12};
} else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') {
return {'': 11};
} else {
return {};
}
},
},
// SmartThings
{
zigbeeModel: ['PGC313'],
model: 'STSS-MULT-001',
vendor: 'SmartThings',
description: 'Multipurpose sensor',
supports: 'contact',
fromZigbee: [fz.smartthings_contact],
toZigbee: [],
},
{
zigbeeModel: ['tagv4'],
model: 'STS-PRS-251',
vendor: 'SmartThings',
description: 'Arrival sensor',
supports: 'presence',
fromZigbee: [
fz.STS_PRS_251_presence, fz.generic_batteryvoltage_3000_2500, fz.ignore_power_change,
fz.STS_PRS_251_beeping,
],
toZigbee: [tz.STS_PRS_251_beep],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('genBinaryInput', 'presentValue', 10, 30, 1, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 1800, 3600, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3325-S'],
model: '3325-S',
vendor: 'SmartThings',
description: 'Motion sensor (2015 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ias_zone_motion_dev_change,
fz.ias_zone_motion_status_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3321-S'],
model: '3321-S',
vendor: 'SmartThings',
description: 'Multi Sensor (2015 model)',
supports: 'contact and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.smartsense_multi,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 300, 600, 1, cb),
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.report('ssIasZone', 'zoneStatus', 0, 1000, null, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {
enrollrspcode: 1,
zoneid: 23,
}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['outlet'],
model: 'IM6001-OTP05',
vendor: 'SmartThings',
description: 'Outlet',
supports: 'on/off',
fromZigbee: [fz.state, fz.ignore_onoff_report],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['motion'],
model: 'IM6001-MTP01',
vendor: 'SmartThings',
description: 'Motion sensor (2018 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change,
fz.ignore_iaszone_report, fz.generic_ias_zone_motion_dev_change,
fz.bosch_ias_zone_motion_status_change, fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['motionv4'],
model: 'STS-IRM-250',
vendor: 'SmartThings',
description: 'Motion sensor (2016 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ias_zone_motion_dev_change,
fz.bosch_ias_zone_motion_status_change, fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3305-S'],
model: '3305-S',
vendor: 'SmartThings',
description: 'Motion sensor (2014 model)',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ias_zone_motion_dev_change,
fz.ias_zone_motion_status_change, fz.generic_batteryvoltage_3000_2500, fz.ignore_power_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 255}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3300-S'],
model: '3300-S',
vendor: 'SmartThings',
description: 'Door sensor',
supports: 'contact and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.smartsense_multi,
fz.ias_contact_status_change, fz.ignore_iaszone_change, fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 300, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.report('ssIasZone', 'zoneStatus', 0, 1000, null, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {
enrollrspcode: 1,
zoneid: 255,
}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['multiv4'],
model: 'F-MLT-US-2',
vendor: 'SmartThings',
description: 'Multipurpose sensor (2016 model)',
supports: 'contact',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.st_contact_status_change,
fz.generic_batteryvoltage_3000_2500, fz.ias_contact_dev_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['multi'],
model: 'IM6001-MPP01',
vendor: 'SmartThings',
description: 'Multipurpose sensor (2018 model)',
supports: 'contact',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.st_contact_status_change,
fz.generic_batteryvoltage_3000_2500, fz.ignore_iaszone_change, fz.ignore_iaszone_attreport,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
/**
* Note: humidity not (yet) implemented, as this seems to use proprietary cluster
* see Smartthings device handler (profileID: 0x9194, clusterId: 0xFC45
* https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/861ec6b88eb45273e341436a23d35274dc367c3b/
* devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy#L153-L156
*/
zigbeeModel: ['3310-S'],
model: '3310-S',
vendor: 'SmartThings',
description: 'Temperature and humidity sensor',
supports: 'temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change,
fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 150, 300, 0.5, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3315-S'],
model: '3315-S',
vendor: 'SmartThings',
description: 'Water sensor',
supports: 'water and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ignore_power_change,
fz.st_leak, fz.st_leak_change, fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 300, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.report('ssIasZone', 'zoneStatus', 0, 1000, null, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {
enrollrspcode: 1,
zoneid: 255,
}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3315-G'],
model: '3315-G',
vendor: 'SmartThings',
description: 'Water sensor',
supports: 'water and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ignore_power_change,
fz.st_leak, fz.st_leak_change, fz.generic_batteryvoltage_3000_2500,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 300, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 0, 1000, 0, cb),
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.report('ssIasZone', 'zoneStatus', 0, 1000, null, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {
enrollrspcode: 1,
zoneid: 255,
}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['button'],
model: 'IM6001-BTP01',
vendor: 'SmartThings',
description: 'Button',
supports: 'single click, double click, hold and temperature',
fromZigbee: [
fz.st_button_state,
fz.generic_battery_change,
fz.generic_temperature,
fz.ignore_basic_change,
fz.ignore_diagnostic_change,
fz.ignore_genIdentify_change,
fz.ignore_iaszone_attreport,
fz.ignore_iaszone_change,
fz.ignore_poll_ctrl_change,
fz.ignore_temperature_change,
fz.ignore_temperature_report,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback);
},
},
// Trust
{
zigbeeModel: ['\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'+
'\u0000\u0000\u0000\u0000\u0000'],
model: 'ZYCT-202',
vendor: 'Trust',
description: 'Remote control',
supports: 'on, off, stop, up-press, down-press',
fromZigbee: [
fz.ZYCT202_on, fz.ZYCT202_off, fz.ZYCT202_stop, fz.ZYCT202_up_down,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['ZLL-DimmableLigh'],
model: 'ZLED-2709',
vendor: 'Trust',
description: 'Smart Dimmable LED Bulb',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['VMS_ADUROLIGHT'],
model: 'ZPIR-8000',
vendor: 'Trust',
description: 'Motion Sensor',
supports: 'occupancy',
fromZigbee: [fz.ias_zone_motion_dev_change, fz.ias_zone_motion_status_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['CSW_ADUROLIGHT'],
model: 'ZCTS-808',
vendor: 'Trust',
description: 'Wireless contact sensor',
supports: 'contact',
fromZigbee: [fz.ias_contact_dev_change, fz.ias_contact_status_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback);
},
},
// Paulmann
{
zigbeeModel: ['Switch Controller '],
model: '50043',
vendor: 'Paulmann',
description: 'SmartHome Zigbee Cephei Switch Controller',
supports: 'on/off',
fromZigbee: [fz.state, fz.state_change],
toZigbee: [tz.on_off],
},
{
zigbeeModel: ['Dimmablelight '],
model: '50045',
vendor: 'Paulmann',
description: 'SmartHome Zigbee LED-stripe',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['RGBW light'],
model: '50049',
vendor: 'Paulmann',
description: 'SmartHome Yourled RGB Controller',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['CCT light'],
model: '50064',
vendor: 'Paulmann',
description: 'SmartHome led spot',
extend: generic.light_onoff_brightness_colortemp,
},
// Bitron
{
zigbeeModel: ['AV2010/34'],
model: 'AV2010/34',
vendor: 'Bitron',
description: '4-Touch single click buttons',
supports: 'click',
fromZigbee: [fz.ignore_power_report, fz.AV2010_34_click],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['902010/22'],
model: 'AV2010/22',
vendor: 'Bitron',
description: 'Wireless motion detector',
supports: 'occupancy',
fromZigbee: [fz.bitron_occupancy],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.report('ssIasZone', 'zoneStatus', 0, 30, null, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 1, zoneid: 23}, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['902010/25'],
model: 'AV2010/25',
vendor: 'Bitron',
description: 'Video wireless socket',
supports: 'on/off, power measurement',
fromZigbee: [fz.state, fz.ignore_onoff_change, fz.ignore_metering_change, fz.bitron_power],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('seMetering', 'instantaneousDemand', 10, 60, 1, cb),
(cb) => device.bind('genOnOff', coordinator, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['902010/32'],
model: 'AV2010/32',
vendor: 'Bitron',
description: 'Wireless wall thermostat with relay',
supports: 'temperature, heating/cooling system control',
fromZigbee: [
fz.ignore_basic_change, fz.bitron_thermostat_att_report,
fz.bitron_thermostat_dev_change, fz.bitron_battery,
],
toZigbee: [
tz.thermostat_occupied_heating_setpoint, tz.thermostat_local_temperature_calibration,
tz.thermostat_local_temperature, tz.thermostat_running_state,
tz.thermostat_temperature_display_mode,
],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genBasic', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('genIdentify', coordinator, cb),
(cb) => device.bind('genTime', coordinator, cb),
(cb) => device.bind('genPollCtrl', coordinator, cb),
(cb) => device.bind('hvacThermostat', coordinator, cb),
(cb) => device.bind('hvacUserInterfaceCfg', coordinator, cb),
(cb) => device.report('hvacThermostat', 'localTemp', 300, 3600, 0, cb),
(cb) => device.report('hvacThermostat', 'localTemperatureCalibration', 1, 0, 0, cb),
(cb) => device.report('hvacThermostat', 'occupiedHeatingSetpoint', 1, 0, 1, cb),
(cb) => device.report('hvacThermostat', 'runningState', 1, 0, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 1800, 43200, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryAlarmState', 1, 0, 1, cb),
];
execute(device, actions, callback);
},
},
// Iris
{
zigbeeModel: ['3210-L'],
model: '3210-L',
vendor: 'Iris',
description: 'Smart plug',
supports: 'on/off',
fromZigbee: [fz.ignore_onoff_change, fz.ignore_electrical_change, fz.state, fz.iris_3210L_power],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('haElectricalMeasurement', 'activePower', 10, 1000, 1, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3326-L'],
model: '3326-L',
vendor: 'Iris',
description: 'Motion and temperature sensor',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ias_zone_motion_dev_change,
fz.ias_zone_motion_status_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 30, 600, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['3320-L'],
model: '3320-L',
vendor: 'Iris',
description: 'Contact sensor',
supports: 'contact',
fromZigbee: [fz.iris_3320L_contact],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
// ksentry
{
zigbeeModel: ['Lamp_01'],
model: 'KS-SM001',
vendor: 'Ksentry Electronics',
description: '[Zigbee OnOff Controller](http://ksentry.manufacturer.globalsources.com/si/6008837134660'+
'/pdtl/ZigBee-module/1162731630/zigbee-on-off-controller-modules.htm)',
supports: 'on/off',
fromZigbee: [fz.state_change, fz.state],
toZigbee: [tz.on_off],
},
// Ninja Blocks
{
zigbeeModel: ['Ninja Smart plug'],
model: 'Z809AF',
vendor: 'Ninja Blocks',
description: 'Zigbee smart plug with power meter',
supports: 'on/off, power measurement',
fromZigbee: [fz.ignore_onoff_change, fz.state, fz.generic_power, fz.ignore_metering_change],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.report('seMetering', 'instantaneousDemand', 10, 60, 1, cb),
];
execute(device, actions, callback);
},
},
// Commercial Electric
{
zigbeeModel: ['Zigbee CCT Downlight'],
model: '53170161',
vendor: 'Commercial Electric',
description: 'Matte White Recessed Retrofit Smart Led Downlight - 4 Inch',
extend: generic.light_onoff_brightness_colortemp,
},
// ilux
{
zigbeeModel: ['LEColorLight'],
model: '900008-WW',
vendor: 'ilux',
description: 'Dimmable A60 E27 LED Bulb',
extend: generic.light_onoff_brightness,
},
// Dresden Elektronik
{
zigbeeModel: ['FLS-PP3'],
model: 'Mega23M12',
vendor: 'Dresden Elektronik',
description: 'ZigBee Light Link wireless electronic ballast',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['FLS-CT'],
model: 'XVV-Mega23M12',
vendor: 'Dresden Elektronik',
description: 'ZigBee Light Link wireless electronic ballast color temperature',
extend: generic.light_onoff_brightness_colortemp,
},
// Centralite Swiss Plug
{
zigbeeModel: ['4256251-RZHAC', '4257050-RZHAC'],
model: '4256251-RZHAC',
vendor: 'Centralite',
description: 'White Swiss power outlet switch with power meter',
supports: 'switch and power meter',
fromZigbee: [fz.ignore_onoff_change, fz.state, fz.ignore_electrical_change, fz.RZHAC_4256251_power],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => device.report('haElectricalMeasurement', 'rmsVoltage', 10, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'rmsCurrent', 10, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'activePower', 10, 1000, 1, cb),
];
execute(device, actions, callback);
},
},
// Climax
{
zigbeeModel: ['PSS_00.00.00.15TC'],
model: 'PSS-23ZBS',
vendor: 'Climax',
description: 'Power plug',
supports: 'on/off',
fromZigbee: [fz.state_change],
toZigbee: [tz.on_off],
},
{
zigbeeModel: ['SCM-3_00.00.03.15'],
model: 'SCM-5ZBS',
vendor: 'Climax',
description: 'Roller shutter',
supports: 'open/close',
fromZigbee: [fz.cover_position_report, fz.cover_position, fz.cover_state_change, fz.cover_state_report],
toZigbee: [tz.cover_position, tz.cover_open_close],
},
// HEIMAN
{
zigbeeModel: ['SmartPlug'],
model: 'HS2SK',
description: 'Smart metering plug',
supports: 'on/off, power measurement',
vendor: 'HEIMAN',
fromZigbee: [fz.state, fz.ignore_onoff_change, fz.ignore_electrical_change, fz.HS2SK_power],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => device.report('haElectricalMeasurement', 'rmsVoltage', 1, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'rmsCurrent', 1, 1000, 1, cb),
(cb) => device.report('haElectricalMeasurement', 'activePower', 1, 1000, 1, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['SMOK_V16', 'b5db59bfd81e4f1f95dc57fdbba17931', 'SMOK_YDLV10', 'SmokeSensor-EM'],
model: 'HS1SA',
vendor: 'HEIMAN',
description: 'Smoke detector',
supports: 'smoke',
fromZigbee: [
fz.heiman_smoke,
fz.battery_200,
fz.heiman_smoke_enrolled,
fz.ignore_power_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('ssIasZone', coordinator, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
// Time is in seconds. 65535 means no report. 65534 is max value: 18 hours, 12 minutes 14 seconds.
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 65534, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryAlarmState', 1, 65534, 1, cb),
];
execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['SmokeSensor-N'],
model: 'HS3SA',
vendor: 'HEIMAN',
description: 'Smoke detector',
supports: 'smoke',
fromZigbee: [fz.heiman_smoke],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['GASSensor-N'],
model: 'HS3CG',
vendor: 'HEIMAN',
description: 'Combustible gas sensor',
supports: 'gas',
fromZigbee: [fz.heiman_gas, fz.ignore_iaszone_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['DoorSensor-N'],
model: 'HS1DS',
vendor: 'HEIMAN',
description: 'Door sensor',
supports: 'contact',
fromZigbee: [fz.heiman_contact],
toZigbee: [],
},
{
zigbeeModel: ['DoorSensor-EM'],
model: 'HS1DS-E',
vendor: 'HEIMAN',
description: 'Door sensor',
supports: 'contact',
fromZigbee: [fz.heiman_contact],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['WaterSensor-N'],
model: 'HS1WL',
vendor: 'HEIMAN',
description: 'Water leakage sensor',
supports: 'water leak',
fromZigbee: [fz.heiman_water_leak],
toZigbee: [],
},
{
zigbeeModel: ['WaterSensor-EM'],
model: 'HS1-WL-E',
vendor: 'HEIMAN',
description: 'Water leakage sensor',
supports: 'water leak',
fromZigbee: [fz.heiman_water_leak],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
{
zigbeeModel: ['RC_V14'],
model: 'HS1RC-M',
vendor: 'HEIMAN',
description: 'Smart remote controller',
supports: 'action',
fromZigbee: [
fz.battery_200, fz.ignore_power_change,
fz.heiman_smart_controller_armmode, fz.heiman_smart_controller_emergency,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
// Oujiabao
{
zigbeeModel: ['OJB-CR701-YZ'],
model: 'CR701-YZ',
vendor: 'Oujiabao',
description: 'Gas and carbon monoxide alarm',
supports: 'gas and carbon monoxide',
fromZigbee: [fz.OJBCR701YZ_statuschange],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('ssIasZone', coordinator, cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback, 1000);
},
},
// Calex
{
zigbeeModel: ['EC-Z3.0-CCT '],
model: '421786',
vendor: 'Calex',
description: 'LED A60 Zigbee GLS-lamp',
extend: generic.light_onoff_brightness,
},
// EcoSmart
{
zigbeeModel: ['zhaRGBW'],
model: 'D1821',
vendor: 'EcoSmart',
description: 'A19 RGB bulb',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
// eslint-disable-next-line
zigbeeModel: ['\u0000\u0002\u0000\u0004\u0000\f^I\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e'],
model: 'D1531',
vendor: 'EcoSmart',
description: 'A19 bright white bulb',
extend: generic.light_onoff_brightness,
},
{
// eslint-disable-next-line
zigbeeModel: ['\u0000\u0002\u0000\u0004\u0012 �P\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e'],
model: 'D1532',
vendor: 'EcoSmart',
description: 'A19 soft white bulb',
extend: generic.light_onoff_brightness,
},
// Airam
{
zigbeeModel: ['ZBT-DimmableLight'],
model: '4713407',
vendor: 'Airam',
description: 'LED OP A60 ZB 9W/827 E27',
extend: generic.light_onoff_brightness,
fromZigbee: [fz.state_change, fz.brightness_report, fz.brightness, fz.state],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const cfgOnOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const cfgLevel = {direction: 0, attrId: 0, dataType: 32, minRepIntval: 0, maxRepIntval: 1000, repChange: 1};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfgOnOff], foundationCfg, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.foundation('genLevelCtrl', 'configReport', [cfgLevel], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['ZBT-Remote-EU-DIMV1A2'],
model: 'AIRAM-CTR.U',
vendor: 'Airam',
description: 'CTR.U remote (can only be used to control the Airam 4713407 bulb)',
supports: 'on/off',
fromZigbee: [],
toZigbee: [],
},
// Paul Neuhaus
{
zigbeeModel: ['NLG-CCT light '],
model: '100.424.11',
vendor: 'Paul Neuhaus',
description: 'Q-INIGO LED ceiling light',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['NLG-RGBW light '],
model: '100.110.39',
vendor: 'Paul Neuhaus',
description: 'Q-FLAG LED Panel, Smart-Home RGBW',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['NLG-plug '],
model: '100.425.90',
vendor: 'Paul Neuhaus',
description: 'Q-PLUG adapter plug with night orientation light',
supports: 'on/off',
fromZigbee: [fz.ignore_basic_change],
toZigbee: [tz.on_off],
},
// iCasa
{
zigbeeModel: ['ICZB-IW11D'],
model: 'ICZB-IW11D',
vendor: 'iCasa',
description: 'Zigbee 3.0 Dimmer',
extend: generic.light_onoff_brightness,
},
// Müller Licht
{
zigbeeModel: ['ZBT-ExtendedColor'],
model: '404000/404005/404012',
vendor: 'Müller Licht',
description: 'Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, color, opal white',
extend: generic.light_onoff_brightness_colortemp_colorxy,
},
{
zigbeeModel: ['ZBT-ColorTemperature'],
model: '404006/404008/404004',
vendor: 'Müller Licht',
description: 'Tint LED bulb GU10/E14/E27 350/470/806 lumen, dimmable, opal white',
extend: generic.light_onoff_brightness_colortemp,
},
{
zigbeeModel: ['ZBT-Remote-ALL-RGBW'],
model: 'MLI-404011',
description: 'Tint remote control',
supports: 'toggle, brightness, other buttons are not supported yet!',
vendor: 'Müller Licht',
fromZigbee: [
fz.tint404011_on, fz.tint404011_off, fz.cmdToggle, fz.tint404011_brightness_updown_click,
fz.tint404011_move_to_color_temp, fz.tint404011_move_to_color, fz.tint404011_scene,
fz.tint404011_brightness_updown_release, fz.tint404011_brightness_updown_hold,
],
toZigbee: [],
},
// Salus
{
zigbeeModel: ['SP600'],
model: 'SP600',
vendor: 'Salus',
description: 'Smart plug',
supports: 'on/off, power measurement',
fromZigbee: [fz.state, fz.ignore_onoff_change, fz.generic_power, fz.ignore_metering_change],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 9);
const onOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 5, repChange: 0};
const actions = [
(cb) => device.foundation('genOnOff', 'configReport', [onOff], foundationCfg, cb),
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.report('seMetering', 'instantaneousDemand', 1, 5, 1, cb),
];
execute(device, actions, callback);
},
},
// AduroSmart
{
zigbeeModel: ['ZLL-ExtendedColo'],
model: '81809',
vendor: 'AduroSmart',
description: 'ERIA colors and white shades smart light bulb A19',
extend: generic.light_onoff_brightness_colortemp_colorxy,
ep: (device) => {
return {
'': 2,
};
},
},
{
zigbeeModel: ['Adurolight_NCC'],
model: '81825',
vendor: 'AduroSmart',
description: 'ERIA smart wireless dimming switch',
supports: 'on, off, up, down',
fromZigbee: [fz.eria_81825_on, fz.eria_81825_off, fz.eria_81825_updown],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
];
execute(device, actions, callback);
},
},
// Eurotronic
{
zigbeeModel: ['SPZB0001'],
model: 'SPZB0001',
vendor: 'Eurotronic',
description: 'Spirit Zigbee wireless heater thermostat',
supports: 'temperature, heating system control',
fromZigbee: [
fz.thermostat_dev_change,
fz.eurotronic_thermostat_dev_change,
fz.ignore_thermostat_report, fz.hue_battery, fz.ignore_power_change,
],
toZigbee: [
tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
tz.thermostat_local_temperature_calibration, tz.thermostat_system_mode,
tz.eurotronic_system_mode, tz.eurotronic_error_status, tz.thermostat_setpoint_raise_lower,
tz.thermostat_control_sequence_of_operation, tz.thermostat_remote_sensing,
tz.eurotronic_current_heating_setpoint, tz.eurotronic_trv_mode, tz.eurotronic_valve_position,
],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('hvacThermostat', coordinator, cb),
(cb) => device.report('hvacThermostat', 'localTemp', 1, 1200, 25, cb),
(cb) => device.foundation('hvacThermostat', 'configReport', [{
direction: 0, attrId: 0x4003, dataType: 41, minRepIntval: 0,
maxRepIntval: 600, repChange: 25}], {manufSpec: 1, manufCode: 4151}, cb),
];
execute(device, actions, callback);
},
},
// Livolo
{
zigbeeModel: ['TI0001 '],
model: 'TI0001',
description:
'Zigbee switch (1 and 2 gang) ' +
'[work in progress](https://github.com/Koenkk/zigbee2mqtt/issues/592)',
vendor: 'Livolo',
supports: 'on/off',
fromZigbee: [fz.ignore_onoff_report, fz.livolo_switch_dev_change],
toZigbee: [tz.livolo_switch_on_off],
},
// Bosch
{
zigbeeModel: ['RFDL-ZB-MS'],
model: 'RADON TriTech ZB',
vendor: 'Bosch',
description: 'Wireless motion detector',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.generic_batteryvoltage_3000_2500,
fz.ignore_power_change, fz.bosch_ias_zone_motion_status_change, fz.ignore_iaszone_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('msTemperatureMeasurement', 'measuredValue', 60, 58000, 1, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', 1800, 3600, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['ISW-ZPR1-WP13'],
model: 'ISW-ZPR1-WP13',
vendor: 'Bosch',
description: 'Motion sensor',
supports: 'occupancy and temperature',
fromZigbee: [
fz.generic_temperature, fz.ignore_temperature_change, fz.ignore_power_change,
fz.generic_batteryvoltage_3000_2500, fz.bosch_ias_zone_motion_status_change,
fz.ignore_iaszone_report, fz.ignore_iaszone_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 5);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report(
'msTemperatureMeasurement', 'measuredValue', repInterval.MINUTE, repInterval.MAX, 0, cb
),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genPowerCfg', 'batteryVoltage', repInterval.HOUR, repInterval.MAX, cb),
];
execute(device, actions, callback);
},
},
// Immax
{
zigbeeModel: ['IM-Z3.0-DIM'],
model: 'IM-Z3.0-DIM',
vendor: 'Immax',
description: 'LED E14/230V C35 5W TB 440LM ZIGBEE DIM',
extend: generic.light_onoff_brightness,
},
// Yale
{
zigbeeModel: ['YRD446 BLE TSDB'],
model: 'YRD426NRSC',
vendor: 'Yale',
description: 'Assure lock',
supports: 'lock/unlock, battery',
fromZigbee: [fz.generic_lock, fz.battery_200],
toZigbee: [tz.generic_lock],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('closuresDoorLock', 'lockState', 0, repInterval.HOUR, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, repInterval.MAX, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['YRD226 TSDB'],
model: 'YRD226HA2619',
vendor: 'Yale',
description: 'Assure lock',
supports: 'lock/unlock, battery',
fromZigbee: [fz.generic_lock, fz.battery_200],
toZigbee: [tz.generic_lock],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('closuresDoorLock', 'lockState', 0, repInterval.HOUR, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, repInterval.MAX, 0, cb),
];
execute(device, actions, callback);
},
},
{
zigbeeModel: ['iZBModule01'],
model: 'YMF40',
vendor: 'Yale',
description: 'Real living lock',
supports: 'lock/unlock, battery',
fromZigbee: [fz.YMF40_lockstatus],
toZigbee: [tz.generic_lock],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('closuresDoorLock', 'lockState', 0, 3, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, 3, 0, cb),
];
execute(device, actions, callback);
},
},
// Keen Home
{
zigbeeModel: [
'SV01-410-MP-1.0', 'SV01-410-MP-1.1', 'SV01-410-MP-1.4', 'SV01-410-MP-1.5', 'SV01-412-MP-1.0',
'SV01-610-MP-1.0', 'SV01-612-MP-1.0',
],
model: 'SV01',
vendor: 'Keen Home',
description: 'Smart vent',
supports: 'open, close, position, temperature, pressure, battery',
fromZigbee: [
fz.cover_position,
fz.cover_position_report,
fz.generic_temperature,
fz.generic_temperature_change,
fz.generic_battery,
fz.generic_battery_change,
fz.keen_home_smart_vent_pressure,
fz.keen_home_smart_vent_pressure_report,
fz.ignore_onoff_change,
fz.ignore_onoff_report,
],
toZigbee: [
tz.cover_open_close,
tz.cover_position,
],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.bind('msPressureMeasurement', coordinator, cb),
// eslint-disable-next-line
// https://github.com/yracine/keenhome.device-type/blob/master/devicetypes/keensmartvent.src/keensmartvent.groovy
(cb) => device.report(
'msTemperatureMeasurement', 'measuredValue', repInterval.MINUTE * 2, repInterval.HOUR, 50, cb
),
(cb) => device.foundation(
'msPressureMeasurement',
'configReport',
[{
direction: 0, attrId: 32, dataType: 34, minRepIntval: repInterval.MINUTE * 5,
maxRepIntval: repInterval.HOUR, repChange: 500,
}],
{manufSpec: 1, manufCode: 4443},
cb
),
(cb) => device.report(
'genPowerCfg', 'batteryPercentageRemaining', repInterval.HOUR, repInterval.HOUR * 12, 0, cb
),
];
execute(device, actions, callback);
},
},
// AXIS
{
zigbeeModel: ['Gear'],
model: 'GR-ZB01-W',
vendor: 'AXIS',
description: 'Gear window shade motor',
supports: 'open, close, position, battery',
fromZigbee: [fz.cover_position, fz.cover_position_report, fz.generic_battery, fz.generic_battery_change],
toZigbee: [tz.cover_open_close, tz.cover_position],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.bind('genPowerCfg', coordinator, cb),
(cb) => device.report('genLevelCtrl', 'currentLevel', repInterval.MINUTE, repInterval.HOUR * 12, 0, cb),
(cb) => device.report(
'genPowerCfg', 'batteryPercentageRemaining', repInterval.HOUR, repInterval.HOUR * 12, 0, cb
),
];
execute(device, actions, callback);
},
},
// ELKO
{
zigbeeModel: ['ElkoDimmerZHA'],
model: '316GLEDRF',
vendor: 'ELKO',
description: 'ZigBee in-wall smart dimmer',
supports: 'on/off, brightness',
fromZigbee: [fz.brightness, fz.ignore_onoff_change, fz.state],
toZigbee: [tz.light_onoff_brightness, 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);
},
},
// LivingWise
{
zigbeeModel: ['abb71ca5fe1846f185cfbda554046cce'],
model: 'LVS-ZB500D',
vendor: 'LivingWise',
description: 'ZigBee smart dimmer switch',
supports: 'on/off, brightness',
toZigbee: [tz.light_onoff_brightness],
fromZigbee: [
fz.state, fz.brightness, fz.ignore_light_brightness_report, fz.ignore_onoff_change,
fz.ignore_genIdentify,
],
},
{
zigbeeModel: ['e70f96b3773a4c9283c6862dbafb6a99'],
model: 'LVS-SM10ZW',
vendor: 'LivingWise',
description: 'Door or window contact switch',
supports: 'contact',
fromZigbee: [fz.ias_contact_dev_change, fz.ias_contact_status_change],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 23}, cb),
];
execute(device, actions, callback);
},
},
// Stelpro
{
zigbeeModel: ['ST218'],
model: 'ST218',
vendor: 'Stelpro',
description: 'Built-in electronic thermostat',
supports: 'temperature ',
fromZigbee: [fz.thermostat_att_report, fz.thermostat_dev_change],
toZigbee: [
tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint,
],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 25);
const actions = [
(cb) => device.bind('genBasic', coordinator, cb),
(cb) => device.bind('genIdentify', coordinator, cb),
(cb) => device.bind('genGroups', coordinator, cb),
(cb) => device.bind('hvacThermostat', coordinator, cb),
(cb) => device.bind('hvacUserInterfaceCfg', coordinator, cb),
(cb) => device.bind('msTemperatureMeasurement', coordinator, cb),
(cb) => device.report('hvacThermostat', 'localTemp', 300, 3600, 0, cb),
];
execute(device, actions, callback);
},
},
// Nyce
{
zigbeeModel: ['3043'],
model: 'NCZ-3043-HA',
vendor: 'Nyce',
description: 'Motion sensor',
supports: 'motion, humidity and temperature',
fromZigbee: [
fz.generic_occupancy, fz.xiaomi_humidity, fz.generic_temperature, fz.ignore_basic_report,
fz.ignore_genIdentify, fz.ignore_basic_change, fz.ignore_poll_ctrl,
fz.generic_temperature_change, fz.generic_battery_change, fz.ignore_humidity_change,
fz.ignore_iaszone_change,
fz.ignore_poll_ctrl_change, fz.ignore_genIdentify_change, fz.ignore_iaszone_report,
fz.ias_zone_motion_status_change, fz.generic_battery, fz.generic_battery_change,
],
toZigbee: [],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.write('ssIasZone', 'iasCieAddr', coordinator.device.getIeeeAddr(), cb),
(cb) => device.functional('ssIasZone', 'enrollRsp', {enrollrspcode: 0, zoneid: 255}, cb),
];
execute(device, actions, callback);
},
},
// Securifi
{
zigbeeModel: ['PP-WHT-US'],
model: 'PP-WHT-US',
vendor: 'Securifi',
description: 'Peanut Smart Plug',
supports: 'on/off, power measurement',
fromZigbee: [fz.ignore_electrical_change, fz.state, fz.ignore_onoff_change],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const onOff = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const rmsCurrent = {
direction: 0, attrId: 1288, dataType: 33, minRepIntval: 0, maxRepIntval: 3, repChange: 0,
};
const electricalCfg = [rmsCurrent];
const actions = [
(cb) => device.foundation('genOnOff', 'configReport', [onOff], foundationCfg, cb),
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('haElectricalMeasurement', 'configReport', electricalCfg, foundationCfg, cb),
(cb) => device.bind('haElectricalMeasurement', coordinator, cb),
];
execute(device, actions, callback);
},
},
// Visonic
{
zigbeeModel: ['MCT-350 SMA'],
model: 'MCT-350 SMA',
vendor: 'Visonic',
description: 'Magnetic door & window contact sensor',
supports: 'contact',
fromZigbee: [fz.visonic_contact, fz.ignore_power_change],
toZigbee: [],
},
// Sunricher
{
zigbeeModel: ['ZG9101SAC-HP'],
model: 'ZG9101SAC-HP',
vendor: 'Sunricher',
description: 'ZigBee AC phase-cut dimmer',
extend: generic.light_onoff_brightness,
},
// Shenzhen Homa
{
zigbeeModel: ['HOMA1008'],
model: 'HLD812-Z-SC',
vendor: 'Shenzhen Homa',
description: 'Smart LED driver',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['HOMA1002'],
model: 'HLC610-Z',
vendor: 'Shenzhen Homa',
description: 'Wireless dimmable controller',
extend: generic.light_onoff_brightness,
},
{
zigbeeModel: ['HOMA1031'],
model: 'HLC821-Z-SC',
vendor: 'Shenzhen Homa',
description: 'ZigBee AC phase-cut dimmer',
extend: generic.light_onoff_brightness,
},
// Honyar
{
zigbeeModel: ['00500c35'],
model: 'U86K31ND6',
vendor: 'Honyar',
description: '3 gang switch ',
supports: 'on/off',
fromZigbee: [],
toZigbee: [tz.on_off],
ep: (device) => {
return {'left': 1, 'center': 2, 'right': 3};
},
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const ep1 = shepherd.find(ieeeAddr, 1);
const ep2 = shepherd.find(ieeeAddr, 2);
const ep3 = shepherd.find(ieeeAddr, 3);
const actions = [
(cb) => ep1.bind('genOnOff', coordinator, cb),
(cb) => ep1.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => ep2.bind('genOnOff', coordinator, cb),
(cb) => ep2.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
(cb) => ep3.bind('genOnOff', coordinator, cb),
(cb) => ep3.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(ep1, actions, callback);
},
},
// Danalock
{
zigbeeModel: ['V3-BTZB'],
model: 'V3-BTZB',
vendor: 'Danalock',
description: 'BT/ZB smartlock',
supports: 'lock/unlock, battery',
fromZigbee: [fz.generic_lock, fz.battery_200],
toZigbee: [tz.generic_lock],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.report('closuresDoorLock', 'lockState', 0, repInterval.HOUR, 0, cb),
(cb) => device.report('genPowerCfg', 'batteryPercentageRemaining', 0, repInterval.MAX, 0, cb),
];
execute(device, actions, callback);
},
},
// NET2GRID
{
zigbeeModel: ['SP31 '],
model: 'N2G-SP',
vendor: 'NET2GRID',
description: 'White Net2Grid power outlet switch with power meter',
supports: 'on/off, power and energy measurement',
fromZigbee: [
fz.genOnOff_cmdOn, fz.genOnOff_cmdOff, fz.state, fz.ignore_onoff_change,
fz.ignore_metering_change, fz.generic_power,
],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const ep1 = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => ep1.bind('genOnOff', coordinator, cb),
(cb) => ep1.report('genOnOff', 'onOff', 10, 30, 1, cb),
];
execute(ep1, actions, (result) => {
if (result) {
const ep10 = shepherd.find(ieeeAddr, 10);
const actions = [
(cb) => ep10.report('seMetering', 'instantaneousDemand', 10, 300, 10, cb),
(cb) => ep10.report('seMetering', 'currentSummDelivered', 10, 300, [0, 1], cb),
(cb) => ep10.report('seMetering', 'currentSummReceived', 10, 300, [0, 1], cb),
(cb) => ep10.read('seMetering', 'unitOfMeasure', cb),
(cb) => ep10.read('seMetering', 'multiplier', cb),
(cb) => ep10.read('seMetering', 'divisor', cb),
];
execute(ep10, actions, callback);
} else {
callback(result);
}
});
},
},
// Third Reality
{
zigbeeModel: ['3RSS008Z'],
model: '3RSS008Z',
vendor: 'Third Reality',
description: 'RealitySwitch Plus',
supports: 'on/off, battery',
fromZigbee: [
fz.ignore_onoff_change, fz.state, fz.ignore_genIdentify_change,
fz.ignore_basic_change,
],
toZigbee: [tz.on_off, tz.ignore_transition],
},
// Hampton Bay
{
zigbeeModel: ['HDC52EastwindFan'],
model: '99432',
vendor: 'Hampton Bay',
description: 'Universal wink enabled white ceiling fan premier remote control',
supports: 'on/off, brightness, fan_mode and fan_state',
fromZigbee: generic.light_onoff_brightness.fromZigbee.concat([
fz.ignore_fan_change, fz.generic_fan_mode,
]),
toZigbee: generic.light_onoff_brightness.toZigbee.concat([tz.fan_mode]),
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 1);
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.report('genOnOff', 'onOff', 0, 1000, 0, cb),
(cb) => device.bind('genLevelCtrl', coordinator, cb),
(cb) => device.report('genLevelCtrl', 'currentLevel', 0, 1000, 0, cb),
(cb) => device.bind('hvacFanCtrl', coordinator, cb),
(cb) => device.report('hvacFanCtrl', 'fanMode', 0, 1000, 0, cb),
];
execute(device, actions, callback);
},
},
// Iluminize
{
zigbeeModel: ['DIM Lighting'],
model: '511.10',
vendor: 'Iluminize',
description: 'Zigbee LED-Controller ',
extend: generic.light_onoff_brightness,
},
// Anchor
{
zigbeeModel: ['FB56-SKT17AC1.4'],
model: '67200BL',
description: 'Vetaar smart plug',
supports: 'on/off',
vendor: 'Anchor',
fromZigbee: [fz.ignore_onoff_change, fz.state],
toZigbee: [tz.on_off],
configure: (ieeeAddr, shepherd, coordinator, callback) => {
const device = shepherd.find(ieeeAddr, 3);
const cfg = {direction: 0, attrId: 0, dataType: 16, minRepIntval: 0, maxRepIntval: 1000, repChange: 0};
const actions = [
(cb) => device.bind('genOnOff', coordinator, cb),
(cb) => device.foundation('genOnOff', 'configReport', [cfg], foundationCfg, cb),
];
execute(device, actions, callback);
},
},
// GMY
{
zigbeeModel: ['CCT box'],
model: 'CCT box',
vendor: 'GMY Smart Bulb',
description: 'GMY Smart bulb, 470lm, vintage dimmable, 2700-6500k',
extend: generic.light_onoff_brightness_colortemp,
},
// Gira
{
zigbeeModel: [' Remote'],
model: '2430-100',
vendor: 'Gira',
description: 'ZigBee Light Link wall transmitter',
supports: 'action',
fromZigbee: [
fz.GIRA2430_scene_click, fz.GIRA2430_on_click, fz.GIRA2430_off_click, fz.GIRA2430_down_hold,
fz.GIRA2430_up_hold, fz.GIRA2430_stop,
],
toZigbee: [],
},
];
module.exports = devices.map((device) => device.extend ? Object.assign({}, device.extend, device) : device );
At the location of your devices.js
, do you also have converters/fromZigbee.js
and converters/toZigbee.js
? https://github.com/Koenkk/zigbee-shepherd-converters/tree/master/converters
I copied the suggested files too the path where the device.js is and now it pops up in the Z2M addon log and it reacts to commands which I publish with MQTT Explorer. But it is not popping up in Home Assistant as an entity. Tips are welcome.
that will be done once it's integrated, can you provide a link (url) for this device so I can do this? (e.g. where you can buy it)
Koenkk, thanks for all your support, highly appreciated. Below a link where I bought the lamps.
https://www.amazon.de/dp/B07KG5KF5R/ref=pe_3044161_185740101_TE_item
Great, will be supported in the edge version in a few hours!
Any ideas how to put this device into pairing mode?
p.s. I have HS2SK-E-UK
Great, will be supported in the edge version in a few hours!
Hello 👍 is it possible to support the GL-C-006? from gledopto its dimmer , i have tried everything and i cant do it It says "this device is not supported"
{ zigbeeModel: ['GL-C-006', 'GL-C-009'], model: 'GL-C-006/GL-C-009', vendor: 'Gledopto', description: 'Zigbee LED controller WW/CW Dimmer', extend: gledopto.light_onoff_brightness_colortemp, ep: (device) => { if (device.epList.toString() === '11,12,13') { return {'': 12}; } else if (device.epList.toString() === '10,11,13' || device.epList.toString() === '11,13') { return {'': 11}; } else { return {}; } },
@Nosstrom please share the data/database.db
entry of your device.
@Nosstrom please share the
data/database.db
entry of your device.
{"id":12,"type":"Router","ieeeAddr":"0x00124b001e13d5","nwkAddr":1744,"manufId":0,"manufName":"GLEDOPTO","powerSource":"Mains (single phase)","modelId":"GL-C-006S","epList":[11,13],"endpoints":{"11":{"profId":49246,"epId":11,"devId":544,"inClusterList":[0,3,4,5,6,8,768],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"GL-C-006S","manufacturerName":"GLEDOPTO","powerSource":1,"zclVersion":1,"appVersion":1,"stackVersion":2,"hwVersion":1,"dateCode":"20131206","swBuildId":"2.0.0"}}},"binds":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":544,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"meta":{}}},"appVersion":1,"stackVersion":2,"hwVersion":1,"dateCode":"20131206","swBuildId":"2.0.0","zclVersion":1,"interviewCompleted":true,"meta":{},"lastSeen":1601990366735}
{"id":13,"type":"Router","ieeeAddr":"0x00124b001ed01c","nwkAddr":46826,"manufId":0,"manufName":"GLEDOPTO","powerSource":"Mains (single phase)","modelId":"GL-C-006S","epList":[11,13],"endpoints":{"11":{"profId":49246,"epId":11,"devId":544,"inClusterList":[0,3,4,5,6,8,768],"outClusterList":[],"clusters":{"genBasic":{"attributes":{"modelId":"GL-C-006S","manufacturerName":"GLEDOPTO","powerSource":1,"zclVersion":1,"appVersion":1,"stackVersion":2,"hwVersion":1,"dateCode":"20131206","swBuildId":"2.0.0"}}},"binds":[],"meta":{}},"13":{"profId":49246,"epId":13,"devId":544,"inClusterList":[4096],"outClusterList":[4096],"clusters":{},"binds":[],"meta":{}}},"appVersion":1,"stackVersion":2,"hwVersion":1,"dateCode":"20131206","swBuildId":"2.0.0","zclVersion":1,"interviewCompleted":true,"meta":{},"lastSeen":1601990366741}
this is the devices which are paired but not supported.
Added, Changes will be available in the latest dev branch tomorrow (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)
Added, Changes will be available in the latest dev branch tomorrow (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)
thank you so much for the ultra fast reply.I apreciate it! when will be this supported to the non edge version?
On the next release (1 november)
Perfect!!! No problem, the only thing that matters is planning to be supported even is the next month.
On the next release (1 november)
Perfect!!! No problem, the only thing that matters is that will be supported even next month.Thank you for this!!! So i will use the edge untill then. Is there anything else i can do or just enable edge and wait?
Just switch to edge
Just switch to edge
i made it work ..works but doesn't get state., if i switch it from the remote control doesn't get state....i used installation method in edge versio with "zigbee_shepherd_devices: true" into conf.yaml and copy and paste the devices.js file of the latest release into the share/zigbee2mqtt folder after pairing and and 2 restart worked. and ofcourse linkquality doesnt work
@Nosstrom use the report feature: https://www.zigbee2mqtt.io/information/report.html
First of all I hope I can ask overhere for help. I'm trying to add a nice vintage, zigbee certified, led light from the manufacturer GMY. www.gmysmart.com but i'm getting an error. I'm using a 2531CC stick with the latest firmware 20190425 on a HASSIO system with software level 92.1. The zigbee2mqtt addon is version 1.3.1. The modelID is 'CCT box'
Below the logs, configs and error log. Could someone check what i'm doing wrong.
HASSIO z2m log: zigbee2mqtt:warn 5/20/2019, 7:13:23 PM Message without device! zigbee2mqtt:warn 5/20/2019, 7:13:25 PM Device with modelID 'undefined' is not supported. zigbee2mqtt:warn 5/20/2019, 7:13:25 PM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html zigbee2mqtt:info 5/20/2019, 7:13:26 PM Device incoming... zigbee2mqtt:info 5/20/2019, 7:13:26 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"device incoming"}' zigbee2mqtt:warn 5/20/2019, 7:13:26 PM Device with modelID 'CCT box' is not supported. zigbee2mqtt:warn 5/20/2019, 7:13:26 PM Please see: https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html zigbee2mqtt:warn 5/20/2019, 7:13:26 PM Device with modelID 'CCT box' is not supported.
database: {"id":5,"type":"Router","ieeeAddr":"0x00158d00013ea369","nwkAddr":31557,"manufId":4151,"epList":[1],"status":"online","joinTime":1558372007,"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,768,4096,4111],"outClusterList":[0,3,4,5,6,8,25,768,4096,4111],"clusters":{}}},"_id":"dfK1W26bTZuJ8ErI"} {"id":5,"type":"Router","ieeeAddr":"0x00158d00013ea369","nwkAddr":31557,"manufId":4151,"epList":[1],"status":"online","joinTime":1558372007,"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,768,4096,4111],"outClusterList":[0,3,4,5,6,8,25,768,4096,4111],"clusters":{"4111":{"dir":{"value":3},"attrs":{}},"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":3},"attrs":{}},"genScenes":{"dir":{"value":3},"attrs":{}},"genOnOff":{"dir":{"value":3},"attrs":{}},"genLevelCtrl":{"dir":{"value":3},"attrs":{}},"genOta":{"dir":{"value":2},"attrs":{}},"lightingColorCtrl":{"dir":{"value":3},"attrs":{}},"lightLink":{"dir":{"value":3},"attrs":{}}}}},"_id":"dfK1W26bTZuJ8ErI"} {"$$deleted":true,"_id":"dfK1W26bTZuJ8ErI"} {"id":5,"type":"Router","ieeeAddr":"0x00158d00013ea369","nwkAddr":54013,"manufId":4151,"epList":[1],"status":"online","joinTime":1558372404,"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,768,4096,4111],"outClusterList":[0,3,4,5,6,8,25,768,4096,4111],"clusters":{}}},"_id":"ezauSfP3ZUs0QRu9"} {"id":5,"type":"Router","ieeeAddr":"0x00158d00013ea369","nwkAddr":54013,"manufId":4151,"manufName":"ZB/GMY-CCT","powerSource":"Mains (single phase)","modelId":"CCT box","epList":[1],"status":"online","joinTime":1558372404,"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,768,4096,4111],"outClusterList":[0,3,4,5,6,8,25,768,4096,4111],"clusters":{}}},"_id":"ezauSfP3ZUs0QRu9"} {"id":5,"type":"Router","ieeeAddr":"0x00158d00013ea369","nwkAddr":54013,"manufId":4151,"manufName":"ZB/GMY-CCT","powerSource":"Mains (single phase)","modelId":"CCT box","epList":[1],"status":"online","joinTime":1558372404,"endpoints":{"1":{"profId":260,"epId":1,"devId":257,"inClusterList":[0,3,4,5,6,8,768,4096,4111],"outClusterList":[0,3,4,5,6,8,25,768,4096,4111],"clusters":{"4111":{"dir":{"value":3},"attrs":{}},"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":3},"attrs":{}},"genGroups":{"dir":{"value":3},"attrs":{}},"genScenes":{"dir":{"value":3},"attrs":{}},"genOnOff":{"dir":{"value":3},"attrs":{}},"genLevelCtrl":{"dir":{"value":3},"attrs":{}},"genOta":{"dir":{"value":2},"attrs":{}},"lightingColorCtrl":{"dir":{"value":3},"attrs":{}},"lightLink":{"dir":{"value":3},"attrs":{}}}}},"_id":"ezauSfP3ZUs0QRu9"}
configuration.yaml devices: '0x000b57fffee82d28': friendly_name: Ikea-Lamp1 retain: false '0x00158d00021646c8': friendly_name: DoorswitchXD1 retain: false '0x00158d0002b7586d': friendly_name: PIR1 retain: false '0x00158d00013ea369': friendly_name: '0x00158d00013ea369' retain: false
hassio addon config: { "data_path": "/share/zigbee2mqtt", "homeassistant": true, "permit_join": false, "mqtt_base_topic": "zigbee2mqtt", "mqtt_server": "mqtt://homeassistant:1883", "serial_port": "/dev/ttyACM0", "devices": [], "network_key": [], "mqtt_user": "XXXXX", "mqtt_pass": "XXXXX", "zigbee_shepherd_devices": true }
added to devices.js // GMY { zigbeeModel: ['CCT box'], model: 'CCT box', vendor: 'GMY Smart Bulb', description: 'GMY Smart bulb, 470lm, vintage dimmable, 2700-6500k', extend: generic.light_onoff_brightness_colortemp, },
errorlog addon: '{"version":"1.3.1","commit":"unknown","coordinator_firmware":20190425,"log_level":"info","permit_join":false}' /zigbee2mqtt-1.3.1/lib/extension/deviceReceive.js:109 if (c.cid === cid) { ^ TypeError: Cannot read property 'cid' of undefined at mappedDevice.fromZigbee.filter (/zigbee2mqtt-1.3.1/lib/extension/deviceReceive.js:109:23) at Array.filter ()
at DeviceReceive.onZigbeeMessage (/zigbee2mqtt-1.3.1/lib/extension/deviceReceive.js:105:52)
at extensions.filter.forEach (/zigbee2mqtt-1.3.1/lib/controller.js:145:31)
at Array.forEach ()
at Controller.onZigbeeMessage (/zigbee2mqtt-1.3.1/lib/controller.js:145:14)
at Zigbee.onMessage (/zigbee2mqtt-1.3.1/lib/zigbee.js:224:18)
at ZShepherd.emit (events.js:182:13)
at ZShepherd. (/zigbee2mqtt-1.3.1/node_modules/zigbee-shepherd/lib/shepherd.js:170:14)
at ZShepherd.emit (events.js:182:13)
npm ERR! code
ELIFECYCLE
npm
ERR! errno 1
npm ERR! zigbee2mqtt@1.3.1 start:
node index.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zigbee2mqtt@1.3.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-05-20T18_15_19_712Z-debug.log 2019-05-20T20:15:22: PM2 log: App [npm:0] exited with code [1] via signal [SIGINT] 2019-05-20T20:15:22: PM2 log: App [npm:0] starting in -fork mode- 2019-05-20T20:15:22: PM2 log: App [npm:0] online