@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/vrey.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const reporting = require('../lib/reporting');
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
fingerprint: [
|
|
7
|
+
{modelID: 'TS0001', manufacturerName: '_TYZB01_reyozfcg'},
|
|
8
|
+
{modelID: 'TS0001', manufacturerName: '_TYZB01_4vgantdz'},
|
|
9
|
+
],
|
|
10
|
+
model: 'VR-X701U',
|
|
11
|
+
vendor: 'Vrey',
|
|
12
|
+
description: '1 gang switch',
|
|
13
|
+
extend: extend.switch(),
|
|
14
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
15
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
];
|
package/devices/wally.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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: ['MultiSensor'],
|
|
9
|
+
model: 'U02I007C.01',
|
|
10
|
+
vendor: 'Wally',
|
|
11
|
+
description: 'WallyHome multi-sensor',
|
|
12
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.battery, fz.temperature, fz.humidity, fz.U02I007C01_contact,
|
|
13
|
+
fz.U02I007C01_water_leak],
|
|
14
|
+
exposes: [e.battery(), e.temperature(), e.humidity(), e.action(['on', 'off']), e.contact(), e.water_leak()],
|
|
15
|
+
toZigbee: [],
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint = device.getEndpoint(1);
|
|
18
|
+
const binds = ['genPowerCfg', 'genOnOff', 'msTemperatureMeasurement', 'msRelativeHumidity'];
|
|
19
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
20
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
21
|
+
await reporting.temperature(endpoint);
|
|
22
|
+
await reporting.humidity(endpoint);
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
];
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
zigbeeModel: ['leakSMART Water Sensor V2'],
|
|
10
|
+
model: '8840100H',
|
|
11
|
+
vendor: 'Waxman',
|
|
12
|
+
description: 'leakSMART water sensor v2',
|
|
13
|
+
fromZigbee: [fz._8840100H_water_leak_alarm, fz.temperature, fz.battery],
|
|
14
|
+
toZigbee: [],
|
|
15
|
+
exposes: [e.battery(), e.temperature(), e.water_leak()],
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint = device.getEndpoint(1);
|
|
18
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'haApplianceEventsAlerts', 'msTemperatureMeasurement']);
|
|
19
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
20
|
+
await reporting.temperature(endpoint);
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
zigbeeModel: ['House Water Valve - MDL-TBD', 'leakSMART Water Valve v2.10'],
|
|
25
|
+
// Should work with all manufacturer model numbers for the 2.0 series:
|
|
26
|
+
// 8850000 3/4"
|
|
27
|
+
// 8850100 1"
|
|
28
|
+
// 8850200 1-1/4"
|
|
29
|
+
// 8850300 1-1/2"
|
|
30
|
+
// 8850310 2"
|
|
31
|
+
model: '8850100',
|
|
32
|
+
vendor: 'Waxman',
|
|
33
|
+
description: 'leakSMART automatic water shut-off valve 2.0',
|
|
34
|
+
fromZigbee: [fz.battery, fz.on_off],
|
|
35
|
+
toZigbee: [tz.on_off],
|
|
36
|
+
exposes: [e.battery(), e.switch()],
|
|
37
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
38
|
+
const endpoint = device.getEndpoint(1);
|
|
39
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'haApplianceEventsAlerts', 'genOnOff']);
|
|
40
|
+
await reporting.onOff(endpoint);
|
|
41
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
42
|
+
await reporting.batteryVoltage(endpoint);
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
];
|
|
@@ -0,0 +1,67 @@
|
|
|
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 e = exposes.presets;
|
|
7
|
+
|
|
8
|
+
module.exports = [
|
|
9
|
+
{
|
|
10
|
+
zigbeeModel: ['SMARTCODE_DEADBOLT_10'],
|
|
11
|
+
model: '9GED18000-009',
|
|
12
|
+
vendor: 'Weiser',
|
|
13
|
+
description: 'SmartCode 10',
|
|
14
|
+
fromZigbee: [fz.lock, fz.lock_operation_event, fz.battery, fz.lock_programming_event, fz.lock_pin_code_response],
|
|
15
|
+
toZigbee: [tz.lock, tz.pincode_lock],
|
|
16
|
+
meta: {pinCodeCount: 30},
|
|
17
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
18
|
+
const endpoint = device.getEndpoint(2);
|
|
19
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
|
|
20
|
+
await reporting.lockState(endpoint);
|
|
21
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
22
|
+
},
|
|
23
|
+
// Note - Keypad triggered deletions do not cause a zigbee event, though Adds work fine.
|
|
24
|
+
onEvent: async (type, data, device) => {
|
|
25
|
+
// When we receive a code updated message, lets read the new value
|
|
26
|
+
if (data.type === 'commandProgrammingEventNotification' &&
|
|
27
|
+
data.cluster === 'closuresDoorLock' &&
|
|
28
|
+
data.data &&
|
|
29
|
+
data.data.userid !== undefined &&
|
|
30
|
+
// Don't read RF events, we can do this with retrieve_state
|
|
31
|
+
(data.data.programeventsrc === undefined || constants.lockSourceName[data.data.programeventsrc] != 'rf')
|
|
32
|
+
) {
|
|
33
|
+
await device.endpoints[0].command('closuresDoorLock', 'getPinCode', {userid: data.data.userid}, {});
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
exposes: [e.lock(), e.battery(), e.pincode(), e.lock_action(), e.lock_action_source_name(), e.lock_action_user()],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
zigbeeModel: ['SMARTCODE_DEADBOLT_10T'],
|
|
40
|
+
model: '9GED21500-005',
|
|
41
|
+
vendor: 'Weiser',
|
|
42
|
+
description: 'SmartCode 10 Touch',
|
|
43
|
+
fromZigbee: [fz.lock, fz.lock_operation_event, fz.battery, fz.lock_programming_event, fz.lock_pin_code_response],
|
|
44
|
+
toZigbee: [tz.lock, tz.pincode_lock],
|
|
45
|
+
meta: {pinCodeCount: 30},
|
|
46
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
47
|
+
const endpoint = device.getEndpoint(2);
|
|
48
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
|
|
49
|
+
await reporting.lockState(endpoint);
|
|
50
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
51
|
+
},
|
|
52
|
+
// Note - Keypad triggered deletions do not cause a zigbee event, though Adds work fine.
|
|
53
|
+
onEvent: async (type, data, device) => {
|
|
54
|
+
// When we receive a code updated message, lets read the new value
|
|
55
|
+
if (data.type === 'commandProgrammingEventNotification' &&
|
|
56
|
+
data.cluster === 'closuresDoorLock' &&
|
|
57
|
+
data.data &&
|
|
58
|
+
data.data.userid !== undefined &&
|
|
59
|
+
// Don't read RF events, we can do this with retrieve_state
|
|
60
|
+
(data.data.programeventsrc === undefined || constants.lockSourceName[data.data.programeventsrc] != 'rf')
|
|
61
|
+
) {
|
|
62
|
+
await device.endpoints[0].command('closuresDoorLock', 'getPinCode', {userid: data.data.userid}, {});
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
exposes: [e.lock(), e.battery(), e.pincode(), e.lock_action(), e.lock_action_source_name(), e.lock_action_user()],
|
|
66
|
+
},
|
|
67
|
+
];
|
package/devices/weten.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
fingerprint: [{modelID: 'TS0001', manufacturerName: '_TZ3000_wrhhi5h2'}],
|
|
7
|
+
model: '1GNNTS',
|
|
8
|
+
vendor: 'WETEN',
|
|
9
|
+
description: '1 gang no neutral touch wall switch',
|
|
10
|
+
extend: extend.switch(),
|
|
11
|
+
fromZigbee: [fz.on_off, fz.ignore_basic_report, fz.ignore_time_read],
|
|
12
|
+
},
|
|
13
|
+
];
|
package/devices/woox.js
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const reporting = require('../lib/reporting');
|
|
3
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
4
|
+
const tz = require('../converters/toZigbee');
|
|
5
|
+
const tuya = require('../lib/tuya');
|
|
6
|
+
const e = exposes.presets;
|
|
7
|
+
const ea = exposes.access;
|
|
8
|
+
|
|
9
|
+
const fzLocal = {
|
|
10
|
+
R7049_status: {
|
|
11
|
+
cluster: 'manuSpecificTuya',
|
|
12
|
+
type: ['commandDataResponse', 'commandDataReport'],
|
|
13
|
+
convert: (model, msg, publish, options, meta) => {
|
|
14
|
+
const result = {};
|
|
15
|
+
for (const dpValue of msg.data.dpValues) {
|
|
16
|
+
const dp = dpValue.dp; // First we get the data point ID
|
|
17
|
+
const value = tuya.getDataValue(dpValue); // This function will take care of converting the data to proper JS type
|
|
18
|
+
switch (dp) {
|
|
19
|
+
case 1:
|
|
20
|
+
result.smoke = Boolean(!value);
|
|
21
|
+
break;
|
|
22
|
+
case 8:
|
|
23
|
+
result.test_alarm = value;
|
|
24
|
+
break;
|
|
25
|
+
case 9: {
|
|
26
|
+
const testAlarmResult = {0: 'checking', 1: 'check_success', 2: 'check_failure', 3: 'others'};
|
|
27
|
+
result.test_alarm_result = testAlarmResult[value];
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
case 11:
|
|
31
|
+
result.fault_alarm = Boolean(value);
|
|
32
|
+
break;
|
|
33
|
+
case 14: {
|
|
34
|
+
const batteryLevels = {0: 'low', 1: 'middle', 2: 'high'};
|
|
35
|
+
result.battery_level = batteryLevels[value];
|
|
36
|
+
result.battery_low = value === 0;
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
case 16:
|
|
40
|
+
result.silence_siren = value;
|
|
41
|
+
break;
|
|
42
|
+
case 20: {
|
|
43
|
+
const alarm = {0: true, 1: false};
|
|
44
|
+
result.alarm = alarm[value];
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
default:
|
|
48
|
+
meta.logger.warn(`zigbee-herdsman-converters:Woox Smoke Detector: NOT RECOGNIZED DP #${
|
|
49
|
+
dp} with data ${JSON.stringify(dpValue)}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return result;
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
woox_R7060: {
|
|
56
|
+
cluster: 'manuSpecificTuya',
|
|
57
|
+
type: ['commandActiveStatusReport'],
|
|
58
|
+
convert: (model, msg, publish, options, meta) => {
|
|
59
|
+
const dpValue = tuya.firstDpValue(msg, meta, 'woox_R7060');
|
|
60
|
+
const dp = dpValue.dp;
|
|
61
|
+
const value = tuya.getDataValue(dpValue);
|
|
62
|
+
|
|
63
|
+
switch (dp) {
|
|
64
|
+
case tuya.dataPoints.wooxSwitch:
|
|
65
|
+
return {state: value === 2 ? 'OFF' : 'ON'};
|
|
66
|
+
case 101:
|
|
67
|
+
return {battery: value};
|
|
68
|
+
default:
|
|
69
|
+
meta.logger.warn(`zigbee-herdsman-converters:WooxR7060: Unrecognized DP #${
|
|
70
|
+
dp} with data ${JSON.stringify(dpValue)}`);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const tzLocal = {
|
|
77
|
+
R7049_silenceSiren: {
|
|
78
|
+
key: ['silence_siren'],
|
|
79
|
+
convertSet: async (entity, key, value, meta) => {
|
|
80
|
+
await tuya.sendDataPointBool(entity, 16, value);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
R7049_testAlarm: {
|
|
84
|
+
key: ['test_alarm'],
|
|
85
|
+
convertSet: async (entity, key, value, meta) => {
|
|
86
|
+
await tuya.sendDataPointBool(entity, 8, value);
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
R7049_alarm: {
|
|
90
|
+
key: ['alarm'],
|
|
91
|
+
convertSet: async (entity, key, value, meta) => {
|
|
92
|
+
const linkAlarm = {true: 0, false: 1};
|
|
93
|
+
await tuya.sendDataPointEnum(entity, 20, linkAlarm[value]);
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
module.exports = [
|
|
99
|
+
{
|
|
100
|
+
fingerprint: [{modelID: 'TS0101', manufacturerName: '_TZ3210_eymunffl'}],
|
|
101
|
+
model: 'R7060',
|
|
102
|
+
vendor: 'Woox',
|
|
103
|
+
description: 'Smart garden irrigation control',
|
|
104
|
+
fromZigbee: [fz.on_off, fz.ignore_tuya_set_time, fz.ignore_basic_report, fzLocal.woox_R7060],
|
|
105
|
+
toZigbee: [tz.on_off],
|
|
106
|
+
onEvent: tuya.onEventSetTime,
|
|
107
|
+
exposes: [e.switch(), e.battery()],
|
|
108
|
+
meta: {disableDefaultResponse: true},
|
|
109
|
+
configure: tuya.configureMagicPacket,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
fingerprint: [{modelID: 'TS0505A', manufacturerName: '_TZ3000_keabpigv'}],
|
|
113
|
+
model: 'R9077',
|
|
114
|
+
vendor: 'Woox',
|
|
115
|
+
description: 'RGB+CCT LED',
|
|
116
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
117
|
+
meta: {applyRedFix: true},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
fingerprint: [{modelID: 'TS0201', manufacturerName: '_TZ3000_rusu2vzb'}],
|
|
121
|
+
model: 'R7048',
|
|
122
|
+
vendor: 'Woox',
|
|
123
|
+
description: 'Smart humidity & temperature sensor',
|
|
124
|
+
fromZigbee: [fz.battery, fz.temperature, fz.humidity],
|
|
125
|
+
toZigbee: [],
|
|
126
|
+
exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
|
|
127
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
128
|
+
const endpoint = device.getEndpoint(1);
|
|
129
|
+
const bindClusters = ['msTemperatureMeasurement', 'msRelativeHumidity', 'genPowerCfg'];
|
|
130
|
+
await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
|
|
131
|
+
await reporting.temperature(endpoint);
|
|
132
|
+
await reporting.humidity(endpoint);
|
|
133
|
+
await reporting.batteryVoltage(endpoint);
|
|
134
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_aycxwiau'}],
|
|
139
|
+
model: 'R7049',
|
|
140
|
+
vendor: 'Woox',
|
|
141
|
+
description: 'Smart smoke alarm',
|
|
142
|
+
meta: {timeout: 30000, disableDefaultResponse: true},
|
|
143
|
+
fromZigbee: [fzLocal.R7049_status, fz.ignore_tuya_set_time, fz.ignore_time_read],
|
|
144
|
+
toZigbee: [tzLocal.R7049_silenceSiren, tzLocal.R7049_testAlarm, tzLocal.R7049_alarm],
|
|
145
|
+
exposes: [e.battery_low(),
|
|
146
|
+
exposes.binary('smoke', ea.STATE, true, false).withDescription('Smoke alarm status'),
|
|
147
|
+
exposes.binary('test_alarm', ea.STATE_SET, true, false).withDescription('Test alarm'),
|
|
148
|
+
exposes.enum('test_alarm_result', ea.STATE, ['checking', 'check_success', 'check_failure', 'others'])
|
|
149
|
+
.withDescription('Test alarm result'),
|
|
150
|
+
exposes.enum('battery_level', ea.STATE, ['low', 'middle', 'high']).withDescription('Battery level state'),
|
|
151
|
+
exposes.binary('alarm', ea.STATE_SET, true, false).withDescription('Alarm enable'),
|
|
152
|
+
exposes.binary('fault_alarm', ea.STATE, true, false).withDescription('Fault alarm status'),
|
|
153
|
+
exposes.binary('silence_siren', ea.STATE_SET, true, false).withDescription('Silence siren')],
|
|
154
|
+
onEvent: tuya.onEventsetTime,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
fingerprint: [{modelID: 'TS0219', manufacturerName: '_TYZB01_ynsiasng'}, {modelID: 'TS0219', manufacturerName: '_TYZB01_bwsijaty'},
|
|
158
|
+
{modelID: 'TS0219', manufacturerName: '_TYZB01_rs7ff6o7'}],
|
|
159
|
+
model: 'R7051',
|
|
160
|
+
vendor: 'Woox',
|
|
161
|
+
description: 'Smart siren',
|
|
162
|
+
fromZigbee: [fz.battery, fz.ts0216_siren, fz.ias_alarm_only_alarm_1, fz.power_source],
|
|
163
|
+
toZigbee: [tz.warning, tz.ts0216_volume, tz.ts0216_duration],
|
|
164
|
+
exposes: [e.battery(), e.battery_voltage(), e.warning(), exposes.binary('alarm', ea.STATE, true, false),
|
|
165
|
+
exposes.binary('ac_connected', ea.STATE, true, false).withDescription('Is the device plugged in'),
|
|
166
|
+
exposes.numeric('volume', ea.ALL).withValueMin(0).withValueMax(100).withDescription('Volume of siren'),
|
|
167
|
+
exposes.numeric('duration', ea.ALL).withValueMin(0).withValueMax(3600).withDescription('Duration of siren')],
|
|
168
|
+
meta: {disableDefaultResponse: true},
|
|
169
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
170
|
+
const endpoint = device.getEndpoint(1);
|
|
171
|
+
const bindClusters = ['genPowerCfg'];
|
|
172
|
+
await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
|
|
173
|
+
await reporting.batteryVoltage(endpoint);
|
|
174
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
];
|
package/devices/wyze.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = require('../converters/fromZigbee');
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
4
|
+
const reporting = require('../lib/reporting');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
zigbeeModel: ['Ford'],
|
|
10
|
+
model: 'WLCKG1',
|
|
11
|
+
vendor: 'Wyze',
|
|
12
|
+
description: 'Lock',
|
|
13
|
+
fromZigbee: [fz.lock, fz.lock_operation_event, fz.battery],
|
|
14
|
+
toZigbee: [tz.lock],
|
|
15
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
16
|
+
const endpoint = device.endpoints[0];
|
|
17
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresDoorLock', 'genPowerCfg']);
|
|
18
|
+
await reporting.lockState(endpoint);
|
|
19
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
20
|
+
},
|
|
21
|
+
exposes: [e.lock(), e.battery()],
|
|
22
|
+
},
|
|
23
|
+
];
|