@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/yale.js
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
const lockExtend = (meta, lockStateOptions=null, binds=['closuresDoorLock', 'genPowerCfg']) => {
|
|
8
|
+
return {
|
|
9
|
+
fromZigbee: [fz.lock, fz.battery, fz.lock_operation_event, fz.lock_programming_event, fz.lock_pin_code_response,
|
|
10
|
+
fz.lock_user_status_response],
|
|
11
|
+
toZigbee: [tz.lock, tz.pincode_lock, tz.lock_userstatus, tz.lock_auto_relock_time, tz.lock_sound_volume],
|
|
12
|
+
meta: {pinCodeCount: 250, ...meta},
|
|
13
|
+
exposes: [e.lock(), e.battery(), e.pincode(), e.lock_action(), e.lock_action_source_name(), e.lock_action_user(),
|
|
14
|
+
e.auto_relock_time().withValueMin(0).withValueMax(3600), e.sound_volume(), e.battery_low()],
|
|
15
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
16
|
+
const endpoint = device.getEndpoint(1);
|
|
17
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
18
|
+
await reporting.lockState(endpoint, lockStateOptions);
|
|
19
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
20
|
+
try {
|
|
21
|
+
await reporting.batteryAlarmState(endpoint);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
// Fails for some: https://github.com/Koenkk/zigbee-herdsman-converters/pull/5414
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const fzLocal = {
|
|
30
|
+
c4_lock_operation_event: {
|
|
31
|
+
cluster: 'genAlarms',
|
|
32
|
+
type: ['commandAlarm'],
|
|
33
|
+
convert: async (model, msg, publish, options, meta) => {
|
|
34
|
+
let result = {};
|
|
35
|
+
if (msg.data.clusterid == 64512) {
|
|
36
|
+
const alarmcode = msg.data.alarmcode;
|
|
37
|
+
const lookup = {
|
|
38
|
+
9: {action: 'error_jammed', state: 'UNLOCK', lock_state: 'not_fully_locked'},
|
|
39
|
+
21: {action: 'manual_lock', state: 'LOCK', lock_state: 'locked'},
|
|
40
|
+
22: {action: 'manual_unlock', state: 'UNLOCK', lock_state: 'unlocked'},
|
|
41
|
+
24: {action: 'lock', state: 'LOCK', lock_state: 'locked'},
|
|
42
|
+
25: {action: 'unlock', state: 'UNLOCK', lock_state: 'unlocked'},
|
|
43
|
+
27: {action: 'auto_lock', state: 'LOCK', lock_state: 'locked'},
|
|
44
|
+
};
|
|
45
|
+
if (!lookup[alarmcode]) {
|
|
46
|
+
result.action = 'unknown';
|
|
47
|
+
meta.logger.warn(`zigbee-herdsman-converters:Yale Lock: Unrecognized Operation Event (${alarmcode})`);
|
|
48
|
+
// We need to read the lock state as the alarm code is unknown
|
|
49
|
+
try {
|
|
50
|
+
await msg.endpoint.read('closuresDoorLock', ['lockState']);
|
|
51
|
+
} catch (error) {
|
|
52
|
+
meta.logger.warn(`zigbee-herdsman-converters:Yale Lock: failed to read lock state`);
|
|
53
|
+
}
|
|
54
|
+
} else {
|
|
55
|
+
result = lookup[alarmcode];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return result;
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
module.exports = [
|
|
64
|
+
{
|
|
65
|
+
zigbeeModel: ['YRD446 BLE TSDB'],
|
|
66
|
+
model: 'YRD426NRSC',
|
|
67
|
+
vendor: 'Yale',
|
|
68
|
+
description: 'Assure lock',
|
|
69
|
+
extend: lockExtend(),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
zigbeeModel: ['YRD226 TSDB', 'YRD226L TSDB'],
|
|
73
|
+
model: 'YRD226HA2619',
|
|
74
|
+
vendor: 'Yale',
|
|
75
|
+
description: 'Assure lock',
|
|
76
|
+
extend: lockExtend(),
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
zigbeeModel: ['YRD256 TSDB', 'YRD256L TSDB'],
|
|
80
|
+
model: 'YRD256HA20BP',
|
|
81
|
+
vendor: 'Yale',
|
|
82
|
+
description: 'Assure lock SL',
|
|
83
|
+
extend: lockExtend(),
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
zigbeeModel: ['0600000001'],
|
|
87
|
+
model: 'YMF30',
|
|
88
|
+
vendor: 'Yale',
|
|
89
|
+
description: 'Digital lock',
|
|
90
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
zigbeeModel: ['iZBModule01', '0700000001'],
|
|
94
|
+
model: 'YMF40/YDM4109+/YDF40',
|
|
95
|
+
vendor: 'Yale',
|
|
96
|
+
description: 'Real living lock / Intelligent biometric digital lock',
|
|
97
|
+
// Increased timeout needed: https://github.com/Koenkk/zigbee2mqtt/issues/3290 for YDM4109+
|
|
98
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}, {timeout: 20000}),
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
zigbeeModel: ['YRD210 PB DB'],
|
|
102
|
+
model: 'YRD210-HA-605',
|
|
103
|
+
vendor: 'Yale',
|
|
104
|
+
description: 'Real living keyless push button deadbolt lock',
|
|
105
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
zigbeeModel: ['YRL220 TS LL'],
|
|
109
|
+
// The zigbee module card indicate that the module will work on YRD 221 and YRD 221RL also
|
|
110
|
+
model: 'YRL-220L',
|
|
111
|
+
vendor: 'Yale',
|
|
112
|
+
description: 'Real living keyless leveler lock',
|
|
113
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
zigbeeModel: ['YRD226/246 TSDB'],
|
|
117
|
+
model: 'YRD226/246 TSDB',
|
|
118
|
+
vendor: 'Yale',
|
|
119
|
+
description: 'Assure lock',
|
|
120
|
+
extend: lockExtend(),
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
zigbeeModel: ['YRD220/240 TSDB'],
|
|
124
|
+
model: 'YRD220/YRD221',
|
|
125
|
+
vendor: 'Yale',
|
|
126
|
+
description: 'Lockwood keyless push button deadbolt lock',
|
|
127
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
zigbeeModel: ['YRD246 TSDB'],
|
|
131
|
+
model: 'YRD246HA20BP',
|
|
132
|
+
vendor: 'Yale',
|
|
133
|
+
description: 'Assure lock key free deadbolt with Zigbee',
|
|
134
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
zigbeeModel: ['YRD216 PBDB'],
|
|
138
|
+
model: 'YRD216-HA2-619',
|
|
139
|
+
vendor: 'Yale',
|
|
140
|
+
description: 'Real living keyless push button deadbolt lock',
|
|
141
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
zigbeeModel: ['YRL226L TS'],
|
|
145
|
+
model: 'YRL226L TS',
|
|
146
|
+
vendor: 'Yale',
|
|
147
|
+
description: 'Assure lock SL',
|
|
148
|
+
extend: lockExtend(),
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
zigbeeModel: ['YRL226 TS'],
|
|
152
|
+
model: 'YRL226 TS',
|
|
153
|
+
vendor: 'Yale',
|
|
154
|
+
description: 'Assure lock SL',
|
|
155
|
+
extend: lockExtend(),
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
zigbeeModel: ['YRD410 TS'],
|
|
159
|
+
model: 'YRD410-BLE',
|
|
160
|
+
vendor: 'Yale',
|
|
161
|
+
description: 'Assure lock 2',
|
|
162
|
+
extend: lockExtend(),
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
zigbeeModel: ['YRD420 TS'],
|
|
166
|
+
model: 'YRD420-BLE',
|
|
167
|
+
vendor: 'Yale',
|
|
168
|
+
description: 'Assure lock 2',
|
|
169
|
+
extend: lockExtend(),
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
zigbeeModel: ['YRD430 TS'],
|
|
173
|
+
model: 'YRD430-BLE',
|
|
174
|
+
vendor: 'Yale',
|
|
175
|
+
description: 'Assure lock 2',
|
|
176
|
+
extend: lockExtend(),
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
zigbeeModel: ['YRD450 TS'],
|
|
180
|
+
model: 'YRD450-BLE',
|
|
181
|
+
vendor: 'Yale',
|
|
182
|
+
description: 'Assure lock 2',
|
|
183
|
+
extend: lockExtend(),
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
// Appears to be a slightly rebranded Assure lock SL
|
|
187
|
+
// Just with Lockwood | Assa Abloy branding instead of Yale
|
|
188
|
+
// Appears to have been part of a deal with Telstra, hence the T-Lock name
|
|
189
|
+
zigbeeModel: ['YDD-D4F0 TSDB'],
|
|
190
|
+
model: 'YDD-D4F0-TSDB',
|
|
191
|
+
vendor: 'Yale',
|
|
192
|
+
description: 'Lockwood T-Lock',
|
|
193
|
+
extend: lockExtend(),
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
zigbeeModel: ['c700000202', '06ffff2029'],
|
|
197
|
+
model: 'YDF40',
|
|
198
|
+
vendor: 'Yale',
|
|
199
|
+
description: 'Real living lock / Intelligent biometric digital lock',
|
|
200
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}, {max: 900}, ['closuresDoorLock']),
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
zigbeeModel: ['06ffff2027'],
|
|
204
|
+
model: 'YMF40A RL',
|
|
205
|
+
vendor: 'Yale',
|
|
206
|
+
description: 'Real living lock / Intelligent biometric digital lock',
|
|
207
|
+
extend: lockExtend({battery: {dontDividePercentage: true}}),
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
fingerprint: [{
|
|
211
|
+
type: 'EndDevice',
|
|
212
|
+
manufacturerName: 'Yale',
|
|
213
|
+
manufacturerID: 43690,
|
|
214
|
+
powerSource: 'Battery',
|
|
215
|
+
endpoints: [
|
|
216
|
+
{ID: 1, profileID: 260, deviceID: 10, inputClusters: [0, 9, 10, 257, 64512, 1], outputClusters: []},
|
|
217
|
+
{ID: 196, profileID: 260, deviceID: 10, inputClusters: [1], outputClusters: []},
|
|
218
|
+
]},
|
|
219
|
+
],
|
|
220
|
+
model: 'ZYA-C4-MOD-S',
|
|
221
|
+
vendor: 'Yale',
|
|
222
|
+
description: 'Control4 module for Yale KeyFree/Keyless/Doorman/Assure/nexTouch locks',
|
|
223
|
+
fromZigbee: [fz.lock, fzLocal.c4_lock_operation_event],
|
|
224
|
+
toZigbee: [tz.lock],
|
|
225
|
+
exposes: [e.lock(), e.lock_action()],
|
|
226
|
+
},
|
|
227
|
+
];
|
package/devices/ynoa.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
const extend = require('..//lib/extend');
|
|
7
|
+
|
|
8
|
+
module.exports = [
|
|
9
|
+
{
|
|
10
|
+
zigbeeModel: ['ZBT-CCTLight-GU100001'],
|
|
11
|
+
model: '8718801528273',
|
|
12
|
+
vendor: 'Ynoa',
|
|
13
|
+
description: 'Smart LED GU10 CCT',
|
|
14
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
zigbeeModel: ['ZBT-DIMSwitch-D0000'],
|
|
18
|
+
model: '8718801528334',
|
|
19
|
+
vendor: 'Ynoa',
|
|
20
|
+
description: 'Remote control one button dimmer',
|
|
21
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
22
|
+
exposes: [e.action(['on', 'off', 'brightness_move_up', 'brightness_move_down', 'brightness_stop']), e.battery()],
|
|
23
|
+
toZigbee: [],
|
|
24
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
25
|
+
const endpoint = device.getEndpoint(1);
|
|
26
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
27
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
zigbeeModel: ['ZBT-RGBWLight-M0000'],
|
|
32
|
+
model: 'LA-GU10-RGBW',
|
|
33
|
+
vendor: 'Ynoa',
|
|
34
|
+
description: 'Smart LED GU10 RGB CCT',
|
|
35
|
+
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526], supportsHS: true}),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
zigbeeModel: ['ZBT-RGBWSwitch-D0800'],
|
|
39
|
+
model: 'LA-5KEY-RGBW',
|
|
40
|
+
vendor: 'Ynoa',
|
|
41
|
+
description: '5 key control for RGBW light',
|
|
42
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move_to_color_temp,
|
|
43
|
+
fz.command_move_to_color, fz.command_move_to_level, fz.battery],
|
|
44
|
+
exposes: [e.battery(), e.battery_low(), e.action(['on', 'off', 'brightness_move_to_level',
|
|
45
|
+
'color_temperature_move', 'color_move'])],
|
|
46
|
+
toZigbee: [],
|
|
47
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
48
|
+
const endpoint = device.getEndpoint(1);
|
|
49
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
50
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
zigbeeModel: ['ZBT-ONOFFPlug-D0009'],
|
|
55
|
+
model: 'LA-PLUG-10Amp',
|
|
56
|
+
vendor: 'Ynoa',
|
|
57
|
+
description: 'Smart plug Zigbee 3.0',
|
|
58
|
+
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering],
|
|
59
|
+
toZigbee: [tz.on_off],
|
|
60
|
+
exposes: [e.switch(), e.power()],
|
|
61
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
62
|
+
const endpoint = device.getEndpoint(1);
|
|
63
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
|
|
64
|
+
await reporting.onOff(endpoint);
|
|
65
|
+
await reporting.activePower(endpoint);
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
];
|
|
@@ -0,0 +1,23 @@
|
|
|
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: ['D10110'],
|
|
10
|
+
model: 'D10110',
|
|
11
|
+
vendor: 'Yookee',
|
|
12
|
+
description: 'Smart blind controller',
|
|
13
|
+
fromZigbee: [fz.cover_position_tilt, fz.battery],
|
|
14
|
+
toZigbee: [tz.cover_state, tz.cover_position_tilt],
|
|
15
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
16
|
+
const endpoint = device.getEndpoint(1);
|
|
17
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'closuresWindowCovering']);
|
|
18
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
19
|
+
await reporting.currentPositionLiftPercentage(endpoint);
|
|
20
|
+
},
|
|
21
|
+
exposes: [e.cover_position(), e.battery()],
|
|
22
|
+
},
|
|
23
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const tuya = require('../lib/tuya');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
fingerprint: [{modelID: 'ZB-CL01', manufacturerName: 'YSRSAI'}],
|
|
6
|
+
zigbeeModel: ['ZB-CL03', 'FB56-ZCW20FB1.2'],
|
|
7
|
+
model: 'YSR-MINI-01_rgbcct',
|
|
8
|
+
vendor: 'YSRSAI',
|
|
9
|
+
description: 'Zigbee LED controller (RGB+CCT)',
|
|
10
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color({colorTempRange: [160, 370]}),
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
zigbeeModel: ['ZB-CT01'],
|
|
14
|
+
model: 'YSR-MINI-01_wwcw',
|
|
15
|
+
vendor: 'YSRSAI',
|
|
16
|
+
description: 'Zigbee LED controller (WW/CW)',
|
|
17
|
+
extend: tuya.extend.light_onoff_brightness_colortemp_color(),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
zigbeeModel: ['ZB-DL01'],
|
|
21
|
+
model: 'YSR-MINI-01_dimmer',
|
|
22
|
+
vendor: 'YSRSAI',
|
|
23
|
+
description: 'Zigbee LED controller (Dimmer)',
|
|
24
|
+
extend: tuya.extend.light_onoff_brightness(),
|
|
25
|
+
},
|
|
26
|
+
];
|
|
@@ -0,0 +1,254 @@
|
|
|
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 tuya = require('../lib/tuya');
|
|
8
|
+
const ea = exposes.access;
|
|
9
|
+
|
|
10
|
+
const fzLocal = {
|
|
11
|
+
ZMRM02: {
|
|
12
|
+
cluster: 'manuSpecificTuya',
|
|
13
|
+
type: ['commandGetData', 'commandSetDataResponse', 'commandDataResponse'],
|
|
14
|
+
convert: (model, msg, publish, options, meta) => {
|
|
15
|
+
const dpValue = tuya.firstDpValue(msg, meta, 'ZMRM02');
|
|
16
|
+
if (dpValue.dp === 10) {
|
|
17
|
+
return {battery: tuya.getDataValue(dpValue)};
|
|
18
|
+
} else {
|
|
19
|
+
const button = dpValue.dp;
|
|
20
|
+
const actionValue = tuya.getDataValue(dpValue);
|
|
21
|
+
const lookup = {0: 'single', 1: 'double', 2: 'hold'};
|
|
22
|
+
const action = lookup[actionValue];
|
|
23
|
+
return {action: `button_${button}_${action}`};
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
module.exports = [
|
|
30
|
+
{
|
|
31
|
+
zigbeeModel: ['NUET56-DL27LX1.1'],
|
|
32
|
+
model: 'LXZB-12A',
|
|
33
|
+
vendor: 'Zemismart',
|
|
34
|
+
description: 'RGB LED downlight',
|
|
35
|
+
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
zigbeeModel: ['LXT56-LS27LX1.6'],
|
|
39
|
+
model: 'HGZB-DLC4-N15B',
|
|
40
|
+
vendor: 'Zemismart',
|
|
41
|
+
description: 'RGB LED downlight',
|
|
42
|
+
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
zigbeeModel: ['TS0302'],
|
|
46
|
+
model: 'ZM-CSW032-D',
|
|
47
|
+
vendor: 'Zemismart',
|
|
48
|
+
description: 'Curtain/roller blind switch',
|
|
49
|
+
fromZigbee: [fz.ignore_basic_report, fz.ZMCSW032D_cover_position],
|
|
50
|
+
toZigbee: [tz.cover_state, tz.ZMCSW032D_cover_position],
|
|
51
|
+
exposes: [e.cover_position()],
|
|
52
|
+
meta: {multiEndpoint: true},
|
|
53
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
54
|
+
const endpoint = device.getEndpoint(1);
|
|
55
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['closuresWindowCovering']);
|
|
56
|
+
// Configure reporing of currentPositionLiftPercentage always fails.
|
|
57
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/3216
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
zigbeeModel: ['TS0003'],
|
|
62
|
+
model: 'ZM-L03E-Z',
|
|
63
|
+
vendor: 'Zemismart',
|
|
64
|
+
description: 'Smart light switch - 3 gang with neutral wire',
|
|
65
|
+
extend: extend.switch(),
|
|
66
|
+
exposes: [e.switch().withEndpoint('left'), e.switch().withEndpoint('center'), e.switch().withEndpoint('right')],
|
|
67
|
+
endpoint: (device) => {
|
|
68
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
69
|
+
},
|
|
70
|
+
whiteLabel: [{vendor: 'BSEED', model: 'TS0003', description: 'Zigbee switch'}],
|
|
71
|
+
meta: {multiEndpoint: true, disableDefaultResponse: true},
|
|
72
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
73
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
74
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
75
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
76
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
fingerprint: [{modelID: 'TS0003', manufacturerName: '_TZ3000_vjhcenzo'}, {modelID: 'TS0003', manufacturerName: '_TZ3000_f09j9qjb'}],
|
|
81
|
+
model: 'TB25',
|
|
82
|
+
vendor: 'Zemismart',
|
|
83
|
+
description: 'Smart light switch and socket - 2 gang with neutral wire',
|
|
84
|
+
extend: tuya.extend.switch({endpoints: ['left', 'center', 'right']}),
|
|
85
|
+
meta: {multiEndpoint: true},
|
|
86
|
+
endpoint: () => {
|
|
87
|
+
return {'left': 1, 'center': 2, 'right': 3};
|
|
88
|
+
},
|
|
89
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
90
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
91
|
+
for (const endpointID of [1, 2, 3]) {
|
|
92
|
+
const endpoint = device.getEndpoint(endpointID);
|
|
93
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
94
|
+
await reporting.onOff(endpoint);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
zigbeeModel: ['LXN56-SS27LX1.1'],
|
|
100
|
+
model: 'LXN56-SS27LX1.1',
|
|
101
|
+
vendor: 'Zemismart',
|
|
102
|
+
description: 'Smart light switch - 2 gang with neutral wire',
|
|
103
|
+
extend: extend.switch(),
|
|
104
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
105
|
+
const endpoint = device.getEndpoint(10);
|
|
106
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
107
|
+
await reporting.onOff(endpoint);
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_zqtiam4u'}],
|
|
112
|
+
model: 'ZM-RM02',
|
|
113
|
+
vendor: 'Zemismart',
|
|
114
|
+
description: 'Smart 6 key scene switch',
|
|
115
|
+
fromZigbee: [fzLocal.ZMRM02],
|
|
116
|
+
toZigbee: [],
|
|
117
|
+
onEvent: tuya.onEventSetTime,
|
|
118
|
+
exposes: [e.battery(), e.action([
|
|
119
|
+
'button_1_hold', 'button_1_single', 'button_1_double',
|
|
120
|
+
'button_2_hold', 'button_2_single', 'button_2_double',
|
|
121
|
+
'button_3_hold', 'button_3_single', 'button_3_double',
|
|
122
|
+
'button_4_hold', 'button_4_single', 'button_4_double',
|
|
123
|
+
'button_5_hold', 'button_5_single', 'button_5_double',
|
|
124
|
+
'button_6_hold', 'button_6_single', 'button_6_double'])],
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
fingerprint: tuya.fingerprint('TS011F', ['_TZ3000_zigisuyh', '_TZ3000_v4mevirn', '_TZ3000_mlswgkc3']),
|
|
128
|
+
model: 'ZIGBEE-B09-UK',
|
|
129
|
+
vendor: 'Zemismart',
|
|
130
|
+
description: 'Zigbee smart outlet universal socket with USB port',
|
|
131
|
+
extend: tuya.extend.switch({powerOutageMemory: true, endpoints: ['l1', 'l2']}),
|
|
132
|
+
endpoint: (device) => {
|
|
133
|
+
return {'l1': 1, 'l2': 2};
|
|
134
|
+
},
|
|
135
|
+
meta: {multiEndpoint: true},
|
|
136
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
137
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
138
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
139
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
140
|
+
await reporting.onOff(device.getEndpoint(1));
|
|
141
|
+
await reporting.onOff(device.getEndpoint(2));
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_iossyxra'}],
|
|
146
|
+
model: 'ZM-AM02_cover',
|
|
147
|
+
vendor: 'Zemismart',
|
|
148
|
+
description: 'Zigbee/RF curtain converter',
|
|
149
|
+
fromZigbee: [fz.ZMAM02_cover],
|
|
150
|
+
toZigbee: [tz.ZMAM02_cover],
|
|
151
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET),
|
|
152
|
+
exposes.composite('options', 'options', ea.STATE)
|
|
153
|
+
.withFeature(exposes.numeric('motor_speed', ea.STATE)
|
|
154
|
+
.withValueMin(0)
|
|
155
|
+
.withValueMax(255)
|
|
156
|
+
.withDescription('Motor speed')),
|
|
157
|
+
exposes.enum('motor_working_mode', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02MotorWorkingMode)),
|
|
158
|
+
exposes.numeric('percent_state', ea.STATE).withValueMin(0).withValueMax(100).withValueStep(1).withUnit('%'),
|
|
159
|
+
exposes.enum('mode', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02Mode)),
|
|
160
|
+
exposes.enum('motor_direction', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02Direction)),
|
|
161
|
+
exposes.enum('border', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02Border)),
|
|
162
|
+
// ---------------------------------------------------------------------------------
|
|
163
|
+
// DP exists, but not used at the moment
|
|
164
|
+
// exposes.numeric('percent_control', ea.STATE_SET).withValueMin(0).withValueMax(100).withValueStep(1).withUnit('%'),
|
|
165
|
+
// exposes.enum('work_state', ea.STATE, Object.values(tuya.ZMAM02.AM02WorkState)),
|
|
166
|
+
// exposes.numeric('countdown_left', ea.STATE).withUnit('s'),
|
|
167
|
+
// exposes.numeric('time_total', ea.STATE).withUnit('ms'),
|
|
168
|
+
// exposes.enum('situation_set', ea.STATE, Object.values(tuya.ZMAM02.AM02Situation)),
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_gubdgai2'}],
|
|
173
|
+
model: 'M515EGBZTN',
|
|
174
|
+
vendor: 'Zemismart',
|
|
175
|
+
description: 'Roller shade driver',
|
|
176
|
+
fromZigbee: [fz.ZMAM02_cover],
|
|
177
|
+
toZigbee: [tz.ZMAM02_cover],
|
|
178
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET),
|
|
179
|
+
exposes.enum('motor_direction', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02Direction)),
|
|
180
|
+
exposes.enum('border', ea.STATE_SET, Object.values(tuya.ZMLookups.AM02Border)),
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_fzo2pocs'}],
|
|
185
|
+
model: 'ZM25TQ',
|
|
186
|
+
vendor: 'Zemismart',
|
|
187
|
+
description: 'Tubular motor',
|
|
188
|
+
fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
|
|
189
|
+
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options, tz.tuya_data_point_test],
|
|
190
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_7eue9vhc'}],
|
|
194
|
+
model: 'ZM25RX-08/30',
|
|
195
|
+
vendor: 'Zemismart',
|
|
196
|
+
description: 'Tubular motor',
|
|
197
|
+
fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
|
|
198
|
+
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options],
|
|
199
|
+
exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_1n2kyphz'}],
|
|
203
|
+
model: 'TB26-4',
|
|
204
|
+
vendor: 'Zemismart',
|
|
205
|
+
description: '4-gang smart wall switch',
|
|
206
|
+
exposes: [e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET),
|
|
207
|
+
e.switch().withEndpoint('l2').setAccess('state', ea.STATE_SET),
|
|
208
|
+
e.switch().withEndpoint('l3').setAccess('state', ea.STATE_SET),
|
|
209
|
+
e.switch().withEndpoint('l4').setAccess('state', ea.STATE_SET)],
|
|
210
|
+
fromZigbee: [fz.ignore_basic_report, fz.tuya_switch],
|
|
211
|
+
toZigbee: [tz.tuya_switch_state],
|
|
212
|
+
meta: {multiEndpoint: true},
|
|
213
|
+
endpoint: (device) => {
|
|
214
|
+
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1};
|
|
215
|
+
},
|
|
216
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
217
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
218
|
+
if (device.getEndpoint(2)) await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
219
|
+
if (device.getEndpoint(3)) await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
220
|
+
if (device.getEndpoint(4)) await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
|
|
221
|
+
device.powerSource = 'Mains (single phase)';
|
|
222
|
+
device.save();
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_9mahtqtg'}, {modelID: 'TS0601', manufacturerName: '_TZE200_r731zlxk'}],
|
|
227
|
+
model: 'TB26-6',
|
|
228
|
+
vendor: 'Zemismart',
|
|
229
|
+
description: '6-gang smart wall switch',
|
|
230
|
+
exposes: [e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET),
|
|
231
|
+
e.switch().withEndpoint('l2').setAccess('state', ea.STATE_SET),
|
|
232
|
+
e.switch().withEndpoint('l3').setAccess('state', ea.STATE_SET),
|
|
233
|
+
e.switch().withEndpoint('l4').setAccess('state', ea.STATE_SET),
|
|
234
|
+
e.switch().withEndpoint('l5').setAccess('state', ea.STATE_SET),
|
|
235
|
+
e.switch().withEndpoint('l6').setAccess('state', ea.STATE_SET)],
|
|
236
|
+
fromZigbee: [fz.ignore_basic_report, fz.tuya_switch],
|
|
237
|
+
toZigbee: [tz.tuya_switch_state],
|
|
238
|
+
meta: {multiEndpoint: true},
|
|
239
|
+
endpoint: (device) => {
|
|
240
|
+
return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1, 'l5': 1, 'l6': 1};
|
|
241
|
+
},
|
|
242
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
243
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
244
|
+
if (device.getEndpoint(2)) await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
245
|
+
if (device.getEndpoint(3)) await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
|
|
246
|
+
if (device.getEndpoint(4)) await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
|
|
247
|
+
if (device.getEndpoint(5)) await reporting.bind(device.getEndpoint(5), coordinatorEndpoint, ['genOnOff']);
|
|
248
|
+
if (device.getEndpoint(6)) await reporting.bind(device.getEndpoint(6), coordinatorEndpoint, ['genOnOff']);
|
|
249
|
+
// Reports itself as battery which is not correct: https://github.com/Koenkk/zigbee2mqtt/issues/6190
|
|
250
|
+
device.powerSource = 'Mains (single phase)';
|
|
251
|
+
device.save();
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
];
|
package/devices/zen.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
6
|
+
module.exports = [
|
|
7
|
+
{
|
|
8
|
+
zigbeeModel: ['Zen-01'],
|
|
9
|
+
model: 'Zen-01-W',
|
|
10
|
+
vendor: 'Zen',
|
|
11
|
+
description: 'Thermostat',
|
|
12
|
+
fromZigbee: [fz.battery, fz.legacy.thermostat_att_report],
|
|
13
|
+
toZigbee: [tz.thermostat_local_temperature, tz.thermostat_local_temperature_calibration,
|
|
14
|
+
tz.thermostat_occupancy, tz.thermostat_occupied_heating_setpoint, tz.thermostat_occupied_cooling_setpoint,
|
|
15
|
+
tz.thermostat_unoccupied_heating_setpoint, tz.thermostat_setpoint_raise_lower, tz.thermostat_running_state,
|
|
16
|
+
tz.thermostat_remote_sensing, tz.thermostat_control_sequence_of_operation, tz.thermostat_system_mode,
|
|
17
|
+
tz.thermostat_weekly_schedule, tz.thermostat_clear_weekly_schedule, tz.thermostat_relay_status_log],
|
|
18
|
+
exposes: [exposes.climate().withSetpoint('occupied_heating_setpoint', 10, 30, 0.5)
|
|
19
|
+
.withSetpoint('occupied_cooling_setpoint', 10, 31, 0.5).withLocalTemperature()
|
|
20
|
+
.withSystemMode(['off', 'auto', 'heat', 'cool']).withRunningState(['idle', 'heat', 'cool'])
|
|
21
|
+
.withLocalTemperatureCalibration().withPiHeatingDemand()],
|
|
22
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
23
|
+
const endpoint = device.getEndpoint(3) || device.getEndpoint(1);
|
|
24
|
+
const binds = ['genBasic', 'genIdentify', 'genPowerCfg', 'genTime', 'hvacThermostat', 'hvacUserInterfaceCfg'];
|
|
25
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
26
|
+
|
|
27
|
+
await reporting.thermostatSystemMode(endpoint);
|
|
28
|
+
await reporting.batteryVoltage(endpoint);
|
|
29
|
+
await reporting.thermostatTemperature(endpoint);
|
|
30
|
+
await reporting.thermostatRunningState(endpoint);
|
|
31
|
+
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const extend = require('../lib/extend');
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
zigbeeModel: ['ZHA-ColorLight'],
|
|
6
|
+
model: 'rgbw2.zbee27',
|
|
7
|
+
vendor: 'Zipato',
|
|
8
|
+
description: 'RGBW LED bulb with dimmer',
|
|
9
|
+
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
10
|
+
},
|
|
11
|
+
];
|