@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,334 @@
|
|
|
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 herdsman = require('zigbee-herdsman');
|
|
9
|
+
|
|
10
|
+
const manufacturerOptions = {manufacturerCode: herdsman.Zcl.ManufacturerCode._4_NOKS};
|
|
11
|
+
|
|
12
|
+
const bitron = {
|
|
13
|
+
fz: {
|
|
14
|
+
thermostat_hysteresis: {
|
|
15
|
+
cluster: 'hvacThermostat',
|
|
16
|
+
type: ['attributeReport', 'readResponse'],
|
|
17
|
+
convert: (model, msg, publish, options, meta) => {
|
|
18
|
+
const result = {};
|
|
19
|
+
|
|
20
|
+
if (msg.data.hasOwnProperty('fourNoksHysteresisHigh')) {
|
|
21
|
+
if (!result.hasOwnProperty('hysteresis')) result.hysteresis = {};
|
|
22
|
+
result.hysteresis.high = msg.data.fourNoksHysteresisHigh;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (msg.data.hasOwnProperty('fourNoksHysteresisLow')) {
|
|
26
|
+
if (!result.hasOwnProperty('hysteresis')) result.hysteresis = {};
|
|
27
|
+
result.hysteresis.low = msg.data.fourNoksHysteresisLow;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return result;
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
tz: {
|
|
35
|
+
thermostat_hysteresis: {
|
|
36
|
+
key: ['hysteresis', 'hysteresis'],
|
|
37
|
+
convertSet: async (entity, key, value, meta) => {
|
|
38
|
+
const result = {state: {hysteresis: {}}};
|
|
39
|
+
if (value.hasOwnProperty('high')) {
|
|
40
|
+
await entity.write('hvacThermostat', {'fourNoksHysteresisHigh': value.high}, manufacturerOptions);
|
|
41
|
+
result.state.hysteresis.high = value.high;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (value.hasOwnProperty('low')) {
|
|
45
|
+
await entity.write('hvacThermostat', {'fourNoksHysteresisLow': value.low}, manufacturerOptions);
|
|
46
|
+
result.state.hysteresis.low = value.low;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return result;
|
|
50
|
+
},
|
|
51
|
+
convertGet: async (entity, key, meta) => {
|
|
52
|
+
await entity.read('hvacThermostat', ['fourNoksHysteresisHigh', 'fourNoksHysteresisLow'], manufacturerOptions);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
module.exports = [
|
|
59
|
+
{
|
|
60
|
+
zigbeeModel: ['AV2010/14', '902010/14'],
|
|
61
|
+
model: 'AV2010/14',
|
|
62
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
63
|
+
description: 'Curtain motion detector',
|
|
64
|
+
fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout],
|
|
65
|
+
toZigbee: [],
|
|
66
|
+
exposes: [e.occupancy(), e.battery_low()],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
zigbeeModel: ['AV2010/16', '902010/16'],
|
|
70
|
+
model: 'AV2010/16',
|
|
71
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
72
|
+
description: 'Wall-mount relay with dimmer',
|
|
73
|
+
extend: extend.light_onoff_brightness({noConfigure: true}),
|
|
74
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
75
|
+
const endpoint = device.getEndpoint(1);
|
|
76
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
zigbeeModel: ['AV2010/18', '902010/18'],
|
|
81
|
+
model: 'AV2010/18',
|
|
82
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
83
|
+
description: 'Wall-mount relay',
|
|
84
|
+
extend: extend.switch(),
|
|
85
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
86
|
+
const endpoint = device.getEndpoint(1);
|
|
87
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
zigbeeModel: ['AV2010/21A', '902010/21A'],
|
|
92
|
+
model: 'AV2010/21A',
|
|
93
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
94
|
+
description: 'Compact magnetic contact sensor',
|
|
95
|
+
fromZigbee: [fz.ias_contact_alarm_1],
|
|
96
|
+
toZigbee: [],
|
|
97
|
+
exposes: [e.contact(), e.battery_low(), e.tamper()],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
zigbeeModel: ['AV2010/21B', '902010/21B'],
|
|
101
|
+
model: 'AV2010/21B',
|
|
102
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
103
|
+
description: 'Magnetic contact sensor with additional input for wired sensors',
|
|
104
|
+
fromZigbee: [fz.ias_contact_alarm_1],
|
|
105
|
+
toZigbee: [],
|
|
106
|
+
exposes: [e.contact(), e.battery_low(), e.tamper()],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
zigbeeModel: ['AV2010/21C', '902010/21C'],
|
|
110
|
+
model: 'AV2010/21C',
|
|
111
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
112
|
+
description: 'Ultra-flat magnetic contact sensor',
|
|
113
|
+
fromZigbee: [fz.ias_contact_alarm_1],
|
|
114
|
+
toZigbee: [],
|
|
115
|
+
exposes: [e.contact(), e.battery_low()],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
zigbeeModel: ['AV2010/22', '902010/22', 'IR_00.00.03.12TC'],
|
|
119
|
+
model: 'AV2010/22',
|
|
120
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
121
|
+
description: 'Professional motion detector',
|
|
122
|
+
fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout],
|
|
123
|
+
toZigbee: [],
|
|
124
|
+
exposes: [e.occupancy(), e.battery_low(), e.tamper()],
|
|
125
|
+
whiteLabel: [{vendor: 'ClimaxTechnology', model: 'IR-9ZBS-SL'}],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
zigbeeModel: ['AV2010/22A', '902010/22A'],
|
|
129
|
+
model: 'AV2010/22A',
|
|
130
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
131
|
+
description: 'Design motion detector',
|
|
132
|
+
fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout],
|
|
133
|
+
toZigbee: [],
|
|
134
|
+
exposes: [e.occupancy(), e.battery_low()],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
zigbeeModel: ['AV2010/22B', '902010/22B'],
|
|
138
|
+
model: 'AV2010/22B',
|
|
139
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
140
|
+
description: 'Outdoor motion detector',
|
|
141
|
+
fromZigbee: [fz.ias_occupancy_alarm_1_with_timeout],
|
|
142
|
+
toZigbee: [],
|
|
143
|
+
exposes: [e.occupancy(), e.battery_low(), e.tamper()],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
zigbeeModel: ['AV2010/23', '902010/23'],
|
|
147
|
+
model: 'AV2010/23',
|
|
148
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
149
|
+
description: '4 button Zigbee remote control',
|
|
150
|
+
fromZigbee: [fz.ias_no_alarm, fz.command_on, fz.command_off, fz.command_step, fz.command_recall],
|
|
151
|
+
toZigbee: [],
|
|
152
|
+
exposes: [e.action(['on', 'off', 'brightness_step_up', 'brightness_step_down', 'recall_*']), e.battery_low()],
|
|
153
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
154
|
+
const endpoint = device.getEndpoint(1);
|
|
155
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genBasic', 'genOnOff', 'genLevelCtrl']);
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
zigbeeModel: ['AV2010/24', '902010/24'],
|
|
160
|
+
model: 'AV2010/24',
|
|
161
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
162
|
+
description: 'Optical smoke detector (hardware version v1)',
|
|
163
|
+
fromZigbee: [fz.ias_smoke_alarm_1],
|
|
164
|
+
toZigbee: [tz.warning],
|
|
165
|
+
exposes: [e.smoke(), e.battery_low(), e.tamper(), e.warning()],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
zigbeeModel: ['AV2010/24A', '902010/24A'],
|
|
169
|
+
model: 'AV2010/24A',
|
|
170
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
171
|
+
description: 'Optical smoke detector (hardware version v2)',
|
|
172
|
+
fromZigbee: [fz.ias_smoke_alarm_1],
|
|
173
|
+
toZigbee: [tz.warning],
|
|
174
|
+
exposes: [e.smoke(), e.battery_low(), e.tamper(), e.warning()],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
zigbeeModel: ['AV2010/25', '902010/25'],
|
|
178
|
+
model: 'AV2010/25',
|
|
179
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
180
|
+
description: 'Wireless socket with metering',
|
|
181
|
+
fromZigbee: [fz.on_off, fz.metering],
|
|
182
|
+
toZigbee: [tz.on_off],
|
|
183
|
+
exposes: [e.switch(), e.power(), e.energy()],
|
|
184
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
185
|
+
const endpoint = device.getEndpoint(1);
|
|
186
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
|
|
187
|
+
await reporting.instantaneousDemand(endpoint);
|
|
188
|
+
await reporting.currentSummDelivered(endpoint);
|
|
189
|
+
try {
|
|
190
|
+
await reporting.currentSummReceived(endpoint);
|
|
191
|
+
} catch (error) {
|
|
192
|
+
/* fails for some: https://github.com/Koenkk/zigbee2mqtt/issues/13258 */
|
|
193
|
+
}
|
|
194
|
+
endpoint.saveClusterAttributeKeyValue('seMetering', {divisor: 10000, multiplier: 1});
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
zigbeeModel: ['AV2010/26', '902010/26'],
|
|
199
|
+
model: 'AV2010/26',
|
|
200
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
201
|
+
description: 'Wireless socket with dimmer',
|
|
202
|
+
extend: extend.light_onoff_brightness({noConfigure: true}),
|
|
203
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
204
|
+
const endpoint = device.getEndpoint(1);
|
|
205
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
zigbeeModel: ['AV2010/28', '902010/28'],
|
|
210
|
+
model: 'AV2010/28',
|
|
211
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
212
|
+
description: 'Wireless socket',
|
|
213
|
+
extend: extend.switch(),
|
|
214
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
215
|
+
const endpoint = device.getEndpoint(1);
|
|
216
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
zigbeeModel: ['AV2010/29', '902010/29'],
|
|
221
|
+
model: 'AV2010/29',
|
|
222
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
223
|
+
description: 'Outdoor siren',
|
|
224
|
+
fromZigbee: [fz.battery],
|
|
225
|
+
toZigbee: [tz.warning],
|
|
226
|
+
exposes: [e.battery_low(), e.tamper(), e.warning()],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
zigbeeModel: ['AV2010/29A', '902010/29A'],
|
|
230
|
+
model: 'AV2010/29A',
|
|
231
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
232
|
+
description: 'Outdoor siren',
|
|
233
|
+
fromZigbee: [fz.ias_siren],
|
|
234
|
+
toZigbee: [tz.warning, tz.squawk],
|
|
235
|
+
exposes: [e.warning(), e.squawk(), e.battery_low(), e.tamper()],
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
zigbeeModel: ['AV2010/32', '902010/32'],
|
|
239
|
+
model: 'AV2010/32',
|
|
240
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
241
|
+
description: 'Wireless wall thermostat with relay',
|
|
242
|
+
fromZigbee: [fz.legacy.thermostat_att_report, fz.battery, fz.hvac_user_interface, bitron.fz.thermostat_hysteresis],
|
|
243
|
+
toZigbee: [
|
|
244
|
+
tz.thermostat_control_sequence_of_operation, tz.thermostat_occupied_heating_setpoint,
|
|
245
|
+
tz.thermostat_occupied_cooling_setpoint, tz.thermostat_local_temperature_calibration,
|
|
246
|
+
tz.thermostat_local_temperature, tz.thermostat_running_state, tz.thermostat_temperature_display_mode,
|
|
247
|
+
tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.battery_voltage, bitron.tz.thermostat_hysteresis,
|
|
248
|
+
],
|
|
249
|
+
exposes: (device, options) => {
|
|
250
|
+
const dynExposes = [];
|
|
251
|
+
let ctrlSeqeOfOper = device ? device.getEndpoint(1).getClusterAttributeValue('hvacThermostat', 'ctrlSeqeOfOper') : null;
|
|
252
|
+
const modes = [];
|
|
253
|
+
|
|
254
|
+
// NOTE: ctrlSeqeOfOper defaults to 2 for this device (according to the manual)
|
|
255
|
+
if (ctrlSeqeOfOper == null) ctrlSeqeOfOper = 2;
|
|
256
|
+
|
|
257
|
+
// NOTE: set cool and/or heat support based on ctrlSeqeOfOper (see lib/constants -> thermostatControlSequenceOfOperations)
|
|
258
|
+
// WARN: a restart of zigbee2mqtt is required after changing ctrlSeqeOfOper for expose data to be re-calculated
|
|
259
|
+
if (ctrlSeqeOfOper >= 2) {
|
|
260
|
+
modes.push('heat');
|
|
261
|
+
}
|
|
262
|
+
if (ctrlSeqeOfOper < 2 || ctrlSeqeOfOper > 3) {
|
|
263
|
+
modes.push('cool');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const hysteresisExposes = exposes.composite('hysteresis', 'hysteresis', ea.ALL)
|
|
267
|
+
.withFeature(exposes.numeric('low', ea.SET))
|
|
268
|
+
.withFeature(exposes.numeric('high', ea.SET))
|
|
269
|
+
.withDescription('Set thermostat hysteresis low and high trigger values. (1 = 0.01ºC)');
|
|
270
|
+
|
|
271
|
+
dynExposes.push(exposes.climate()
|
|
272
|
+
.withSetpoint('occupied_heating_setpoint', 7, 30, 0.5)
|
|
273
|
+
.withLocalTemperature()
|
|
274
|
+
.withSystemMode(['off'].concat(modes))
|
|
275
|
+
.withRunningState(['idle'].concat(modes))
|
|
276
|
+
.withLocalTemperatureCalibration()
|
|
277
|
+
.withControlSequenceOfOperation(['heating_only', 'cooling_only'], ea.ALL));
|
|
278
|
+
dynExposes.push(e.keypad_lockout());
|
|
279
|
+
dynExposes.push(hysteresisExposes);
|
|
280
|
+
dynExposes.push(e.battery().withAccess(ea.STATE_GET));
|
|
281
|
+
dynExposes.push(e.battery_low());
|
|
282
|
+
dynExposes.push(e.linkquality());
|
|
283
|
+
|
|
284
|
+
return dynExposes;
|
|
285
|
+
},
|
|
286
|
+
meta: {battery: {voltageToPercentage: '3V_2500'}},
|
|
287
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
288
|
+
const endpoint = device.getEndpoint(1);
|
|
289
|
+
const binds = [
|
|
290
|
+
'genBasic', 'genPowerCfg', 'genIdentify', 'genPollCtrl', 'hvacThermostat', 'hvacUserInterfaceCfg',
|
|
291
|
+
];
|
|
292
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
293
|
+
await reporting.thermostatTemperature(endpoint);
|
|
294
|
+
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
295
|
+
await reporting.thermostatOccupiedCoolingSetpoint(endpoint);
|
|
296
|
+
await reporting.thermostatRunningState(endpoint);
|
|
297
|
+
await reporting.batteryAlarmState(endpoint);
|
|
298
|
+
await reporting.batteryVoltage(endpoint);
|
|
299
|
+
await endpoint.read('hvacThermostat', ['ctrlSeqeOfOper', 'localTemperatureCalibration']);
|
|
300
|
+
await endpoint.read('hvacThermostat', ['fourNoksHysteresisHigh', 'fourNoksHysteresisLow'], manufacturerOptions);
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
zigbeeModel: ['AV2010/33', '902010/33'],
|
|
305
|
+
model: 'AV2010/33',
|
|
306
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
307
|
+
description: 'Vibration sensor',
|
|
308
|
+
fromZigbee: [fz.ias_occupancy_alarm_2],
|
|
309
|
+
toZigbee: [],
|
|
310
|
+
exposes: [e.occupancy(), e.battery_low()],
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
zigbeeModel: ['AV2010/34', '902010/34'],
|
|
314
|
+
model: 'AV2010/34',
|
|
315
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
316
|
+
description: 'Wall switch with 4 buttons',
|
|
317
|
+
fromZigbee: [fz.command_recall],
|
|
318
|
+
toZigbee: [],
|
|
319
|
+
exposes: [e.action(['recall_*'])],
|
|
320
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
321
|
+
const endpoint = device.getEndpoint(1);
|
|
322
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genScenes']);
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
zigbeeModel: ['AV2010/37', '902010/37'],
|
|
327
|
+
model: 'AV2010/37',
|
|
328
|
+
vendor: 'SMaBiT (Bitron Video)',
|
|
329
|
+
description: 'Water detector with siren',
|
|
330
|
+
fromZigbee: [fz.ias_water_leak_alarm_1],
|
|
331
|
+
toZigbee: [],
|
|
332
|
+
exposes: [e.water_leak(), e.battery_low()],
|
|
333
|
+
},
|
|
334
|
+
];
|
|
@@ -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: ['SCM-2_00.00.03.15', 'SCM-R_00.00.03.15TC', 'SCM_00.00.03.14TC', 'SCM_00.00.03.05TC'],
|
|
11
|
+
model: 'SCM-S1',
|
|
12
|
+
vendor: 'Blaupunkt',
|
|
13
|
+
description: 'Roller shutter',
|
|
14
|
+
fromZigbee: [fz.cover_position_via_brightness, fz.cover_state_via_onoff],
|
|
15
|
+
toZigbee: [tz.cover_via_brightness],
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint = device.getEndpoint(1);
|
|
18
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genLevelCtrl']);
|
|
19
|
+
try {
|
|
20
|
+
await reporting.brightness(endpoint);
|
|
21
|
+
} catch (e) {
|
|
22
|
+
// Some version don't support this: https://github.com/Koenkk/zigbee2mqtt/issues/4246
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
exposes: [e.cover_position().setAccess('state', ea.ALL)],
|
|
26
|
+
},
|
|
27
|
+
];
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
|
|
8
|
+
module.exports = [
|
|
9
|
+
{
|
|
10
|
+
zigbeeModel: ['5j6ifxj', '5j6ifxj\u0000'],
|
|
11
|
+
model: 'BW-IS3',
|
|
12
|
+
vendor: 'BlitzWolf',
|
|
13
|
+
description: 'Rechargeable Zigbee PIR motion sensor',
|
|
14
|
+
fromZigbee: [fz.blitzwolf_occupancy_with_timeout],
|
|
15
|
+
toZigbee: [],
|
|
16
|
+
exposes: [e.occupancy()],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
|
|
20
|
+
fingerprint: [{modelID: 'TS0003', manufacturerName: '_TYZB01_aneiicmq'}],
|
|
21
|
+
model: 'BW-SS7_1gang',
|
|
22
|
+
vendor: 'BlitzWolf',
|
|
23
|
+
description: 'Zigbee 3.0 smart light switch module 1 gang',
|
|
24
|
+
extend: extend.switch(),
|
|
25
|
+
toZigbee: [tz.TYZB01_on_off, tz.power_on_behavior],
|
|
26
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
27
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
fingerprint: [{modelID: 'TS0003', manufacturerName: '_TYZB01_digziiav'}],
|
|
32
|
+
model: 'BW-SS7_2gang',
|
|
33
|
+
vendor: 'BlitzWolf',
|
|
34
|
+
description: 'Zigbee 3.0 smart light switch module 2 gang',
|
|
35
|
+
extend: extend.switch(),
|
|
36
|
+
exposes: [e.switch().withEndpoint('l1'), e.switch().withEndpoint('l2')],
|
|
37
|
+
endpoint: (device) => {
|
|
38
|
+
return {'l1': 1, 'l2': 2};
|
|
39
|
+
},
|
|
40
|
+
toZigbee: [tz.TYZB01_on_off],
|
|
41
|
+
meta: {multiEndpoint: true},
|
|
42
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
43
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
44
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
];
|