@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
|
@@ -0,0 +1,146 @@
|
|
|
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 extend = require('../lib/extend');
|
|
6
|
+
const e = exposes.presets;
|
|
7
|
+
const ea = exposes.access;
|
|
8
|
+
const tuya = require('../lib/tuya');
|
|
9
|
+
|
|
10
|
+
module.exports = [
|
|
11
|
+
{
|
|
12
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_air9m6af'}, {modelID: 'TS011F', manufacturerName: '_TZ3000_9djocypn'},
|
|
13
|
+
{modelID: 'TS011F', manufacturerName: '_TZ3000_bppxj3sf'}],
|
|
14
|
+
zigbeeModel: ['JZ-ZB-005'],
|
|
15
|
+
model: 'WP33-EU/WP34-EU',
|
|
16
|
+
vendor: 'LELLKI',
|
|
17
|
+
description: 'Multiprise with 4 AC outlets and 2 USB super charging ports (16A)',
|
|
18
|
+
extend: extend.switch(),
|
|
19
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
20
|
+
e.switch().withEndpoint('l3'), e.switch().withEndpoint('l4'), e.switch().withEndpoint('l5')],
|
|
21
|
+
meta: {multiEndpoint: true},
|
|
22
|
+
endpoint: (device) => {
|
|
23
|
+
return {l1: 1, l2: 2, l3: 3, l4: 4, l5: 5};
|
|
24
|
+
},
|
|
25
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
26
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
27
|
+
for (const ID of [1, 2, 3, 4, 5]) {
|
|
28
|
+
await reporting.bind(device.getEndpoint(ID), coordinatorEndpoint, ['genOnOff']);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
zigbeeModel: ['JZ-ZB-001'],
|
|
34
|
+
model: 'JZ-ZB-001',
|
|
35
|
+
description: 'Smart plug (without power monitoring)',
|
|
36
|
+
vendor: 'LELLKI',
|
|
37
|
+
extend: tuya.extend.switch({powerOutageMemory: true}),
|
|
38
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
39
|
+
const endpoint = device.getEndpoint(1);
|
|
40
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
zigbeeModel: ['JZ-ZB-003'],
|
|
45
|
+
model: 'JZ-ZB-003',
|
|
46
|
+
vendor: 'LELLKI',
|
|
47
|
+
description: '3 gang switch',
|
|
48
|
+
extend: extend.switch(),
|
|
49
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'), e.switch().withEndpoint('l3')],
|
|
50
|
+
endpoint: (device) => {
|
|
51
|
+
return {'l1': 1, 'l2': 2, 'l3': 3};
|
|
52
|
+
},
|
|
53
|
+
meta: {multiEndpoint: true},
|
|
54
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
55
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
56
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
57
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
zigbeeModel: ['JZ-ZB-002'],
|
|
62
|
+
model: 'JZ-ZB-002',
|
|
63
|
+
vendor: 'LELLKI',
|
|
64
|
+
description: '2 gang touch switch',
|
|
65
|
+
extend: extend.switch(),
|
|
66
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2')],
|
|
67
|
+
endpoint: (device) => {
|
|
68
|
+
return {'l1': 1, 'l2': 2};
|
|
69
|
+
},
|
|
70
|
+
meta: {multiEndpoint: true},
|
|
71
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
72
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
73
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_twqctvna'}],
|
|
78
|
+
model: 'CM001',
|
|
79
|
+
vendor: 'LELLKI',
|
|
80
|
+
description: 'Circuit switch',
|
|
81
|
+
extend: extend.switch(),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_z6fgd73r'}],
|
|
85
|
+
model: 'XF-EU-S100-1-M',
|
|
86
|
+
description: 'Touch switch 1 gang (with power monitoring)',
|
|
87
|
+
vendor: 'LELLKI',
|
|
88
|
+
extend: tuya.extend.switch({powerOutageMemory: true, electricalMeasurements: true}),
|
|
89
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
90
|
+
const endpoint = device.getEndpoint(1);
|
|
91
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
92
|
+
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
|
|
93
|
+
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
|
|
94
|
+
device.save();
|
|
95
|
+
},
|
|
96
|
+
options: [exposes.options.measurement_poll_interval()],
|
|
97
|
+
onEvent: tuya.onEventMeasurementPoll,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_0yxeawjt'}],
|
|
101
|
+
model: 'WK34-EU',
|
|
102
|
+
description: 'Power socket EU (with power monitoring)',
|
|
103
|
+
vendor: 'LELLKI',
|
|
104
|
+
extend: tuya.extend.switch({powerOutageMemory: true, electricalMeasurements: true}),
|
|
105
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
106
|
+
const endpoint = device.getEndpoint(1);
|
|
107
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
108
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
109
|
+
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
|
|
110
|
+
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
|
|
111
|
+
device.save();
|
|
112
|
+
},
|
|
113
|
+
options: [exposes.options.measurement_poll_interval()],
|
|
114
|
+
onEvent: tuya.onEventMeasurementPoll,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_c7nc9w3c'}],
|
|
118
|
+
model: 'WP30-EU',
|
|
119
|
+
description: 'Power cord 4 sockets EU (with power monitoring)',
|
|
120
|
+
vendor: 'LELLKI',
|
|
121
|
+
extend: extend.switch(),
|
|
122
|
+
fromZigbee: [fz.on_off_force_multiendpoint, fz.electrical_measurement, fz.metering, fz.ignore_basic_report,
|
|
123
|
+
tuya.fz.power_outage_memory],
|
|
124
|
+
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_1],
|
|
125
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
126
|
+
const endpoint = device.getEndpoint(1);
|
|
127
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
128
|
+
for (const ep of [1, 2, 3]) {
|
|
129
|
+
await reporting.bind(device.getEndpoint(ep), coordinatorEndpoint, ['genOnOff']);
|
|
130
|
+
await reporting.onOff(device.getEndpoint(ep));
|
|
131
|
+
}
|
|
132
|
+
endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {acCurrentDivisor: 1000, acCurrentMultiplier: 1});
|
|
133
|
+
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 100, multiplier: 1});
|
|
134
|
+
device.save();
|
|
135
|
+
},
|
|
136
|
+
options: [exposes.options.measurement_poll_interval()],
|
|
137
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
138
|
+
e.switch().withEndpoint('l3'), e.power(), e.current(), e.voltage(),
|
|
139
|
+
e.energy(), exposes.enum('power_outage_memory', ea.ALL, ['on', 'off', 'restore'])
|
|
140
|
+
.withDescription('Recover state after power outage')],
|
|
141
|
+
endpoint: (device) => {
|
|
142
|
+
return {l1: 1, l2: 2, l3: 3};
|
|
143
|
+
},
|
|
144
|
+
onEvent: tuya.onEventMeasurementPoll,
|
|
145
|
+
},
|
|
146
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
fingerprint: [{modelID: 'RGBW Down Light', manufacturerName: 'Letsleds China'}],
|
|
6
|
+
model: 'HLC929-Z-RGBW-4C-IA-OTA-3.0',
|
|
7
|
+
vendor: 'Letsleds',
|
|
8
|
+
description: 'RGBW down light (color temp is inverted)',
|
|
9
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
10
|
+
},
|
|
11
|
+
];
|
package/devices/letv.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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: ['qlwz.letv8key.10'],
|
|
8
|
+
model: 'LeTV.8KEY',
|
|
9
|
+
vendor: 'LeTV',
|
|
10
|
+
description: '8key switch',
|
|
11
|
+
fromZigbee: [fz.qlwz_letv8key_switch],
|
|
12
|
+
exposes: [e.action(['hold_up', 'single_up', 'double_up', 'tripple_up', 'hold_down', 'single_down', 'double_down', 'tripple_down',
|
|
13
|
+
'hold_left', 'single_left', 'double_left', 'tripple_left', 'hold_right', 'single_right', 'double_right', 'tripple_right',
|
|
14
|
+
'hold_center', 'single_center', 'double_center', 'tripple_center', 'hold_back', 'single_back', 'double_back', 'tripple_back',
|
|
15
|
+
'hold_play', 'single_play', 'double_play', 'tripple_play', 'hold_voice', 'single_voice', 'double_voice', 'tripple_voice'])],
|
|
16
|
+
toZigbee: [],
|
|
17
|
+
},
|
|
18
|
+
];
|
|
@@ -0,0 +1,142 @@
|
|
|
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 extend = require('../lib/extend');
|
|
6
|
+
const utils = require('../lib/utils');
|
|
7
|
+
const e = exposes.presets;
|
|
8
|
+
const ea = exposes.access;
|
|
9
|
+
|
|
10
|
+
const fzLocal = {
|
|
11
|
+
on_off_via_brightness: {
|
|
12
|
+
cluster: 'genLevelCtrl',
|
|
13
|
+
type: ['attributeReport', 'readResponse'],
|
|
14
|
+
convert: (model, msg, publish, options, meta) => {
|
|
15
|
+
if (msg.data.hasOwnProperty('currentLevel')) {
|
|
16
|
+
const currentLevel = Number(msg.data['currentLevel']);
|
|
17
|
+
const property = utils.postfixWithEndpointName('state', msg, model, meta);
|
|
18
|
+
return {[property]: currentLevel > 0 ? 'ON' : 'OFF'};
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
module.exports = [
|
|
25
|
+
{
|
|
26
|
+
zigbeeModel: ['DL15S'],
|
|
27
|
+
model: 'DL15S-1BZ',
|
|
28
|
+
vendor: 'Leviton',
|
|
29
|
+
description: 'Lumina RF 15A switch, 120/277V',
|
|
30
|
+
extend: extend.switch(),
|
|
31
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
32
|
+
const endpoint = device.getEndpoint(1);
|
|
33
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
34
|
+
await reporting.onOff(endpoint);
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
zigbeeModel: ['DG6HD'],
|
|
39
|
+
model: 'DG6HD-1BW',
|
|
40
|
+
vendor: 'Leviton',
|
|
41
|
+
description: 'Zigbee in-wall smart dimmer',
|
|
42
|
+
extend: extend.light_onoff_brightness({disableEffect: true, noConfigure: true}),
|
|
43
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
44
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
45
|
+
const endpoint = device.getEndpoint(1);
|
|
46
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
47
|
+
await reporting.onOff(endpoint);
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
zigbeeModel: ['DG3HL'],
|
|
52
|
+
model: 'DG3HL-1BW',
|
|
53
|
+
vendor: 'Leviton',
|
|
54
|
+
description: 'Indoor Decora smart Zigbee 3.0 certified plug-in dimmer',
|
|
55
|
+
extend: extend.light_onoff_brightness({disableEffect: true, noConfigure: true}),
|
|
56
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
57
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
58
|
+
const endpoint = device.getEndpoint(1);
|
|
59
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
60
|
+
await reporting.onOff(endpoint);
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
zigbeeModel: ['DG15A'],
|
|
65
|
+
model: 'DG15A-1BW',
|
|
66
|
+
vendor: 'Leviton',
|
|
67
|
+
description: 'Indoor Decora smart Zigbee 3.0 certified plug-in outlet',
|
|
68
|
+
extend: extend.switch(),
|
|
69
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
70
|
+
const endpoint = device.getEndpoint(1);
|
|
71
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
72
|
+
await reporting.onOff(endpoint);
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
zigbeeModel: ['DG15S'],
|
|
77
|
+
model: 'DG15S-1BW',
|
|
78
|
+
vendor: 'Leviton',
|
|
79
|
+
description: 'Decora smart Zigbee 3.0 certified 15A switch',
|
|
80
|
+
extend: extend.switch(),
|
|
81
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
82
|
+
const endpoint = device.getEndpoint(1);
|
|
83
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
84
|
+
await reporting.onOff(endpoint);
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
zigbeeModel: ['65A01-1'],
|
|
89
|
+
model: 'RC-2000WH',
|
|
90
|
+
vendor: 'Leviton',
|
|
91
|
+
description: 'Omnistat2 wireless thermostat',
|
|
92
|
+
fromZigbee: [fz.legacy.thermostat_att_report, fz.fan],
|
|
93
|
+
toZigbee: [tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration, tz.thermostat_occupancy,
|
|
94
|
+
tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint, tz.thermostat_occupied_cooling_setpoint,
|
|
95
|
+
tz.thermostat_unoccupied_cooling_setpoint, tz.thermostat_setpoint_raise_lower, tz.thermostat_remote_sensing,
|
|
96
|
+
tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode, tz.thermostat_weekly_schedule,
|
|
97
|
+
tz.thermostat_clear_weekly_schedule, tz.thermostat_relay_status_log, tz.thermostat_temperature_setpoint_hold,
|
|
98
|
+
tz.thermostat_temperature_setpoint_hold_duration, tz.fan_mode],
|
|
99
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
100
|
+
const endpoint = device.getEndpoint(9);
|
|
101
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['hvacThermostat', 'hvacFanCtrl']);
|
|
102
|
+
await reporting.thermostatTemperature(endpoint);
|
|
103
|
+
await reporting.thermostatSystemMode(endpoint);
|
|
104
|
+
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
105
|
+
await reporting.thermostatUnoccupiedHeatingSetpoint(endpoint);
|
|
106
|
+
await reporting.thermostatOccupiedCoolingSetpoint(endpoint);
|
|
107
|
+
await reporting.thermostatUnoccupiedCoolingSetpoint(endpoint);
|
|
108
|
+
await reporting.fanMode(endpoint);
|
|
109
|
+
},
|
|
110
|
+
exposes: [
|
|
111
|
+
exposes.climate().withSetpoint('occupied_heating_setpoint', 10, 30, 1).withLocalTemperature()
|
|
112
|
+
.withSystemMode(['off', 'auto', 'heat', 'cool']).withFanMode(['auto', 'on', 'smart'])
|
|
113
|
+
.withSetpoint('occupied_cooling_setpoint', 10, 30, 1)
|
|
114
|
+
.withLocalTemperatureCalibration().withPiHeatingDemand()],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
// Reference from a similar switch: https://gist.github.com/nebhead/dc5a0a827ec14eef6196ded4be6e2dd0
|
|
118
|
+
zigbeeModel: ['ZS057'],
|
|
119
|
+
model: 'ZS057-D0Z',
|
|
120
|
+
vendor: 'Leviton',
|
|
121
|
+
description: 'Wall switch, 0-10V dimmer, 120-277V, Lumina™ RF',
|
|
122
|
+
meta: {disableDefaultResponse: true},
|
|
123
|
+
extend: extend.light_onoff_brightness({disableEffect: true, noConfigure: true}),
|
|
124
|
+
fromZigbee: [fz.on_off, fzLocal.on_off_via_brightness, fz.lighting_ballast_configuration],
|
|
125
|
+
toZigbee: [tz.light_onoff_brightness, tz.ballast_config],
|
|
126
|
+
exposes: [e.light_brightness(),
|
|
127
|
+
// Note: ballast_power_on_level used to be here, but it does't appear to work properly with this device
|
|
128
|
+
// If set, it's reset back to 0 when the device is turned off then back to 32 when turned on
|
|
129
|
+
exposes.numeric('ballast_minimum_level', ea.ALL).withValueMin(1).withValueMax(254)
|
|
130
|
+
.withDescription('Specifies the minimum brightness value'),
|
|
131
|
+
exposes.numeric('ballast_maximum_level', ea.ALL).withValueMin(1).withValueMax(254)
|
|
132
|
+
.withDescription('Specifies the maximum brightness value')],
|
|
133
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
134
|
+
const endpoint = device.getEndpoint(1);
|
|
135
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'lightingBallastCfg']);
|
|
136
|
+
// This device doesn't reliably report state changes - make it chatty to compensate for that
|
|
137
|
+
// This feels like a hack - hopefully there is a better fix at some point
|
|
138
|
+
await reporting.onOff(endpoint, {max: 5});
|
|
139
|
+
await reporting.brightness(endpoint, {max: 5});
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
];
|
package/devices/lg.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
zigbeeModel: ['B1027EB0Z01'],
|
|
6
|
+
model: 'B1027EB0Z01',
|
|
7
|
+
vendor: 'LG Electronics',
|
|
8
|
+
description: 'Smart bulb 1',
|
|
9
|
+
extend: extend.light_onoff_brightness(),
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
zigbeeModel: ['B1027EB0Z02'],
|
|
13
|
+
model: 'B1027EB0Z02',
|
|
14
|
+
vendor: 'LG Electronics',
|
|
15
|
+
description: 'Smart bulb 2',
|
|
16
|
+
extend: extend.light_onoff_brightness(),
|
|
17
|
+
},
|
|
18
|
+
];
|