forked from Koenkk/zigbee-herdsman-converters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devices.js
338 lines (324 loc) · 12.5 KB
/
devices.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
const fz = require('./converters/fromZigbee');
const tz = require('./converters/toZigbee');
const LED1623G12 = {
model: 'LED1623G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27 1000 lumen, dimmable, opal white',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
};
const LED1536G5 = {
model: 'LED1536G5',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E12/E14 400 lumen, dimmable, white spectrum, opal white',
supports: 'on/off, brightness, color temperature',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.ignore_transition],
};
const AA70155 = {
model: 'AA70155',
vendor: 'OSRAM',
description: 'LIGHTIFY LED A19 tunable white / Classic A60 TW',
supports: 'on/off, brightness, color temperature',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.ignore_transition],
};
const WXKG12LM = {
model: 'WXKG12LM',
vendor: 'Xiaomi',
description: 'Aqara wireless switch (with gyroscope)',
supports: 'single, double, shake, hold, release',
fromZigbee: [
fz.xiaomi_battery_3v, fz.WXKG12LM_action_click_multistate, fz.ignore_onoff_change,
fz.ignore_basic_change, fz.ignore_multistate_change,
],
toZigbee: [],
};
const WXKG02LM = {
model: 'WXKG02LM',
vendor: 'Xiaomi',
description: 'Aqara double key wireless wall switch',
supports: 'left, right and both click',
fromZigbee: [fz.xiaomi_battery_3v, fz.WXKG02LM_click],
toZigbee: [],
ep: {'left': 1, 'right': 2, 'both': 3},
};
const devices = {
// Xiaomi
'lumi.sensor_switch': {
model: 'WXKG01LM',
vendor: 'Xiaomi',
description: 'MiJia wireless switch',
supports: 'single, double, triple, quadruple, many, long, long_release click',
fromZigbee: [fz.xiaomi_battery_3v, fz.WXKG01LM_click, fz.ignore_onoff_change, fz.ignore_basic_change],
toZigbee: [],
},
'lumi.sensor_switch.aq2': {
model: 'WXKG11LM',
vendor: 'Xiaomi',
description: 'Aqara wireless switch',
supports: 'single, double, triple, quadruple click',
fromZigbee: [fz.xiaomi_battery_3v, fz.WXKG11LM_click, fz.ignore_onoff_change, fz.ignore_basic_change],
toZigbee: [],
},
// WXKG12LM uses 2 model IDs.
// https://github.com/Koenkk/zigbee-shepherd-converters/pull/3/files#diff-6c9a6acf22f90d1c6e524d9f3c5c1745R58
// https://github.com/dresden-elektronik/deconz-rest-plugin/issues/448
'lumi.sensor_switch.aq3': WXKG12LM,
'lumi.sensor_swit': WXKG12LM,
'lumi.sensor_86sw1\u0000lu': {
model: 'WXKG03LM',
vendor: 'Xiaomi',
description: 'Aqara single key wireless wall switch',
supports: 'single click',
fromZigbee: [fz.xiaomi_battery_3v, fz.WXKG03LM_click],
toZigbee: [],
},
// WXKG02LM uses 2 model IDs.
// https://github.com/Koenkk/zigbee-shepherd-converters/pull/5
'lumi.sensor_86sw2\u0000Un': WXKG02LM,
'lumi.sensor_86sw2.es1': WXKG02LM,
'lumi.ctrl_neutral1': {
model: 'QBKG04LM',
vendor: 'Xiaomi',
description: 'Aqara single key wired wall switch',
supports: 'on/off',
fromZigbee: [fz.QBKG04LM_state, fz.ignore_onoff_change],
toZigbee: [tz.onoff],
ep: {'': 2},
},
'lumi.ctrl_neutral2': {
model: 'QBKG03LM',
vendor: 'Xiaomi',
description: 'Aqara double key wired wall switch',
supports: 'l1 and l2 on/off',
fromZigbee: [fz.QBKG03LM_state, fz.ignore_onoff_change],
toZigbee: [tz.onoff],
ep: {'l1': 2, 'l2': 3},
},
'lumi.sens': {
model: 'WSDCGQ01LM',
vendor: 'Xiaomi',
description: 'MiJia temperature & humidity sensor ',
supports: 'temperature and humidity',
fromZigbee: [fz.xiaomi_battery_3v, fz.xiaomi_temperature, fz.xiaomi_humidity, fz.ignore_basic_change],
toZigbee: [],
},
'lumi.weather': {
model: 'WSDCGQ11LM',
vendor: 'Xiaomi',
description: 'Aqara temperature, humidity and pressure sensor',
supports: 'temperature, humidity and pressure',
fromZigbee: [
fz.xiaomi_battery_3v, fz.xiaomi_temperature, fz.xiaomi_humidity, fz.xiaomi_pressure, fz.ignore_basic_change,
fz.ignore_temperature_change, fz.ignore_humidity_change, fz.ignore_pressure_change,
],
toZigbee: [],
},
'lumi.sensor_motion': {
model: 'RTCGQ01LM',
vendor: 'Xiaomi',
description: 'MiJia human body movement sensor',
supports: 'occupancy',
fromZigbee: [fz.xiaomi_battery_3v, fz.xiaomi_occupancy, fz.ignore_basic_change],
toZigbee: [],
},
'lumi.sensor_motion.aq2': {
model: 'RTCGQ11LM',
vendor: 'Xiaomi',
description: 'Aqara human body movement and illuminance sensor',
supports: 'occupancy and illuminance',
fromZigbee: [
fz.xiaomi_battery_3v, fz.xiaomi_occupancy, fz.xiaomi_illuminance, fz.ignore_basic_change,
fz.ignore_illuminance_change, fz.ignore_occupancy_change,
],
toZigbee: [],
},
'lumi.sensor_magnet': {
model: 'MCCGQ01LM',
vendor: 'Xiaomi',
description: 'MiJia door & window contact sensor',
supports: 'contact',
fromZigbee: [fz.xiaomi_battery_3v, fz.xiaomi_contact, fz.ignore_onoff_change, fz.ignore_basic_change],
toZigbee: [],
},
'lumi.sensor_magnet.aq2': {
model: 'MCCGQ11LM',
vendor: 'Xiaomi',
description: 'Aqara door & window contact sensor',
supports: 'contact',
fromZigbee: [fz.xiaomi_battery_3v, fz.xiaomi_contact, fz.ignore_onoff_change, fz.ignore_basic_change],
toZigbee: [],
},
'lumi.sensor_wleak.aq1': {
model: 'SJCGQ11LM',
vendor: 'Xiaomi',
description: 'Aqara water leak sensor',
supports: 'water leak true/false',
fromZigbee: [
fz.xiaomi_battery_3v, fz.SJCGQ11LM_water_leak_basic, fz.SJCGQ11LM_water_leak_iaszone,
fz.ignore_basic_change,
],
toZigbee: [],
},
'lumi.sensor_cube': {
model: 'MFKZQ01LM',
vendor: 'Xiaomi',
description: 'Mi smart home cube',
supports: 'shake, wakeup, fall, tap, slide, flip180, flip90, rotate_left and rotate_right',
fromZigbee: [
fz.xiaomi_battery_3v, fz.MFKZQ01LM_action_multistate, fz.MFKZQ01LM_action_analog,
fz.ignore_analog_change, fz.ignore_multistate_change,
],
toZigbee: [],
},
'lumi.plug': {
model: 'ZNCZ02LM',
description: 'Mi power plug ZigBee',
supports: 'on/off, power measurement',
vendor: 'Xiaomi',
fromZigbee: [
fz.xiaomi_state, fz.xiaomi_power, fz.ZNCZ02LM_state, fz.ignore_onoff_change,
fz.ignore_basic_change, fz.ignore_analog_change,
],
toZigbee: [tz.onoff],
},
'lumi.ctrl_86plug': {
model: 'QBCZ11LM',
description: 'Aqara socket Zigbee',
supports: 'on/off, power measurement',
vendor: 'Xiaomi',
fromZigbee: [fz.xiaomi_state, fz.xiaomi_power, fz.ignore_onoff_change, fz.ignore_analog_change],
toZigbee: [tz.onoff],
},
'lumi.sensor_smoke': {
model: 'JTYJ-GD-01LM/BW',
description: 'MiJia Honeywell smoke detector',
supports: 'smoke',
vendor: 'Xiaomi',
fromZigbee: [fz.xiaomi_battery_3v, fz.JTYJGD01LMBW_smoke, fz.ignore_basic_change],
toZigbee: [],
},
// IKEA
'TRADFRI bulb E27 WS opal 980lm': {
model: 'LED1545G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E27 980 lumen, dimmable, white spectrum, opal white',
supports: 'on/off, brightness, color temperature',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.ignore_transition],
},
// LED1623G12 uses 2 model IDs, see https://github.com/Koenkk/zigbee2mqtt/issues/21
'TRADFRI bulb E27 opal 1000lm': LED1623G12,
'TRADFRI bulb E27 W opal 1000lm': LED1623G12,
'TRADFRI bulb GU10 WS 400lm': {
model: 'LED1537R6',
vendor: 'IKEA',
description: 'TRADFRI LED bulb GU10 400 lumen, dimmable, white spectrum',
supports: 'on/off, brightness, color temperature',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.ignore_transition],
},
'TRADFRI bulb GU10 W 400lm': {
model: 'LED1650R5',
vendor: 'IKEA',
description: 'TRADFRI LED bulb GU10 400 lumen, dimmable',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
},
// LED1536G5 has an E12 and E14 version.
'TRADFRI bulb E14 WS opal 400lm': LED1536G5,
'TRADFRI bulb E12 WS opal 400lm': LED1536G5,
'TRADFRI bulb E26 opal 1000lm': {
model: 'LED1622G12',
vendor: 'IKEA',
description: 'TRADFRI LED bulb E26 1000 lumen, dimmable, opal white',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
},
// Philips
'LLC020': {
model: '7146060PH',
vendor: 'Philips',
description: 'Hue Go',
supports: 'on/off, brightness, color temperature, color xy',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.light_color, tz.ignore_transition],
},
'LWB010': {
model: '8718696449691',
vendor: 'Philips',
description: 'Hue White Single bulb B22',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
},
// Belkin
'MZ100': {
model: 'F7C033',
vendor: 'Belkin',
description: 'WeMo smart LED bulb',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
},
// EDP
'ZB-SmartPlug-1.0.0': {
model: 'PLUG EDP RE:DY',
vendor: 'EDP',
description: 're:dy plug',
supports: 'on/off, power measurement',
fromZigbee: [fz.ignore_onoff_change, fz.EDP_power, fz.ignore_metering_change],
toZigbee: [tz.onoff],
report: [{
'cid': 'seMetering',
'attr': 'instantaneousDemand',
'ep': 85,
'minInt': 10,
'maxInt': 60,
'repChange': 1,
}],
},
// Texax Instruments
'lumi.router': {
model: 'CC2530.ROUTER',
vendor: 'Texas Instruments',
description: '[CC2530 router](http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/)',
supports: 'state, description, type, rssi',
fromZigbee: [fz.CC2530ROUTER_state, fz.CC2530ROUTER_meta],
toZigbee: [],
},
// OSRAM
'Classic A60 RGBW': {
model: 'AA69697',
vendor: 'OSRAM',
description: 'Classic A60 RGBW',
supports: 'on/off, brightness, color temperature, color xy',
fromZigbee: [fz.light_brightness, fz.light_color_colortemp, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.light_colortemp, tz.light_color, tz.ignore_transition],
},
// AA70155 is model number of both bulbs.
'LIGHTIFY A19 Tunable White': AA70155,
'Classic A60 TW': AA70155,
'Plug 01': {
model: 'AB3257001NJ',
description: 'Smart+ plug',
supports: 'on/off',
vendor: 'OSRAM',
fromZigbee: [fz.AB3257001NJ_state],
toZigbee: [tz.onoff],
},
// Hive
'FWBulb01': {
model: 'HALIGHTDIMWWE27',
vendor: 'Hive',
description: 'Active light dimmable',
supports: 'on/off, brightness',
fromZigbee: [fz.light_brightness, fz.ignore_onoff_change],
toZigbee: [tz.onoff, tz.light_brightness, tz.ignore_transition],
},
};
module.exports = devices;