@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,49 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
const tuya = require('../lib/tuya');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
zigbeeModel: ['AJ-RGBCCT 5 in 1'],
|
|
7
|
+
model: 'Aj_Zigbee_Led_Strip',
|
|
8
|
+
vendor: 'Ajax Online',
|
|
9
|
+
description: 'LED Strip',
|
|
10
|
+
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
zigbeeModel: ['AJ_ZB30_GU10', 'AJ_ZB120_GU10'],
|
|
14
|
+
model: 'AJ_ZB_GU10',
|
|
15
|
+
vendor: 'Ajax Online',
|
|
16
|
+
description: 'Smart Zigbee pro GU10 spotlight bulb',
|
|
17
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [158, 495], disableEffect: true}),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
zigbeeModel: ['AJ_ZBPROA60', 'AJ_ZBPROA6'],
|
|
21
|
+
model: 'AJ_ZIGPROA60',
|
|
22
|
+
vendor: 'Ajax Online',
|
|
23
|
+
description: 'Smart Zigbee pro 12W A60 bulb',
|
|
24
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [158, 495]}),
|
|
25
|
+
meta: {turnsOffAtBrightness1: true},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
zigbeeModel: ['ZB_A60_RGBCW'],
|
|
29
|
+
model: 'ZB_A60_RGBCW',
|
|
30
|
+
vendor: 'Ajax Online',
|
|
31
|
+
description: 'Smart Zigbee pro 12W A60 RGBCW bulb',
|
|
32
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_hzy4rjz3'}],
|
|
36
|
+
model: 'AJ_RGBCCT_CTRL',
|
|
37
|
+
vendor: 'Ajax Online',
|
|
38
|
+
description: 'Smart Zigbee LED strip RGB+CCT',
|
|
39
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
40
|
+
meta: {applyRedFix: true, enhancedHue: false},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
fingerprint: [{modelID: 'CCT Light', manufacturerName: 'ZB/Ajax Online', manufacturerID: 4137}],
|
|
44
|
+
model: 'ZB-CCT_Filament',
|
|
45
|
+
vendor: 'Ajax Online',
|
|
46
|
+
description: 'Zigbee LED filament light dimmable E27, edison ST64, flame 2200K',
|
|
47
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
48
|
+
},
|
|
49
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = require('../converters/fromZigbee');
|
|
3
|
+
const reporting = require('../lib/reporting');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
fingerprint: [{modelID: 'TS0201', manufacturerName: '_TYZB01_ujfk3xd9'}],
|
|
9
|
+
model: 'M423-9E',
|
|
10
|
+
vendor: 'Akuvox',
|
|
11
|
+
description: 'Smart temperature & humidity Sensor',
|
|
12
|
+
exposes: [e.battery(), e.temperature(), e.humidity()],
|
|
13
|
+
fromZigbee: [fz.temperature, fz.humidity, fz.battery],
|
|
14
|
+
toZigbee: [],
|
|
15
|
+
meta: {battery: {voltageToPercentage: '3V_2500'}},
|
|
16
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
|
+
const endpoint1 = device.getEndpoint(1);
|
|
18
|
+
await reporting.bind(endpoint1, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
|
|
19
|
+
await endpoint1.read('genPowerCfg', ['batteryPercentageRemaining']);
|
|
20
|
+
const endpoint2 = device.getEndpoint(2);
|
|
21
|
+
await reporting.bind(endpoint2, coordinatorEndpoint, ['msRelativeHumidity']);
|
|
22
|
+
await reporting.temperature(endpoint1);
|
|
23
|
+
await reporting.humidity(endpoint2);
|
|
24
|
+
await reporting.batteryVoltage(endpoint1);
|
|
25
|
+
await reporting.batteryPercentageRemaining(endpoint1);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
zigbeeModel: ['AL8TC13W-AP'],
|
|
6
|
+
model: 'AL8TC13W-AP',
|
|
7
|
+
vendor: 'Alchemy',
|
|
8
|
+
description: 'Downlight with tuneable white',
|
|
9
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
zigbeeModel: ['AL8RGB13W-AP'],
|
|
13
|
+
model: 'AL8RGB13W-AP',
|
|
14
|
+
vendor: 'Alchemy',
|
|
15
|
+
description: 'Downlight RGBW',
|
|
16
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
17
|
+
},
|
|
18
|
+
];
|
package/devices/aldi.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const tuya = require('../lib/tuya');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_j0gtlepx'}],
|
|
9
|
+
model: 'L122FF63H11A5.0W',
|
|
10
|
+
vendor: 'Aldi',
|
|
11
|
+
description: 'LIGHTWAY smart home LED-lamp - spot',
|
|
12
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
13
|
+
meta: {applyRedFix: true},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_iivsrikg'}],
|
|
17
|
+
model: 'L122AA63H11A6.5W',
|
|
18
|
+
vendor: 'Aldi',
|
|
19
|
+
description: 'LIGHTWAY smart home LED-lamp - candle',
|
|
20
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
fingerprint: [{modelID: 'TS0502B', manufacturerName: '_TZ3000_g1glzzfk'}],
|
|
24
|
+
model: 'F122SB62H22A4.5W',
|
|
25
|
+
vendor: 'Aldi',
|
|
26
|
+
description: 'LIGHTWAY smart home LED-lamp - filament',
|
|
27
|
+
extend: tuya.extend.light_onoff_brightness_colortemp(),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_v1srfw9x'}],
|
|
31
|
+
model: 'C422AC11D41H140.0W',
|
|
32
|
+
vendor: 'Aldi',
|
|
33
|
+
description: 'MEGOS LED panel RGB+CCT 40W 3600lm 62 x 62 cm',
|
|
34
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_gb5gaeca'}],
|
|
38
|
+
model: 'C422AC14D41H140.0W',
|
|
39
|
+
vendor: 'Aldi',
|
|
40
|
+
description: 'MEGOS LED panel RGB+CCT 40W 3600lm 30 x 120 cm',
|
|
41
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
fingerprint: [{modelID: 'TS1001', manufacturerName: '_TZ3000_ztrfrcsu'}],
|
|
45
|
+
model: '141L100RC',
|
|
46
|
+
vendor: 'Aldi',
|
|
47
|
+
description: 'MEGOS switch and dimming light remote control',
|
|
48
|
+
exposes: [e.action(['on', 'off', 'brightness_stop', 'brightness_step_up', 'brightness_step_down', 'brightness_move_up',
|
|
49
|
+
'brightness_move_down'])],
|
|
50
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_step, fz.command_move, fz.command_stop],
|
|
51
|
+
toZigbee: [],
|
|
52
|
+
},
|
|
53
|
+
];
|
|
@@ -0,0 +1,98 @@
|
|
|
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 tuya = require('../lib/tuya');
|
|
5
|
+
const e = exposes.presets;
|
|
6
|
+
const ea = exposes.access;
|
|
7
|
+
|
|
8
|
+
const fzLocal = {
|
|
9
|
+
tuya_alecto_smoke: {
|
|
10
|
+
cluster: 'manuSpecificTuya',
|
|
11
|
+
type: ['commandDataResponse', 'commandDataReport'],
|
|
12
|
+
convert: (model, msg, publish, options, meta) => {
|
|
13
|
+
const dpValue = tuya.firstDpValue(msg, meta, 'tuya_alecto_smoke');
|
|
14
|
+
const dp = dpValue.dp;
|
|
15
|
+
const value = tuya.getDataValue(dpValue);
|
|
16
|
+
switch (dp) {
|
|
17
|
+
case tuya.dataPoints.alectoSmokeState:
|
|
18
|
+
return {smoke_state: {0: 'alarm', 1: 'normal'}[value]};
|
|
19
|
+
case tuya.dataPoints.alectoSmokeValue:
|
|
20
|
+
return {smoke_value: value};
|
|
21
|
+
case tuya.dataPoints.alectoSelfChecking:
|
|
22
|
+
return {self_checking: value};
|
|
23
|
+
case tuya.dataPoints.alectoCheckingResult:
|
|
24
|
+
return {checking_result: {0: 'checking', 1: 'check_success', 2: 'check_failure', 3: 'others'}[value]};
|
|
25
|
+
case tuya.dataPoints.alectoSmokeTest:
|
|
26
|
+
return {smoke_test: value};
|
|
27
|
+
case tuya.dataPoints.alectoLifecycle:
|
|
28
|
+
return {lifecycle: value};
|
|
29
|
+
case tuya.dataPoints.alectoBatteryPercentage:
|
|
30
|
+
return {battery: value};
|
|
31
|
+
case tuya.dataPoints.alectoBatteryState:
|
|
32
|
+
return {battery_state: {0: 'low', 1: 'middle', 2: 'high'}[value]};
|
|
33
|
+
case tuya.dataPoints.alectoSilence:
|
|
34
|
+
return {silence: value};
|
|
35
|
+
default:
|
|
36
|
+
meta.logger.warn(`zigbee-herdsman-converters:tuya_alecto_smoke: Unrecognized ` +
|
|
37
|
+
`DP #${ dp} with data ${JSON.stringiy(msg.data)}`);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const tzLocal = {
|
|
44
|
+
tuya_alecto_smoke: {
|
|
45
|
+
key: ['self_checking', 'silence'],
|
|
46
|
+
convertSet: async (entity, key, value, meta) => {
|
|
47
|
+
switch (key) {
|
|
48
|
+
case 'self_checking':
|
|
49
|
+
await tuya.sendDataPointBool(entity, tuya.dataPoints.alectoSelfChecking, value);
|
|
50
|
+
break;
|
|
51
|
+
case 'silence':
|
|
52
|
+
await tuya.sendDataPointBool(entity, tuya.dataPoints.alectoSilence, value);
|
|
53
|
+
break;
|
|
54
|
+
default: // Unknown key
|
|
55
|
+
throw new Error(`zigbee-herdsman-converters:tuya_alecto_smoke: Unhandled key ${key}`);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
module.exports = [
|
|
62
|
+
{
|
|
63
|
+
fingerprint: [
|
|
64
|
+
{modelID: 'daqwrsj\u0000', manufacturerName: '_TYST11_8daqwrsj'},
|
|
65
|
+
{modelID: 'TS0601', manufacturerName: '_TZE200_qtbrwrfv'},
|
|
66
|
+
{modelID: 'TS0601', manufacturerName: '_TZE200_8daqwrsj'},
|
|
67
|
+
],
|
|
68
|
+
model: 'SMART-HEAT10',
|
|
69
|
+
vendor: 'Alecto',
|
|
70
|
+
description: 'Radiator valve with thermostat',
|
|
71
|
+
fromZigbee: [fz.tuya_thermostat, fz.ignore_basic_report],
|
|
72
|
+
meta: {tuyaThermostatSystemMode: tuya.thermostatSystemModes4, tuyaThermostatPreset: tuya.thermostatPresets,
|
|
73
|
+
tuyaThermostatPresetToSystemMode: tuya.thermostatSystemModes4},
|
|
74
|
+
toZigbee: [tz.tuya_thermostat_child_lock, tz.siterwell_thermostat_window_detection,
|
|
75
|
+
tz.tuya_thermostat_current_heating_setpoint, tz.tuya_thermostat_system_mode,
|
|
76
|
+
],
|
|
77
|
+
exposes: [e.child_lock(), e.window_detection(), e.battery(), exposes.climate()
|
|
78
|
+
.withSetpoint('current_heating_setpoint', 5, 30, 0.5, ea.STATE_SET).withLocalTemperature(ea.STATE)
|
|
79
|
+
.withSystemMode(['off', 'auto', 'heat'], ea.STATE_SET)],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
fingerprint: [{modelID: 'tbrwrfv\u0000', manufacturerName: '_TYST11_qtbrwrfv'}],
|
|
83
|
+
model: 'SMART-SMOKE10',
|
|
84
|
+
vendor: 'Alecto',
|
|
85
|
+
description: 'Smoke detector',
|
|
86
|
+
fromZigbee: [fzLocal.tuya_alecto_smoke],
|
|
87
|
+
toZigbee: [tzLocal.tuya_alecto_smoke],
|
|
88
|
+
meta: {},
|
|
89
|
+
exposes: [exposes.text('smoke_state', ea.STATE, ['alarm', 'normal']),
|
|
90
|
+
exposes.text('battery_state', ea.STATE, ['low', 'middle', 'high']),
|
|
91
|
+
exposes.text('checking_result', ea.STATE, ['checking', 'check_success', 'check_failure', 'others']),
|
|
92
|
+
exposes.numeric('smoke_value', ea.STATE),
|
|
93
|
+
exposes.numeric('battery', ea.STATE),
|
|
94
|
+
exposes.binary('lifecycle', ea.STATE, true, false),
|
|
95
|
+
exposes.binary('self_checking', ea.STATE_SET, true, false),
|
|
96
|
+
exposes.binary('silence', ea.STATE_SET, true, false)],
|
|
97
|
+
},
|
|
98
|
+
];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const reporting = require('../lib/reporting');
|
|
2
|
+
const extend = require('../lib/extend');
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
{
|
|
6
|
+
zigbeeModel: ['FB56-SKT17AC1.4'],
|
|
7
|
+
model: '67200BL',
|
|
8
|
+
description: 'Vetaar smart plug',
|
|
9
|
+
vendor: 'Anchor',
|
|
10
|
+
extend: extend.switch(),
|
|
11
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
12
|
+
const endpoint = device.getEndpoint(3) || device.getEndpoint(1);
|
|
13
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
14
|
+
await reporting.onOff(endpoint);
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
];
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const fz = require('../converters/fromZigbee');
|
|
2
|
+
const tz = require('../converters/toZigbee');
|
|
3
|
+
const exposes = require('../lib/exposes');
|
|
4
|
+
const reporting = require('../lib/reporting');
|
|
5
|
+
const utils = require('../lib/utils');
|
|
6
|
+
const assert = require('assert');
|
|
7
|
+
const e = exposes.presets;
|
|
8
|
+
const ea = exposes.access;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const thermostatPositions = {
|
|
12
|
+
'quarter_open': 1,
|
|
13
|
+
'half_open': 2,
|
|
14
|
+
'three_quarters_open': 3,
|
|
15
|
+
'fully_open': 4,
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const tzLocal = {
|
|
19
|
+
quiet_fan: {
|
|
20
|
+
key: ['quiet_fan'],
|
|
21
|
+
convertSet: async (entity, key, value, meta) => {
|
|
22
|
+
assert(typeof value === 'boolean');
|
|
23
|
+
await entity.write('hvacFanCtrl', {0x1000: {value: value ? 1 : 0, type: 0x10}}, {manufacturerCode: 0x125b});
|
|
24
|
+
return {state: {quiet_fan: value}};
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
ac_louver_position: {
|
|
28
|
+
key: ['ac_louver_position'],
|
|
29
|
+
convertSet: async (entity, key, value, meta) => {
|
|
30
|
+
value = value.toLowerCase();
|
|
31
|
+
utils.validateValue(value, Object.keys(thermostatPositions));
|
|
32
|
+
const index = thermostatPositions[value];
|
|
33
|
+
await entity.write('hvacThermostat', {0x4273: {value: index, type: 0x30}}, {manufacturerCode: 0x125b});
|
|
34
|
+
return {state: {ac_louver_position: value}};
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
preset: {
|
|
38
|
+
key: ['preset'],
|
|
39
|
+
convertSet: async (entity, key, value, meta) => {
|
|
40
|
+
value = value.toLowerCase();
|
|
41
|
+
utils.validateValue(value, ['activity', 'boost', 'eco', 'none']);
|
|
42
|
+
const activity = value === 'activity' ? 1 : 0;
|
|
43
|
+
const boost = value === 'boost' ? 1 : 0;
|
|
44
|
+
const eco = value === 'eco' ? 4 : 0;
|
|
45
|
+
|
|
46
|
+
await entity.write('hvacThermostat', {0x4275: {value: activity, type: 0x30}}, {manufacturerCode: 0x125b});
|
|
47
|
+
await entity.write('hvacThermostat', {'programingOperMode': eco});
|
|
48
|
+
await entity.write('hvacThermostat', {0x4270: {value: boost, type: 0x10}}, {manufacturerCode: 0x125b});
|
|
49
|
+
|
|
50
|
+
return {state: {preset: value}};
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
swingMode: {
|
|
54
|
+
key: ['swing_mode'],
|
|
55
|
+
convertSet: async (entity, key, value, meta) => {
|
|
56
|
+
value = value.toLowerCase();
|
|
57
|
+
utils.validateValue(value, ['on', 'off']);
|
|
58
|
+
await entity.write('hvacThermostat', {0x4274: {value: value === 'on' ? 1 : 0, type: 0x10}}, {manufacturerCode: 0x125b});
|
|
59
|
+
return {state: {swing_mode: value}};
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
module.exports = [{
|
|
65
|
+
zigbeeModel: ['Adapter Zigbee FUJITSU'],
|
|
66
|
+
model: 'GW003-AS-IN-TE-FC',
|
|
67
|
+
vendor: 'Atlantic Group',
|
|
68
|
+
description: 'Interface Naviclim for Takao air conditioners',
|
|
69
|
+
fromZigbee: [
|
|
70
|
+
fz.thermostat,
|
|
71
|
+
fz.fan,
|
|
72
|
+
],
|
|
73
|
+
toZigbee: [
|
|
74
|
+
tzLocal.ac_louver_position,
|
|
75
|
+
tzLocal.preset,
|
|
76
|
+
tzLocal.quiet_fan,
|
|
77
|
+
tzLocal.swingMode,
|
|
78
|
+
tz.fan_mode,
|
|
79
|
+
tz.thermostat_local_temperature,
|
|
80
|
+
tz.thermostat_occupied_cooling_setpoint,
|
|
81
|
+
tz.thermostat_occupied_heating_setpoint,
|
|
82
|
+
tz.thermostat_programming_operation_mode,
|
|
83
|
+
tz.thermostat_system_mode,
|
|
84
|
+
],
|
|
85
|
+
exposes: [
|
|
86
|
+
e.programming_operation_mode(),
|
|
87
|
+
exposes.climate()
|
|
88
|
+
.withLocalTemperature()
|
|
89
|
+
.withSetpoint('occupied_cooling_setpoint', 18, 30, 0.5)
|
|
90
|
+
.withSetpoint('occupied_heating_setpoint', 16, 30, 0.5)
|
|
91
|
+
.withSystemMode(['off', 'heat', 'cool', 'auto', 'dry', 'fan_only'])
|
|
92
|
+
.withPreset(['activity', 'boost', 'eco'])
|
|
93
|
+
.withFanMode(['low', 'medium', 'high', 'auto'])
|
|
94
|
+
.withSwingMode(['on', 'off'], ea.STATE_SET),
|
|
95
|
+
exposes.binary('quiet_fan', ea.STATE_SET, true, false).withDescription('Fan quiet mode'),
|
|
96
|
+
exposes.enum('ac_louver_position', ea.STATE_SET, Object.keys(thermostatPositions))
|
|
97
|
+
.withDescription('Ac louver position of this device'),
|
|
98
|
+
],
|
|
99
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
100
|
+
const endpoint1 = device.getEndpoint(1);
|
|
101
|
+
const binds1 = ['hvacFanCtrl', 'genIdentify', 'hvacFanCtrl', 'hvacThermostat', 'manuSpecificPhilips2'];
|
|
102
|
+
await reporting.bind(endpoint1, coordinatorEndpoint, binds1);
|
|
103
|
+
await reporting.thermostatTemperature(endpoint1);
|
|
104
|
+
await reporting.thermostatOccupiedCoolingSetpoint(endpoint1);
|
|
105
|
+
await reporting.thermostatSystemMode(endpoint1);
|
|
106
|
+
|
|
107
|
+
const endpoint232 = device.getEndpoint(232);
|
|
108
|
+
await reporting.bind(endpoint232, coordinatorEndpoint, ['haDiagnostic']);
|
|
109
|
+
},
|
|
110
|
+
}];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const reporting = require('../lib/reporting');
|
|
3
|
+
const extend = require('../lib/extend');
|
|
4
|
+
const e = exposes.presets;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['Z601', 'Z602', 'Z603', 'Z604'],
|
|
9
|
+
model: 'Z6',
|
|
10
|
+
vendor: 'Atsmart',
|
|
11
|
+
description: '3 gang smart wall switch (no neutral wire)',
|
|
12
|
+
extend: extend.switch(),
|
|
13
|
+
exposes: [e.switch().withEndpoint('left'), e.switch().withEndpoint('center'), e.switch().withEndpoint('right')],
|
|
14
|
+
endpoint: (device) => {
|
|
15
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
16
|
+
},
|
|
17
|
+
meta: {multiEndpoint: true},
|
|
18
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
19
|
+
try {
|
|
20
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
21
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
22
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
// dip switch for 1-3 gang
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const zosung = require('../lib/zosung');
|
|
2
|
+
const fzZosung = zosung.fzZosung;
|
|
3
|
+
const tzZosung = zosung.tzZosung;
|
|
4
|
+
const ez = zosung.presetsZosung;
|
|
5
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
fingerprint: [{modelID: 'TS1201', manufacturerName: '_TZ3290_acv1iuslxi3shaaj'}],
|
|
9
|
+
model: 'ZXZIR-02',
|
|
10
|
+
vendor: 'AUBESS',
|
|
11
|
+
description: 'Universal smart IR remote control',
|
|
12
|
+
fromZigbee: [
|
|
13
|
+
fzZosung.zosung_send_ir_code_00, fzZosung.zosung_send_ir_code_01, fzZosung.zosung_send_ir_code_02,
|
|
14
|
+
fzZosung.zosung_send_ir_code_03, fzZosung.zosung_send_ir_code_04, fzZosung.zosung_send_ir_code_05,
|
|
15
|
+
],
|
|
16
|
+
toZigbee: [
|
|
17
|
+
tzZosung.zosung_ir_code_to_send, tzZosung.zosung_learn_ir_code,
|
|
18
|
+
],
|
|
19
|
+
exposes: [ez.learn_ir_code(), ez.learned_ir_code(), ez.ir_code_to_send()],
|
|
20
|
+
},
|
|
21
|
+
];
|