@willieee802/zigbee-herdsman-converters 15.0.8-4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/converters/fromZigbee.js +8439 -0
- package/converters/toZigbee.js +7162 -0
- package/devices/ITCommander.js +37 -0
- package/devices/RMC002.js +20 -0
- package/devices/acova.js +101 -0
- package/devices/acuity_brands_lighting.js +11 -0
- package/devices/adeo.js +256 -0
- package/devices/adurosmart.js +130 -0
- package/devices/aeotec.js +13 -0
- package/devices/airam.js +59 -0
- package/devices/ajax_online.js +49 -0
- package/devices/akuvox.js +28 -0
- package/devices/alchemy.js +18 -0
- package/devices/aldi.js +53 -0
- package/devices/alecto.js +98 -0
- package/devices/anchor.js +17 -0
- package/devices/atlantic.js +110 -0
- package/devices/atsmart.js +28 -0
- package/devices/aubess.js +21 -0
- package/devices/aurora_lighting.js +292 -0
- package/devices/automaton.js +44 -0
- package/devices/awox.js +184 -0
- package/devices/axis.js +22 -0
- package/devices/bankamp.js +11 -0
- package/devices/bega.js +22 -0
- package/devices/belkin.js +11 -0
- package/devices/bitron.js +334 -0
- package/devices/blaupunkt.js +27 -0
- package/devices/blitzwolf.js +47 -0
- package/devices/bosch.js +702 -0
- package/devices/brimate.js +15 -0
- package/devices/bseed.js +17 -0
- package/devices/bticino.js +118 -0
- package/devices/busch-jaeger.js +140 -0
- package/devices/byun.js +24 -0
- package/devices/calex.js +37 -0
- package/devices/candeo.js +49 -0
- package/devices/casaia.js +52 -0
- package/devices/centralite.js +359 -0
- package/devices/cleode.js +20 -0
- package/devices/cleverio.js +36 -0
- package/devices/climax.js +138 -0
- package/devices/commercial_electric.js +16 -0
- package/devices/connecte.js +46 -0
- package/devices/cree.js +11 -0
- package/devices/ctm.js +999 -0
- package/devices/current_products_corp.js +24 -0
- package/devices/custom_devices_diy.js +850 -0
- package/devices/cy-lighting.js +11 -0
- package/devices/danalock.js +26 -0
- package/devices/danfoss.js +340 -0
- package/devices/databyte.ch.js +55 -0
- package/devices/datek.js +246 -0
- package/devices/dawon_dns.js +338 -0
- package/devices/develco.js +868 -0
- package/devices/digi.js +14 -0
- package/devices/diyruz.js +305 -0
- package/devices/dlink.js +37 -0
- package/devices/dnake.js +11 -0
- package/devices/dresden_elektronik.js +47 -0
- package/devices/easyaccess.js +27 -0
- package/devices/eatonhalo_led.js +11 -0
- package/devices/echostar.js +25 -0
- package/devices/ecodim.js +145 -0
- package/devices/ecolink.js +21 -0
- package/devices/ecosmart.js +64 -0
- package/devices/ecozy.js +31 -0
- package/devices/edp.js +39 -0
- package/devices/eglo.js +25 -0
- package/devices/elko.js +176 -0
- package/devices/enbrighten.js +163 -0
- package/devices/enocean.js +52 -0
- package/devices/envilar.js +73 -0
- package/devices/essentialb.js +87 -0
- package/devices/eurotronic.js +48 -0
- package/devices/evanell.js +29 -0
- package/devices/evn.js +31 -0
- package/devices/evology.js +24 -0
- package/devices/evvr.js +17 -0
- package/devices/ewelink.js +184 -0
- package/devices/ezex.js +24 -0
- package/devices/fantem.js +77 -0
- package/devices/feibit.js +172 -0
- package/devices/fireangel.js +15 -0
- package/devices/frankever.js +23 -0
- package/devices/garza.js +11 -0
- package/devices/ge.js +111 -0
- package/devices/gewiss.js +48 -0
- package/devices/gidealed.js +11 -0
- package/devices/giderwel.js +11 -0
- package/devices/giex.js +222 -0
- package/devices/girier.js +19 -0
- package/devices/gledopto.js +756 -0
- package/devices/gmy.js +11 -0
- package/devices/gs.js +29 -0
- package/devices/halemeier.js +18 -0
- package/devices/hampton_bay.js +37 -0
- package/devices/heiman.js +805 -0
- package/devices/hej.js +107 -0
- package/devices/hfh.js +11 -0
- package/devices/hgkg.js +54 -0
- package/devices/hilux.js +11 -0
- package/devices/hive.js +524 -0
- package/devices/home_control_as.js +27 -0
- package/devices/hommyn.js +24 -0
- package/devices/honyar.js +29 -0
- package/devices/hornbach.js +53 -0
- package/devices/hzc.js +21 -0
- package/devices/hzc_electric.js +42 -0
- package/devices/icasa.js +121 -0
- package/devices/idinio.js +19 -0
- package/devices/ihorn.js +61 -0
- package/devices/ikea.js +1168 -0
- package/devices/ilightsin.js +11 -0
- package/devices/iluminize.js +262 -0
- package/devices/ilux.js +11 -0
- package/devices/immax.js +203 -0
- package/devices/innr.js +705 -0
- package/devices/inovelli.js +1315 -0
- package/devices/insta.js +110 -0
- package/devices/iolloi.js +20 -0
- package/devices/iotperfect.js +20 -0
- package/devices/iris.js +180 -0
- package/devices/istar.js +20 -0
- package/devices/jasco.js +55 -0
- package/devices/javis.js +37 -0
- package/devices/jethome.js +48 -0
- package/devices/jiawen.js +18 -0
- package/devices/jumitech.js +18 -0
- package/devices/jxuan.js +49 -0
- package/devices/kami.js +15 -0
- package/devices/keen_home.js +80 -0
- package/devices/klikaanklikuit.js +17 -0
- package/devices/kmpcil.js +148 -0
- package/devices/konke.js +141 -0
- package/devices/ksentry.js +17 -0
- package/devices/kurvia.js +17 -0
- package/devices/kwikset.js +120 -0
- package/devices/lanesto.js +11 -0
- package/devices/lds.js +11 -0
- package/devices/led_trading.js +69 -0
- package/devices/ledvance.js +353 -0
- package/devices/leedarson.js +130 -0
- package/devices/legrand.js +554 -0
- package/devices/lellki.js +146 -0
- package/devices/letsled.js +11 -0
- package/devices/letv.js +18 -0
- package/devices/leviton.js +142 -0
- package/devices/lg.js +18 -0
- package/devices/lidl.js +1000 -0
- package/devices/lifecontrol.js +92 -0
- package/devices/lightsolutions.js +37 -0
- package/devices/linkind.js +205 -0
- package/devices/livingwise.js +59 -0
- package/devices/livolo.js +286 -0
- package/devices/lixee.js +779 -0
- package/devices/lonsonho.js +218 -0
- package/devices/lubeez.js +18 -0
- package/devices/lupus.js +74 -0
- package/devices/lutron.js +32 -0
- package/devices/lux.js +40 -0
- package/devices/m-elec.js +18 -0
- package/devices/makegood.js +51 -0
- package/devices/matcall_bv.js +18 -0
- package/devices/meazon.js +47 -0
- package/devices/mercator.js +225 -0
- package/devices/miboxer.js +72 -0
- package/devices/micromatic.js +29 -0
- package/devices/moes.js +400 -0
- package/devices/mycket.js +11 -0
- package/devices/m/303/274ller_licht.js +220 -0
- package/devices/namron.js +774 -0
- package/devices/nanoleaf.js +11 -0
- package/devices/neo.js +86 -0
- package/devices/net2grid.js +29 -0
- package/devices/netvox.js +35 -0
- package/devices/niko.js +314 -0
- package/devices/ninja_blocks.js +24 -0
- package/devices/niviss.js +11 -0
- package/devices/nodon.js +109 -0
- package/devices/nordtronic.js +30 -0
- package/devices/nous.js +88 -0
- package/devices/novo.js +17 -0
- package/devices/nue_3a.js +417 -0
- package/devices/nyce.js +67 -0
- package/devices/onesti.js +59 -0
- package/devices/openlumi.js +22 -0
- package/devices/orvibo.js +515 -0
- package/devices/osram.js +519 -0
- package/devices/oujiabao.js +15 -0
- package/devices/owon.js +352 -0
- package/devices/ozsmartthings.js +11 -0
- package/devices/paul_neuhaus.js +96 -0
- package/devices/paulmann.js +158 -0
- package/devices/peq.js +24 -0
- package/devices/perenio.js +413 -0
- package/devices/philips.js +3118 -0
- package/devices/plaid.js +25 -0
- package/devices/plugwise.js +173 -0
- package/devices/popp.js +10 -0
- package/devices/profalux.js +47 -0
- package/devices/prolight.js +54 -0
- package/devices/qmotion.js +33 -0
- package/devices/qoto.js +113 -0
- package/devices/quotra.js +18 -0
- package/devices/rademacher.js +18 -0
- package/devices/rgb_genie.js +119 -0
- package/devices/robb.js +335 -0
- package/devices/roome.js +15 -0
- package/devices/rtx.js +90 -0
- package/devices/salus_controls.js +137 -0
- package/devices/samotech.js +93 -0
- package/devices/saswell.js +58 -0
- package/devices/scanproducts.js +32 -0
- package/devices/schlage.js +24 -0
- package/devices/schneider_electric.js +1039 -0
- package/devices/schwaiger.js +62 -0
- package/devices/seastar_intelligence.js +16 -0
- package/devices/securifi.js +39 -0
- package/devices/sengled.js +332 -0
- package/devices/sercomm.js +140 -0
- package/devices/shenzhen_homa.js +53 -0
- package/devices/shinasystem.js +686 -0
- package/devices/siglis.js +440 -0
- package/devices/sinope.js +1257 -0
- package/devices/siterwell.js +46 -0
- package/devices/skydance.js +112 -0
- package/devices/slv.js +27 -0
- package/devices/smart9.js +27 -0
- package/devices/smart_home_pty.js +18 -0
- package/devices/smartenit.js +42 -0
- package/devices/smartthings.js +495 -0
- package/devices/smartwings.js +24 -0
- package/devices/sohan_electric.js +13 -0
- package/devices/solaredge.js +11 -0
- package/devices/somgoms.js +47 -0
- package/devices/sonoff.js +262 -0
- package/devices/spotmau.js +36 -0
- package/devices/sprut.js +317 -0
- package/devices/stelpro.js +216 -0
- package/devices/sunricher.js +625 -0
- package/devices/swann.js +33 -0
- package/devices/sylvania.js +200 -0
- package/devices/tci.js +25 -0
- package/devices/technicolor.js +47 -0
- package/devices/terncy.js +64 -0
- package/devices/the_light_group.js +70 -0
- package/devices/third_reality.js +195 -0
- package/devices/titan_products.js +22 -0
- package/devices/tplink.js +42 -0
- package/devices/trust.js +114 -0
- package/devices/tubeszb.js +20 -0
- package/devices/tuya.js +4215 -0
- package/devices/ubisys.js +938 -0
- package/devices/uhome.js +25 -0
- package/devices/universal_electronics_inc.js +119 -0
- package/devices/urlighting.js +12 -0
- package/devices/useelink.js +52 -0
- package/devices/vbled.js +18 -0
- package/devices/vesternet.js +188 -0
- package/devices/viessmann.js +51 -0
- package/devices/villeroy_boch.js +18 -0
- package/devices/vimar.js +78 -0
- package/devices/visonic.js +80 -0
- package/devices/vrey.js +18 -0
- package/devices/wally.js +25 -0
- package/devices/waxman.js +45 -0
- package/devices/weiser.js +67 -0
- package/devices/weten.js +13 -0
- package/devices/wisdom.js +11 -0
- package/devices/woox.js +177 -0
- package/devices/wyze.js +23 -0
- package/devices/xiaomi.js +3223 -0
- package/devices/xinghuoyuan.js +11 -0
- package/devices/yale.js +227 -0
- package/devices/ynoa.js +68 -0
- package/devices/yookee.js +23 -0
- package/devices/ysrsai.js +26 -0
- package/devices/zemismart.js +254 -0
- package/devices/zen.js +34 -0
- package/devices/zipato.js +11 -0
- package/index.js +242 -0
- package/lib/color.js +784 -0
- package/lib/configureKey.js +944 -0
- package/lib/constants.js +316 -0
- package/lib/exposes.js +677 -0
- package/lib/extend.js +180 -0
- package/lib/kelvinToXy.js +1912 -0
- package/lib/legacy.js +2223 -0
- package/lib/light.js +111 -0
- package/lib/ota/OTA_URLs.md +119 -0
- package/lib/ota/common.js +476 -0
- package/lib/ota/index.js +10 -0
- package/lib/ota/inovelli.js +72 -0
- package/lib/ota/ledvance.js +52 -0
- package/lib/ota/lixee.js +57 -0
- package/lib/ota/salus.js +82 -0
- package/lib/ota/securifi.js +25 -0
- package/lib/ota/tradfri.js +45 -0
- package/lib/ota/ubisys.js +61 -0
- package/lib/ota/zigbeeOTA.js +161 -0
- package/lib/philips.js +667 -0
- package/lib/reporting.js +234 -0
- package/lib/store.js +57 -0
- package/lib/tuya.js +2027 -0
- package/lib/utils.js +527 -0
- package/lib/xiaomi.d.ts +11 -0
- package/lib/xiaomi.js +1288 -0
- package/lib/zosung.js +243 -0
- package/package.json +39 -0
package/devices/digi.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module.exports = [
|
|
2
|
+
{
|
|
3
|
+
fingerprint: [{type: 'Router', manufacturerID: 4126, endpoints: [
|
|
4
|
+
{ID: 230, profileID: 49413, deviceID: 1, inputClusters: [], outputClusters: []},
|
|
5
|
+
{ID: 232, profileID: 49413, deviceID: 1, inputClusters: [], outputClusters: []},
|
|
6
|
+
]}],
|
|
7
|
+
model: 'XBee',
|
|
8
|
+
description: 'Router',
|
|
9
|
+
vendor: 'Digi',
|
|
10
|
+
fromZigbee: [],
|
|
11
|
+
toZigbee: [],
|
|
12
|
+
exposes: [],
|
|
13
|
+
},
|
|
14
|
+
];
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const constants = require('../lib/constants');
|
|
5
|
+
const reporting = require('../lib/reporting');
|
|
6
|
+
const extend = require('../lib/extend');
|
|
7
|
+
const e = exposes.presets;
|
|
8
|
+
const ea = exposes.access;
|
|
9
|
+
|
|
10
|
+
module.exports = [
|
|
11
|
+
{
|
|
12
|
+
zigbeeModel: ['DIYRuZ_R4_5'],
|
|
13
|
+
model: 'DIYRuZ_R4_5',
|
|
14
|
+
vendor: 'DIYRuZ',
|
|
15
|
+
description: '[DiY 4 Relays + 4 switches + 1 buzzer](http://modkam.ru/?p=1054)',
|
|
16
|
+
extend: extend.switch(),
|
|
17
|
+
exposes: [e.switch().withEndpoint('bottom_left'), e.switch().withEndpoint('bottom_right'),
|
|
18
|
+
e.switch().withEndpoint('top_left'), e.switch().withEndpoint('top_right'), e.switch().withEndpoint('center')],
|
|
19
|
+
meta: {multiEndpoint: true},
|
|
20
|
+
endpoint: (device) => {
|
|
21
|
+
return {'bottom_left': 1, 'bottom_right': 2, 'top_left': 3, 'top_right': 4, 'center': 5};
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
zigbeeModel: ['DIYRuZ_KEYPAD20'],
|
|
26
|
+
model: 'DIYRuZ_KEYPAD20',
|
|
27
|
+
vendor: 'DIYRuZ',
|
|
28
|
+
description: '[DiY 20 button keypad](http://modkam.ru/?p=1114)',
|
|
29
|
+
fromZigbee: [fz.keypad20states, fz.keypad20_battery],
|
|
30
|
+
toZigbee: [],
|
|
31
|
+
exposes: [e.battery()],
|
|
32
|
+
endpoint: (device) => {
|
|
33
|
+
return {
|
|
34
|
+
btn_1: 1, btn_2: 2, btn_3: 3, btn_4: 4, btn_5: 5, btn_6: 6, btn_7: 7, btn_8: 8, btn_9: 9, btn_10: 10,
|
|
35
|
+
btn_11: 11, btn_12: 12, btn_13: 13, btn_14: 14, btn_15: 15, btn_16: 16, btn_17: 17, btn_18: 18, btn_19: 19, btn_20: 20,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
zigbeeModel: ['DIYRuZ_magnet'],
|
|
41
|
+
model: 'DIYRuZ_magnet',
|
|
42
|
+
vendor: 'DIYRuZ',
|
|
43
|
+
description: '[DIYRuZ contact sensor](https://modkam.ru/?p=1220)',
|
|
44
|
+
fromZigbee: [fz.keypad20_battery, fz.diyruz_contact],
|
|
45
|
+
exposes: [e.battery(), e.contact()],
|
|
46
|
+
toZigbee: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
zigbeeModel: ['DIYRuZ_rspm'],
|
|
50
|
+
model: 'DIYRuZ_rspm',
|
|
51
|
+
vendor: 'DIYRuZ',
|
|
52
|
+
description: '[DIYRuZ relay switch power meter](https://modkam.ru/?p=1309)',
|
|
53
|
+
fromZigbee: [fz.diyruz_rspm],
|
|
54
|
+
toZigbee: [tz.on_off],
|
|
55
|
+
exposes: [e.switch(), e.power(), e.current(), e.cpu_temperature(), e.action(['hold', 'release'])],
|
|
56
|
+
endpoint: (device) => {
|
|
57
|
+
return {default: 8};
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
zigbeeModel: ['DIYRuZ_FreePad', 'FreePadLeTV8'],
|
|
62
|
+
model: 'DIYRuZ_FreePad',
|
|
63
|
+
vendor: 'DIYRuZ',
|
|
64
|
+
description: '[DiY 8/12/20 button keypad](http://modkam.ru/?p=1114)',
|
|
65
|
+
fromZigbee: [fz.diyruz_freepad_clicks, fz.diyruz_freepad_config, fz.battery],
|
|
66
|
+
exposes: [e.battery(),
|
|
67
|
+
e.action(['*_single', '*_double', '*_triple', '*_quadruple', '*_release', '*_hold'])].concat(((enpoinsCount) => {
|
|
68
|
+
const features = [];
|
|
69
|
+
for (let i = 1; i <= enpoinsCount; i++) {
|
|
70
|
+
const epName = `button_${i}`;
|
|
71
|
+
features.push(
|
|
72
|
+
exposes.enum('switch_type', ea.ALL, ['toggle', 'momentary', 'multifunction']).withEndpoint(epName));
|
|
73
|
+
features.push(exposes.enum('switch_actions', ea.ALL, ['on', 'off', 'toggle']).withEndpoint(epName));
|
|
74
|
+
}
|
|
75
|
+
return features;
|
|
76
|
+
})(20)),
|
|
77
|
+
toZigbee: [tz.diyruz_freepad_on_off_config],
|
|
78
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
79
|
+
const endpoint = device.getEndpoint(1);
|
|
80
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
81
|
+
if (device.applicationVersion < 3) { // Legacy PM2 firmwares
|
|
82
|
+
const payload = [{
|
|
83
|
+
attribute: 'batteryPercentageRemaining', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0,
|
|
84
|
+
}, {
|
|
85
|
+
attribute: 'batteryVoltage', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0,
|
|
86
|
+
}];
|
|
87
|
+
await endpoint.configureReporting('genPowerCfg', payload);
|
|
88
|
+
}
|
|
89
|
+
device.endpoints.forEach(async (ep) => {
|
|
90
|
+
if (ep.outputClusters.includes(18)) {
|
|
91
|
+
await reporting.bind(ep, coordinatorEndpoint, ['genMultistateInput']);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
endpoint: (device) => {
|
|
96
|
+
return {
|
|
97
|
+
button_1: 1, button_2: 2, button_3: 3, button_4: 4, button_5: 5,
|
|
98
|
+
button_6: 6, button_7: 7, button_8: 8, button_9: 9, button_10: 10,
|
|
99
|
+
button_11: 11, button_12: 12, button_13: 13, button_14: 14, button_15: 15,
|
|
100
|
+
button_16: 16, button_17: 17, button_18: 18, button_19: 19, button_20: 20,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
zigbeeModel: ['FreePad_LeTV_8'],
|
|
106
|
+
model: 'FreePad_LeTV_8',
|
|
107
|
+
vendor: 'DIYRuZ',
|
|
108
|
+
description: '[LeTV 8key FreePad mod](https://modkam.ru/?p=1791)',
|
|
109
|
+
fromZigbee: [fz.diyruz_freepad_clicks, fz.diyruz_freepad_config, fz.battery],
|
|
110
|
+
exposes: [e.battery(), e.action(['*_single', '*_double', '*_triple', '*_quadruple', '*_release'])].concat(((enpoinsCount) => {
|
|
111
|
+
const features = [];
|
|
112
|
+
for (let i = 1; i <= enpoinsCount; i++) {
|
|
113
|
+
const epName = `button_${i}`;
|
|
114
|
+
features.push(
|
|
115
|
+
exposes.enum('switch_type', ea.ALL, ['toggle', 'momentary', 'multifunction']).withEndpoint(epName));
|
|
116
|
+
features.push(exposes.enum('switch_actions', ea.ALL, ['on', 'off', 'toggle']).withEndpoint(epName));
|
|
117
|
+
}
|
|
118
|
+
return features;
|
|
119
|
+
})(8)),
|
|
120
|
+
toZigbee: [tz.diyruz_freepad_on_off_config],
|
|
121
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
122
|
+
const endpoint = device.getEndpoint(1);
|
|
123
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
124
|
+
if (device.applicationVersion < 3) { // Legacy PM2 firmwares
|
|
125
|
+
const payload = [{
|
|
126
|
+
attribute: 'batteryPercentageRemaining', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0,
|
|
127
|
+
}, {
|
|
128
|
+
attribute: 'batteryVoltage', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0,
|
|
129
|
+
}];
|
|
130
|
+
await endpoint.configureReporting('genPowerCfg', payload);
|
|
131
|
+
}
|
|
132
|
+
device.endpoints.forEach(async (ep) => {
|
|
133
|
+
if (ep.outputClusters.includes(18)) {
|
|
134
|
+
await reporting.bind(ep, coordinatorEndpoint, ['genMultistateInput']);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
endpoint: (device) => {
|
|
139
|
+
return {button_1: 1, button_2: 2, button_3: 3, button_4: 4, button_5: 5, button_6: 6, button_7: 7, button_8: 8};
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
zigbeeModel: ['DIYRuZ_Geiger'],
|
|
144
|
+
model: 'DIYRuZ_Geiger',
|
|
145
|
+
vendor: 'DIYRuZ',
|
|
146
|
+
description: '[DiY Geiger counter](https://modkam.ru/?p=1591)',
|
|
147
|
+
fromZigbee: [fz.diyruz_geiger, fz.command_on, fz.command_off, fz.diyruz_geiger_config],
|
|
148
|
+
exposes: [e.action(['on', 'off']),
|
|
149
|
+
exposes.numeric('radioactive_events_per_minute', ea.STATE).withUnit('rpm')
|
|
150
|
+
.withDescription('Current count radioactive pulses per minute'),
|
|
151
|
+
exposes.numeric('radiation_dose_per_hour', ea.STATE).withUnit('μR/h').withDescription('Current radiation level'),
|
|
152
|
+
exposes.binary('led_feedback', ea.ALL, 'ON', 'OFF').withDescription('Enable LED feedback'),
|
|
153
|
+
exposes.binary('buzzer_feedback', ea.ALL, 'ON', 'OFF').withDescription('Enable buzzer feedback'),
|
|
154
|
+
exposes.numeric('alert_threshold', ea.ALL).withUnit('μR/h').withDescription('Critical radiation level')
|
|
155
|
+
.withValueMin(0).withValueMax(10000),
|
|
156
|
+
exposes.enum('sensors_type', ea.ALL, ['СБМ-20/СТС-5/BOI-33', 'СБМ-19/СТС-6', 'Others'])
|
|
157
|
+
.withDescription('Type of installed tubes'),
|
|
158
|
+
exposes.numeric('sensors_count', ea.ALL).withDescription('Count of installed tubes').withValueMin(0).withValueMax(50),
|
|
159
|
+
exposes.numeric('sensitivity', ea.ALL).withDescription('This is applicable if tubes type is set to other')
|
|
160
|
+
.withValueMin(0).withValueMax(100)],
|
|
161
|
+
toZigbee: [tz.diyruz_geiger_config],
|
|
162
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
163
|
+
const endpoint = device.getEndpoint(1);
|
|
164
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['msIlluminanceMeasurement', 'genOnOff']);
|
|
165
|
+
|
|
166
|
+
const payload = [
|
|
167
|
+
{attribute: {ID: 0xF001, type: 0x21}, minimumReportInterval: 0, maximumReportInterval: constants.repInterval.MINUTE,
|
|
168
|
+
reportableChange: 0},
|
|
169
|
+
{attribute: {ID: 0xF002, type: 0x23}, minimumReportInterval: 0, maximumReportInterval: constants.repInterval.MINUTE,
|
|
170
|
+
reportableChange: 0}];
|
|
171
|
+
await endpoint.configureReporting('msIlluminanceMeasurement', payload);
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
zigbeeModel: ['DIYRuZ_R8_8'],
|
|
176
|
+
model: 'DIYRuZ_R8_8',
|
|
177
|
+
vendor: 'DIYRuZ',
|
|
178
|
+
description: '[DiY 8 Relays + 8 switches](https://modkam.ru/?p=1638)',
|
|
179
|
+
fromZigbee: [fz.on_off, fz.ptvo_multistate_action, fz.legacy.ptvo_switch_buttons, fz.ignore_basic_report],
|
|
180
|
+
extend: extend.switch(),
|
|
181
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
182
|
+
e.switch().withEndpoint('l3'), e.switch().withEndpoint('l4'), e.switch().withEndpoint('l5'), e.switch().withEndpoint('l6'),
|
|
183
|
+
e.switch().withEndpoint('l7'), e.switch().withEndpoint('l8')],
|
|
184
|
+
meta: {multiEndpoint: true},
|
|
185
|
+
endpoint: (device) => {
|
|
186
|
+
return {
|
|
187
|
+
'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4, 'l5': 5, 'l6': 6, 'l7': 7, 'l8': 8,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
zigbeeModel: ['DIYRuZ_RT'],
|
|
193
|
+
model: 'DIYRuZ_RT',
|
|
194
|
+
vendor: 'DIYRuZ',
|
|
195
|
+
description: '[DiY CC2530 Zigbee 3.0 firmware](https://habr.com/ru/company/iobroker/blog/495926/)',
|
|
196
|
+
fromZigbee: [fz.on_off, fz.temperature],
|
|
197
|
+
toZigbee: [tz.on_off],
|
|
198
|
+
exposes: [e.switch(), e.temperature()],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
zigbeeModel: ['DIYRuZ_Flower'],
|
|
202
|
+
model: 'DIYRuZ_Flower',
|
|
203
|
+
vendor: 'DIYRuZ',
|
|
204
|
+
description: '[Flower sensor](http://modkam.ru/?p=1700)',
|
|
205
|
+
fromZigbee: [fz.temperature, fz.humidity, fz.illuminance, fz.soil_moisture, fz.pressure, fz.battery],
|
|
206
|
+
toZigbee: [],
|
|
207
|
+
meta: {multiEndpoint: true},
|
|
208
|
+
endpoint: (device) => {
|
|
209
|
+
return {'bme': 1, 'ds': 2};
|
|
210
|
+
},
|
|
211
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
212
|
+
const firstEndpoint = device.getEndpoint(1);
|
|
213
|
+
const secondEndpoint = device.getEndpoint(2);
|
|
214
|
+
await reporting.bind(firstEndpoint, coordinatorEndpoint, [
|
|
215
|
+
'genPowerCfg', 'msTemperatureMeasurement', 'msRelativeHumidity', 'msPressureMeasurement',
|
|
216
|
+
'msIlluminanceMeasurement', 'msSoilMoisture']);
|
|
217
|
+
await reporting.bind(secondEndpoint, coordinatorEndpoint, ['msTemperatureMeasurement']);
|
|
218
|
+
const overides = {min: 0, max: 3600, change: 0};
|
|
219
|
+
await reporting.batteryVoltage(firstEndpoint, overides);
|
|
220
|
+
await reporting.batteryPercentageRemaining(firstEndpoint, overides);
|
|
221
|
+
await reporting.temperature(firstEndpoint, overides);
|
|
222
|
+
await reporting.humidity(firstEndpoint, overides);
|
|
223
|
+
await reporting.pressureExtended(firstEndpoint, overides);
|
|
224
|
+
await reporting.illuminance(firstEndpoint, overides);
|
|
225
|
+
await reporting.soil_moisture(firstEndpoint, overides);
|
|
226
|
+
await reporting.temperature(secondEndpoint, overides);
|
|
227
|
+
await firstEndpoint.read('msPressureMeasurement', ['scale']);
|
|
228
|
+
},
|
|
229
|
+
exposes: [e.soil_moisture(), e.battery(), e.illuminance(), e.humidity(), e.pressure(),
|
|
230
|
+
e.temperature().withEndpoint('ds'),
|
|
231
|
+
e.temperature().withEndpoint('bme'),
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
zigbeeModel: ['DIYRuZ_AirSense'],
|
|
236
|
+
model: 'DIYRuZ_AirSense',
|
|
237
|
+
vendor: 'DIYRuZ',
|
|
238
|
+
description: '[Air quality sensor](https://modkam.ru/?p=1715)',
|
|
239
|
+
fromZigbee: [fz.temperature, fz.humidity, fz.co2, fz.pressure, fz.diyruz_airsense_config_co2,
|
|
240
|
+
fz.diyruz_airsense_config_temp, fz.diyruz_airsense_config_pres, fz.diyruz_airsense_config_hum],
|
|
241
|
+
toZigbee: [tz.diyruz_airsense_config],
|
|
242
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
243
|
+
const endpoint = device.getEndpoint(1);
|
|
244
|
+
const clusters = ['msTemperatureMeasurement', 'msRelativeHumidity', 'msPressureMeasurement', 'msCO2'];
|
|
245
|
+
await reporting.bind(endpoint, coordinatorEndpoint, clusters);
|
|
246
|
+
for (const cluster of clusters) {
|
|
247
|
+
await endpoint.configureReporting(cluster, [
|
|
248
|
+
{attribute: 'measuredValue', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0},
|
|
249
|
+
]);
|
|
250
|
+
}
|
|
251
|
+
await endpoint.read('msPressureMeasurement', ['scale']);
|
|
252
|
+
},
|
|
253
|
+
exposes: [e.co2(), e.temperature(), e.humidity(), e.pressure(),
|
|
254
|
+
exposes.binary('led_feedback', ea.ALL, 'ON', 'OFF').withDescription('Enable LEDs feedback'),
|
|
255
|
+
exposes.binary('enable_abc', ea.ALL, 'ON', 'OFF').withDescription('Enable ABC (Automatic Baseline Correction)'),
|
|
256
|
+
exposes.numeric('threshold1', ea.ALL).withUnit('ppm').withDescription('Warning (LED2) CO2 level')
|
|
257
|
+
.withValueMin(0).withValueMax(50000),
|
|
258
|
+
exposes.numeric('threshold2', ea.ALL).withUnit('ppm').withDescription('Critical (LED3) CO2 level')
|
|
259
|
+
.withValueMin(0).withValueMax(50000),
|
|
260
|
+
exposes.numeric('temperature_offset', ea.ALL).withUnit('°C').withDescription('Adjust temperature')
|
|
261
|
+
.withValueMin(-20).withValueMax(20),
|
|
262
|
+
exposes.numeric('humidity_offset', ea.ALL).withUnit('%').withDescription('Adjust humidity')
|
|
263
|
+
.withValueMin(-50).withValueMax(50),
|
|
264
|
+
exposes.numeric('pressure_offset', ea.ALL).withUnit('hPa').withDescription('Adjust pressure')
|
|
265
|
+
.withValueMin(-1000).withValueMax(1000)],
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
zigbeeModel: ['DIY_Zintercom'],
|
|
269
|
+
model: 'DIYRuZ_Zintercom',
|
|
270
|
+
vendor: 'DIYRuZ',
|
|
271
|
+
description: '[Matrix intercom auto opener](https://diyruz.github.io/posts/zintercom/)',
|
|
272
|
+
fromZigbee: [fz.battery, fz.diyruz_zintercom_config],
|
|
273
|
+
toZigbee: [tz.diyruz_zintercom_config],
|
|
274
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
275
|
+
const firstEndpoint = device.getEndpoint(1);
|
|
276
|
+
await reporting.bind(firstEndpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
|
|
277
|
+
const payload1 = [
|
|
278
|
+
{attribute: 'batteryPercentageRemaining', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0},
|
|
279
|
+
{attribute: 'batteryVoltage', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0}];
|
|
280
|
+
await firstEndpoint.configureReporting('genPowerCfg', payload1);
|
|
281
|
+
const payload2 = [{attribute: {ID: 0x0050, type: 0x30},
|
|
282
|
+
minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0}];
|
|
283
|
+
await firstEndpoint.configureReporting('closuresDoorLock', payload2);
|
|
284
|
+
},
|
|
285
|
+
exposes: [
|
|
286
|
+
exposes.enum('state', ea.STATE, ['idle', 'ring', 'talk', 'open', 'drop'])
|
|
287
|
+
.withDescription('Current state'),
|
|
288
|
+
exposes.enum('mode', ea.ALL, ['never', 'once', 'always', 'drop'])
|
|
289
|
+
.withDescription('Select open mode'),
|
|
290
|
+
exposes.binary('sound', ea.ALL, 'ON', 'OFF').withProperty('sound')
|
|
291
|
+
.withDescription('Enable or disable sound'),
|
|
292
|
+
exposes.numeric('time_ring', ea.ALL).withUnit('sec')
|
|
293
|
+
.withDescription('Time to ring before answer').withValueMin(0).withValueMax(600),
|
|
294
|
+
exposes.numeric('time_talk', ea.ALL).withUnit('sec')
|
|
295
|
+
.withDescription('Time to hold before open').withValueMin(0).withValueMax(600),
|
|
296
|
+
exposes.numeric('time_open', ea.ALL).withUnit('sec')
|
|
297
|
+
.withDescription('Time to open before end').withValueMin(0).withValueMax(600),
|
|
298
|
+
exposes.numeric('time_bell', ea.ALL).withUnit('sec')
|
|
299
|
+
.withDescription('Time after last bell to finish ring').withValueMin(0).withValueMax(600),
|
|
300
|
+
exposes.numeric('time_report', ea.ALL).withUnit('min')
|
|
301
|
+
.withDescription('Reporting interval').withValueMin(0).withValueMax(1440),
|
|
302
|
+
e.battery(),
|
|
303
|
+
],
|
|
304
|
+
},
|
|
305
|
+
];
|
package/devices/dlink.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const fz = require('../converters/fromZigbee');
|
|
2
|
+
const exposes = require('../lib/exposes');
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
const fzLocal = {
|
|
7
|
+
DCH_B112: {
|
|
8
|
+
cluster: 'ssIasZone',
|
|
9
|
+
type: 'commandStatusChangeNotification',
|
|
10
|
+
convert: (model, msg, publish, options, meta) => {
|
|
11
|
+
const zoneStatus = msg.data.zonestatus;
|
|
12
|
+
return {
|
|
13
|
+
contact: !((zoneStatus & 1) > 0),
|
|
14
|
+
vibration: (zoneStatus & 1<<1) > 0,
|
|
15
|
+
tamper: (zoneStatus & 1<<2) > 0,
|
|
16
|
+
battery_low: (zoneStatus & 1<<3) > 0,
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
module.exports = [
|
|
23
|
+
{
|
|
24
|
+
zigbeeModel: ['DCH-B112'],
|
|
25
|
+
model: 'DCH-B112',
|
|
26
|
+
vendor: 'D-Link',
|
|
27
|
+
description: 'Wireless smart door window sensor with vibration',
|
|
28
|
+
fromZigbee: [fzLocal.DCH_B112, fz.battery],
|
|
29
|
+
toZigbee: [],
|
|
30
|
+
exposes: [e.battery_low(), e.contact(), e.vibration(), e.tamper(), e.battery()],
|
|
31
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
32
|
+
const endpoint = device.getEndpoint(1);
|
|
33
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
34
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
];
|
package/devices/dnake.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const ota = require('../lib/ota');
|
|
3
|
+
const extend = require('../lib/extend');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['FLS-PP3'],
|
|
9
|
+
model: 'Mega23M12',
|
|
10
|
+
vendor: 'Dresden Elektronik',
|
|
11
|
+
description: 'ZigBee Light Link wireless electronic ballast',
|
|
12
|
+
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
13
|
+
ota: ota.zigbeeOTA,
|
|
14
|
+
exposes: [e.light_brightness_colortemp_colorxy().withEndpoint('rgb'), e.light_brightness().withEndpoint('white')],
|
|
15
|
+
endpoint: (device) => {
|
|
16
|
+
return {rgb: 10, white: 11};
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
zigbeeModel: ['FLS-CT'],
|
|
21
|
+
model: 'XVV-Mega23M12',
|
|
22
|
+
vendor: 'Dresden Elektronik',
|
|
23
|
+
description: 'ZigBee Light Link wireless electronic ballast color temperature',
|
|
24
|
+
extend: extend.light_onoff_brightness_colortemp(),
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
zigbeeModel: ['Kobold'],
|
|
28
|
+
model: 'BN-600110',
|
|
29
|
+
vendor: 'Dresden Elektronik',
|
|
30
|
+
description: 'Zigbee 3.0 dimm actuator',
|
|
31
|
+
extend: extend.light_onoff_brightness(),
|
|
32
|
+
ota: ota.zigbeeOTA,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
zigbeeModel: ['FLS-A lp (1-10V)'],
|
|
36
|
+
model: 'BN-600078',
|
|
37
|
+
vendor: 'Dresden Elektronik',
|
|
38
|
+
description: 'Zigbee controller for 1-10V/PWM',
|
|
39
|
+
extend: extend.light_onoff_brightness(),
|
|
40
|
+
exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2'),
|
|
41
|
+
e.light_brightness().withEndpoint('l3'), e.light_brightness().withEndpoint('l4')],
|
|
42
|
+
endpoint: (device) => {
|
|
43
|
+
return {'l1': 11, 'l2': 12, 'l3': 13, 'l4': 14};
|
|
44
|
+
},
|
|
45
|
+
meta: {multiEndpoint: true, disableDefaultResponse: true},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const reporting = require('../lib/reporting');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
const ea = exposes.access;
|
|
7
|
+
|
|
8
|
+
module.exports = [
|
|
9
|
+
{
|
|
10
|
+
zigbeeModel: ['EasyCode903G2.1'],
|
|
11
|
+
model: 'EasyCode903G2.1',
|
|
12
|
+
vendor: 'EasyAccess',
|
|
13
|
+
description: 'EasyFinger V2',
|
|
14
|
+
fromZigbee: [fz.lock, fz.easycode_action, fz.battery],
|
|
15
|
+
toZigbee: [tz.lock, tz.easycode_auto_relock, tz.lock_sound_volume],
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint = device.getEndpoint(11);
|
|
18
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
|
|
19
|
+
await reporting.lockState(endpoint);
|
|
20
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
21
|
+
},
|
|
22
|
+
exposes: [e.lock(), e.battery(), e.sound_volume(),
|
|
23
|
+
e.action(['zigbee_unlock', 'lock', 'rfid_unlock', 'keypad_unlock']),
|
|
24
|
+
exposes.binary('auto_relock', ea.STATE_SET, true, false).withDescription('Auto relock after 7 seconds.')],
|
|
25
|
+
whiteLabel: [{vendor: 'Datek Wireless', model: 'EasyCode903G2.1'}],
|
|
26
|
+
},
|
|
27
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
zigbeeModel: ['Halo_RL5601'],
|
|
6
|
+
model: 'RL460WHZHA69', // The 4" CAN variant presents as 5/6" zigbeeModel.
|
|
7
|
+
vendor: 'Eaton/Halo LED',
|
|
8
|
+
description: 'Wireless Controlled LED retrofit downlight',
|
|
9
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [200, 370]}),
|
|
10
|
+
},
|
|
11
|
+
];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const e = exposes.presets;
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
{
|
|
7
|
+
zigbeeModel: [' Bell'],
|
|
8
|
+
model: 'SAGE206612',
|
|
9
|
+
vendor: 'EchoStar',
|
|
10
|
+
description: 'SAGE by Hughes doorbell sensor',
|
|
11
|
+
fromZigbee: [fz.SAGE206612_state, fz.battery],
|
|
12
|
+
exposes: [e.battery(), e.action(['bell1', 'bell2'])],
|
|
13
|
+
toZigbee: [],
|
|
14
|
+
meta: {battery: {voltageToPercentage: '3V_2500'}},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
zigbeeModel: [' Switch'],
|
|
18
|
+
model: 'SAGE206611',
|
|
19
|
+
vendor: 'Echostar',
|
|
20
|
+
description: 'SAGE by Hughes single gang light switch',
|
|
21
|
+
fromZigbee: [fz.command_on, fz.command_off],
|
|
22
|
+
exposes: [e.action(['on', 'off'])],
|
|
23
|
+
toZigbee: [],
|
|
24
|
+
},
|
|
25
|
+
];
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const e = exposes.presets;
|
|
4
|
+
const reporting = require('../lib/reporting');
|
|
5
|
+
const extend = require('../lib/extend');
|
|
6
|
+
const ota = require('../lib/ota');
|
|
7
|
+
const tuya = require('../lib/tuya');
|
|
8
|
+
|
|
9
|
+
module.exports = [
|
|
10
|
+
{
|
|
11
|
+
fingerprint: [
|
|
12
|
+
{type: 'Router', manufacturerName: 'EcoDim BV', modelID: 'EcoDim-Zigbee 3.0', endpoints: [
|
|
13
|
+
{ID: 1, profileID: 260, inputClusters: [0, 3, 4, 5, 6, 8, 2821, 4096], outputClusters: [25]},
|
|
14
|
+
{ID: 2, profileID: 260, inputClusters: [0, 3, 4, 5, 6, 8], outputClusters: []},
|
|
15
|
+
{ID: 242, profileID: 41440, inputClusters: [], outputClusters: [33]},
|
|
16
|
+
]},
|
|
17
|
+
],
|
|
18
|
+
model: 'Eco-Dim.05',
|
|
19
|
+
vendor: 'EcoDim',
|
|
20
|
+
description: 'LED dimmer duo 2x 0-100W',
|
|
21
|
+
extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}),
|
|
22
|
+
meta: {multiEndpoint: true},
|
|
23
|
+
exposes: [e.light_brightness().withEndpoint('left'), e.light_brightness().withEndpoint('right')],
|
|
24
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
25
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
26
|
+
for (const ep of [1, 2]) {
|
|
27
|
+
const endpoint = device.getEndpoint(ep);
|
|
28
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
29
|
+
await reporting.onOff(endpoint);
|
|
30
|
+
await reporting.brightness(endpoint);
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
endpoint: (device) => {
|
|
34
|
+
return {'left': 2, 'right': 1};
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
fingerprint: [
|
|
39
|
+
{type: 'Router', manufacturerName: 'EcoDim BV', modelID: 'EcoDim-Zigbee 3.0', endpoints: [
|
|
40
|
+
{ID: 1, profileID: 260, deviceID: 257, inputClusters: [0, 3, 4, 5, 6, 8, 2821, 4096], outputClusters: [25]},
|
|
41
|
+
{ID: 242, profileID: 41440, deviceID: 97, inputClusters: [], outputClusters: [33]},
|
|
42
|
+
]},
|
|
43
|
+
{type: 'Router', manufacturerName: 'EcoDim BV', modelID: 'EcoDim-Zigbee 3.0', endpoints: [
|
|
44
|
+
{ID: 1, profileID: 260, deviceID: 257, inputClusters: [0, 3, 4, 5, 6, 8, 2821, 4096], outputClusters: [25]},
|
|
45
|
+
{ID: 67, inputClusters: [], outputClusters: []},
|
|
46
|
+
{ID: 242, profileID: 41440, deviceID: 97, inputClusters: [], outputClusters: [33]},
|
|
47
|
+
]},
|
|
48
|
+
],
|
|
49
|
+
zigbeeModel: ['Dimmer-Switch-ZB3.0'],
|
|
50
|
+
model: 'Eco-Dim.07/Eco-Dim.10',
|
|
51
|
+
vendor: 'EcoDim',
|
|
52
|
+
description: 'Zigbee & Z-wave dimmer',
|
|
53
|
+
ota: ota.zigbeeOTA,
|
|
54
|
+
extend: extend.light_onoff_brightness({noConfigure: true, disableEffect: true}),
|
|
55
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
56
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
57
|
+
const endpoint = device.getEndpoint(1);
|
|
58
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
59
|
+
await reporting.onOff(endpoint);
|
|
60
|
+
await reporting.brightness(endpoint);
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
zigbeeModel: ['ED-10010'],
|
|
65
|
+
model: 'ED-10010',
|
|
66
|
+
vendor: 'EcoDim',
|
|
67
|
+
description: 'Zigbee 2 button wall switch - white',
|
|
68
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
69
|
+
exposes: [e.battery(), e.action(['on', 'off', 'brightness_move_up', 'brightness_move_down', 'brightness_stop'])],
|
|
70
|
+
toZigbee: [],
|
|
71
|
+
meta: {multiEndpoint: true},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
zigbeeModel: ['ED-10011'],
|
|
75
|
+
model: 'ED-10011',
|
|
76
|
+
vendor: 'EcoDim',
|
|
77
|
+
description: 'Zigbee 2 button wall switch - black',
|
|
78
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
79
|
+
exposes: [e.battery(), e.action(['on_1', 'off_1', 'brightness_move_up_1', 'brightness_move_down_1', 'brightness_stop_1'])],
|
|
80
|
+
toZigbee: [],
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
zigbeeModel: ['ED-10012'],
|
|
84
|
+
model: 'ED-10012',
|
|
85
|
+
vendor: 'EcoDim',
|
|
86
|
+
description: 'Zigbee 4 button wall switch - white',
|
|
87
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
88
|
+
exposes: [e.battery(), e.action(['on_1', 'off_1', 'brightness_move_up_1', 'brightness_move_down_1', 'brightness_stop_1',
|
|
89
|
+
'on_2', 'off_2', 'brightness_move_up_2', 'brightness_move_down_2', 'brightness_stop_2'])],
|
|
90
|
+
toZigbee: [],
|
|
91
|
+
meta: {multiEndpoint: true},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
zigbeeModel: ['ED-10013'],
|
|
95
|
+
model: 'ED-10013',
|
|
96
|
+
vendor: 'EcoDim',
|
|
97
|
+
description: 'Zigbee 4 button wall switch - black',
|
|
98
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
99
|
+
exposes: [e.battery(), e.action(['on_1', 'off_1', 'brightness_move_up_1', 'brightness_move_down_1', 'brightness_stop_1',
|
|
100
|
+
'on_2', 'off_2', 'brightness_move_up_2', 'brightness_move_down_2', 'brightness_stop_2'])],
|
|
101
|
+
toZigbee: [],
|
|
102
|
+
meta: {multiEndpoint: true},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
zigbeeModel: ['ED-10014'],
|
|
106
|
+
model: 'ED-10014',
|
|
107
|
+
vendor: 'EcoDim',
|
|
108
|
+
description: 'Zigbee 8 button wall switch - white',
|
|
109
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
110
|
+
exposes: [e.battery(), e.action(['on_1', 'off_1', 'brightness_move_up_1', 'brightness_move_down_1', 'brightness_stop_1',
|
|
111
|
+
'on_2', 'off_2', 'brightness_move_up_2', 'brightness_move_down_2', 'brightness_stop_2', 'on_3', 'off_3',
|
|
112
|
+
'brightness_move_up_3', 'brightness_move_down_3', 'brightness_stop_3', 'on_4', 'off_4', 'brightness_move_up_4',
|
|
113
|
+
'brightness_move_down_4', 'brightness_stop_4'])],
|
|
114
|
+
toZigbee: [],
|
|
115
|
+
meta: {multiEndpoint: true, battery: {dontDividePercentage: true}},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
zigbeeModel: ['ED-10015'],
|
|
119
|
+
model: 'ED-10015',
|
|
120
|
+
vendor: 'EcoDim',
|
|
121
|
+
description: 'Zigbee 8 button wall switch - black',
|
|
122
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
123
|
+
exposes: [e.battery(), e.action(['on_1', 'off_1', 'brightness_move_up_1', 'brightness_move_down_1', 'brightness_stop_1',
|
|
124
|
+
'on_2', 'off_2', 'brightness_move_up_2', 'brightness_move_down_2', 'brightness_stop_2', 'on_3', 'off_3', 'brightness_move_up_3',
|
|
125
|
+
'brightness_move_down_3', 'brightness_stop_3', 'on_4', 'off_4', 'brightness_move_up_4', 'brightness_move_down_4',
|
|
126
|
+
'brightness_stop_4'])],
|
|
127
|
+
toZigbee: [],
|
|
128
|
+
meta: {multiEndpoint: true},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
fingerprint: [{modelID: 'TS0501B', manufacturerName: '_TZ3210_yluvwhjc'}],
|
|
132
|
+
model: 'ED-10042',
|
|
133
|
+
vendor: 'EcoDim',
|
|
134
|
+
description: 'Zigbee LED filament light dimmable E27, globe G125, flame 2200K',
|
|
135
|
+
extend: tuya.extend.light_onoff_brightness(),
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
fingerprint: [{modelID: 'CCT Light', manufacturerName: 'ZigBee/CCT', manufacturerID: 4137},
|
|
139
|
+
{modelID: 'CCT Light', manufacturerName: 'Astuta/ZB-CCT', manufacturerID: 4137}],
|
|
140
|
+
model: 'ED-10041',
|
|
141
|
+
vendor: 'EcoDim',
|
|
142
|
+
description: 'Zigbee LED filament light dimmable E27, edison ST64, flame 2200K',
|
|
143
|
+
extend: tuya.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
144
|
+
},
|
|
145
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['4655BC0-R'],
|
|
9
|
+
model: '4655BC0-R',
|
|
10
|
+
vendor: 'Ecolink',
|
|
11
|
+
description: 'Contact sensor',
|
|
12
|
+
fromZigbee: [fz.temperature, fz.ias_contact_alarm_1],
|
|
13
|
+
toZigbee: [],
|
|
14
|
+
exposes: [e.temperature(), e.contact(), e.battery_low(), e.tamper()],
|
|
15
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
16
|
+
const endpoint = device.getEndpoint(1);
|
|
17
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement']);
|
|
18
|
+
await reporting.temperature(endpoint);
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
];
|