@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/osram.js
ADDED
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const ota = require('../lib/ota');
|
|
4
|
+
const reporting = require('../lib/reporting');
|
|
5
|
+
const extend = require('../lib/extend');
|
|
6
|
+
const utils = require('../lib/utils');
|
|
7
|
+
const e = exposes.presets;
|
|
8
|
+
|
|
9
|
+
const fzLocal = {
|
|
10
|
+
pbc_level_to_action: {
|
|
11
|
+
cluster: 'genLevelCtrl',
|
|
12
|
+
type: ['commandMoveWithOnOff', 'commandStopWithOnOff', 'commandMove', 'commandStop', 'commandMoveToLevelWithOnOff'],
|
|
13
|
+
convert: (model, msg, publish, options, meta) => {
|
|
14
|
+
if (utils.hasAlreadyProcessedMessage(msg, model)) return;
|
|
15
|
+
const lookup = {
|
|
16
|
+
commandMoveWithOnOff: 'hold', commandMove: 'hold', commandStopWithOnOff: 'release',
|
|
17
|
+
commandStop: 'release', commandMoveToLevelWithOnOff: 'toggle',
|
|
18
|
+
};
|
|
19
|
+
return {[utils.postfixWithEndpointName('action', msg, model, meta)]: lookup[msg.type]};
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
module.exports = [
|
|
25
|
+
{
|
|
26
|
+
zigbeeModel: ['Gardenspot RGB'],
|
|
27
|
+
model: '73699',
|
|
28
|
+
vendor: 'OSRAM',
|
|
29
|
+
description: ' Gardenspot LED mini RGB',
|
|
30
|
+
extend: extend.ledvance.light_onoff_brightness_color(),
|
|
31
|
+
ota: ota.ledvance,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
zigbeeModel: ['Outdoor Lantern W RGBW OSRAM'],
|
|
35
|
+
model: '4058075816718',
|
|
36
|
+
vendor: 'OSRAM',
|
|
37
|
+
description: 'SMART+ outdoor wall lantern RGBW',
|
|
38
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
39
|
+
ota: ota.ledvance,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
zigbeeModel: ['Outdoor Lantern B50 RGBW OSRAM'],
|
|
43
|
+
model: '4058075816732',
|
|
44
|
+
vendor: 'OSRAM',
|
|
45
|
+
description: 'SMART+ outdoor lantern RGBW',
|
|
46
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
47
|
+
ota: ota.ledvance,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
zigbeeModel: ['LIGHTIFY RT RGBW'],
|
|
51
|
+
model: '73741_LIGHTIFY',
|
|
52
|
+
vendor: 'OSRAM',
|
|
53
|
+
description: 'LIGHTIFY RT5/6 LED',
|
|
54
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
55
|
+
ota: ota.ledvance,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
zigbeeModel: ['Classic A60 RGBW'],
|
|
59
|
+
model: 'AA69697',
|
|
60
|
+
vendor: 'OSRAM',
|
|
61
|
+
description: 'Classic A60 RGBW',
|
|
62
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
63
|
+
ota: ota.ledvance,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
zigbeeModel: ['B40 TW Value'],
|
|
67
|
+
model: 'AC25704',
|
|
68
|
+
vendor: 'LEDVANCE',
|
|
69
|
+
description: 'Classic E14 tunable white',
|
|
70
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp(),
|
|
71
|
+
ota: ota.ledvance,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
zigbeeModel: ['A60 TW Z3'],
|
|
75
|
+
model: 'AC10787',
|
|
76
|
+
vendor: 'OSRAM',
|
|
77
|
+
description: 'SMART+ classic E27 TW',
|
|
78
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
79
|
+
ota: ota.ledvance,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
zigbeeModel: ['A60 TW Value II'],
|
|
83
|
+
model: 'AC25702',
|
|
84
|
+
vendor: 'LEDVANCE',
|
|
85
|
+
description: 'Classic E27 Tunable White',
|
|
86
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp(),
|
|
87
|
+
ota: ota.ledvance,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
zigbeeModel: ['CLA60 RGBW OSRAM'],
|
|
91
|
+
model: 'AC03645',
|
|
92
|
+
vendor: 'OSRAM',
|
|
93
|
+
description: 'LIGHTIFY LED CLA60 E27 RGBW',
|
|
94
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]}),
|
|
95
|
+
ota: ota.ledvance,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
zigbeeModel: ['CLA60 TW OSRAM'],
|
|
99
|
+
model: 'AC03642',
|
|
100
|
+
vendor: 'OSRAM',
|
|
101
|
+
description: 'SMART+ CLASSIC A 60 TW',
|
|
102
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
103
|
+
ota: ota.ledvance,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
zigbeeModel: ['PAR16 DIM Z3'],
|
|
107
|
+
model: 'AC08560-DIM',
|
|
108
|
+
vendor: 'OSRAM',
|
|
109
|
+
description: 'SMART+ LED PAR16 GU10',
|
|
110
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
111
|
+
ota: ota.ledvance,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
zigbeeModel: ['A60 DIM Z3'],
|
|
115
|
+
model: 'AC10786-DIM',
|
|
116
|
+
vendor: 'OSRAM',
|
|
117
|
+
description: 'SMART+ classic E27 dimmable',
|
|
118
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
119
|
+
ota: ota.ledvance,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
zigbeeModel: ['CLA60 RGBW Z3'],
|
|
123
|
+
model: 'AC03647',
|
|
124
|
+
vendor: 'OSRAM',
|
|
125
|
+
description: 'SMART+ LED CLASSIC E27 RGBW',
|
|
126
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]}),
|
|
127
|
+
ota: ota.ledvance,
|
|
128
|
+
exposes: [e.light_brightness_colortemp_colorhs([153, 526]).removeFeature('color_temp_startup'), e.effect()],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
zigbeeModel: ['CLA60 RGBW II Z3'],
|
|
132
|
+
model: 'AC16381',
|
|
133
|
+
vendor: 'OSRAM',
|
|
134
|
+
description: 'SMART+ LED CLASSIC E27 RGBW V2',
|
|
135
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
136
|
+
ota: ota.ledvance,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
// AA70155 is model number of both bulbs.
|
|
140
|
+
zigbeeModel: ['LIGHTIFY A19 Tunable White', 'Classic A60 TW'],
|
|
141
|
+
model: 'AA70155',
|
|
142
|
+
vendor: 'OSRAM',
|
|
143
|
+
description: 'LIGHTIFY LED A19 tunable white / Classic A60 TW',
|
|
144
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
145
|
+
ota: ota.ledvance,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
zigbeeModel: ['PAR16 50 TW'],
|
|
149
|
+
model: 'AA68199',
|
|
150
|
+
vendor: 'OSRAM',
|
|
151
|
+
description: 'LIGHTIFY LED PAR16 50 GU10 tunable white',
|
|
152
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
153
|
+
ota: ota.ledvance,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
zigbeeModel: ['PAR16 TW Z3'],
|
|
157
|
+
model: '4058075148338',
|
|
158
|
+
vendor: 'OSRAM',
|
|
159
|
+
description: 'LIGHTIFY LED PAR16 50 GU10 tunable white',
|
|
160
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
161
|
+
ota: ota.ledvance,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
zigbeeModel: ['Classic B40 TW - LIGHTIFY'],
|
|
165
|
+
model: 'AB32840',
|
|
166
|
+
vendor: 'OSRAM',
|
|
167
|
+
description: 'LIGHTIFY LED Classic B40 tunable white',
|
|
168
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [150, 370]}),
|
|
169
|
+
ota: ota.ledvance,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
zigbeeModel: ['Ceiling TW OSRAM'],
|
|
173
|
+
model: '4058075816794',
|
|
174
|
+
vendor: 'OSRAM',
|
|
175
|
+
description: 'Smart+ Ceiling TW',
|
|
176
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp(),
|
|
177
|
+
ota: ota.ledvance,
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
zigbeeModel: ['Classic A60 W clear - LIGHTIFY'],
|
|
181
|
+
model: 'AC03641',
|
|
182
|
+
vendor: 'OSRAM',
|
|
183
|
+
description: 'LIGHTIFY LED Classic A60 clear',
|
|
184
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
185
|
+
ota: ota.ledvance,
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
zigbeeModel: ['Surface Light W �C LIGHTIFY'],
|
|
189
|
+
model: '4052899926158',
|
|
190
|
+
vendor: 'OSRAM',
|
|
191
|
+
description: 'LIGHTIFY Surface Light TW',
|
|
192
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
193
|
+
ota: ota.ledvance,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
zigbeeModel: ['Surface Light TW', 'ZLO-CeilingTW-OS'],
|
|
197
|
+
model: 'AB401130055',
|
|
198
|
+
vendor: 'OSRAM',
|
|
199
|
+
description: 'LIGHTIFY Surface Light LED Tunable White',
|
|
200
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
201
|
+
ota: ota.ledvance,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
zigbeeModel: ['Plug 01'],
|
|
205
|
+
model: 'AB3257001NJ',
|
|
206
|
+
description: 'Smart+ plug',
|
|
207
|
+
vendor: 'OSRAM',
|
|
208
|
+
extend: extend.switch({disablePowerOnBehavior: true}),
|
|
209
|
+
whiteLabel: [{vendor: 'LEDVANCE', model: 'AB3257001NJ'}, {vendor: 'LEDVANCE', model: 'AC03360'}],
|
|
210
|
+
ota: ota.ledvance,
|
|
211
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
212
|
+
const endpoint = device.getEndpoint(3);
|
|
213
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
214
|
+
await reporting.onOff(endpoint);
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
zigbeeModel: ['LIGHTIFY PAR38 ON/OFF/DIM'],
|
|
219
|
+
model: '73889',
|
|
220
|
+
vendor: 'OSRAM',
|
|
221
|
+
description: 'Smart home soft white PAR38 outdoor bulb',
|
|
222
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
zigbeeModel: ['Plug Z3'],
|
|
226
|
+
model: 'AC10691',
|
|
227
|
+
description: 'Smart+ plug',
|
|
228
|
+
vendor: 'OSRAM',
|
|
229
|
+
extend: extend.switch({disablePowerOnBehavior: true}),
|
|
230
|
+
ota: ota.ledvance,
|
|
231
|
+
whiteLabel: [{vendor: 'LEDVANCE', model: 'AC10691'}],
|
|
232
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
233
|
+
let endpoint = device.getEndpoint(3);
|
|
234
|
+
// Endpoint 3 is not always present, use endpoint 1 in that case
|
|
235
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/2178
|
|
236
|
+
if (!endpoint) endpoint = device.getEndpoint(1);
|
|
237
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
238
|
+
await reporting.onOff(endpoint);
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
zigbeeModel: ['Flex RGBW', 'LIGHTIFY Indoor Flex RGBW', 'LIGHTIFY Flex RGBW'],
|
|
243
|
+
model: '4052899926110',
|
|
244
|
+
vendor: 'OSRAM',
|
|
245
|
+
description: 'Flex RGBW',
|
|
246
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [125, 666], supportsHS: true}),
|
|
247
|
+
ota: ota.ledvance,
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
zigbeeModel: ['LIGHTIFY Outdoor Flex RGBW', 'LIGHTIFY FLEX OUTDOOR RGBW', 'Flex Outdoor RGBW'],
|
|
251
|
+
model: '4058075036185',
|
|
252
|
+
vendor: 'OSRAM',
|
|
253
|
+
description: 'Outdoor Flex RGBW',
|
|
254
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
255
|
+
ota: ota.ledvance,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
zigbeeModel: ['Gardenpole RGBW-Lightify'],
|
|
259
|
+
model: '4058075036147',
|
|
260
|
+
vendor: 'OSRAM',
|
|
261
|
+
description: 'Smart+ gardenpole 8.7W RGBW',
|
|
262
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color(),
|
|
263
|
+
ota: ota.ledvance,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
zigbeeModel: ['Gardenpole RGBW Z3'],
|
|
267
|
+
model: '4058075047853',
|
|
268
|
+
vendor: 'OSRAM',
|
|
269
|
+
description: 'Smart+ gardenpole 4W RGBW',
|
|
270
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({supportsHS: true, preferHS: true}),
|
|
271
|
+
meta: {disableDefaultResponse: true},
|
|
272
|
+
ota: ota.ledvance,
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
zigbeeModel: ['Gardenpole Mini RGBW OSRAM'],
|
|
276
|
+
model: 'AC0363900NJ',
|
|
277
|
+
vendor: 'OSRAM',
|
|
278
|
+
description: 'Smart+ mini gardenpole RGBW',
|
|
279
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
280
|
+
exposes: [e.light_brightness_colortemp_colorhs([153, 370]).removeFeature('color_temp_startup'), e.effect()],
|
|
281
|
+
ota: ota.ledvance,
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
zigbeeModel: ['Gardenspot W'],
|
|
285
|
+
model: '4052899926127',
|
|
286
|
+
vendor: 'OSRAM',
|
|
287
|
+
description: 'Lightify mini gardenspot WT',
|
|
288
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
289
|
+
ota: ota.ledvance,
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
zigbeeModel: ['PAR 16 50 RGBW - LIGHTIFY'],
|
|
293
|
+
model: 'AB35996',
|
|
294
|
+
vendor: 'OSRAM',
|
|
295
|
+
description: 'Smart+ Spot GU10 Multicolor',
|
|
296
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [125, 666]}),
|
|
297
|
+
ota: ota.ledvance,
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
zigbeeModel: ['PAR16 RGBW Z3'],
|
|
301
|
+
model: 'AC08559',
|
|
302
|
+
vendor: 'OSRAM',
|
|
303
|
+
description: 'SMART+ Spot GU10 Multicolor',
|
|
304
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]}),
|
|
305
|
+
exposes: [e.light_brightness_colortemp_colorhs([153, 526]).removeFeature('color_temp_startup'), e.effect()],
|
|
306
|
+
ota: ota.ledvance,
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
zigbeeModel: ['B40 DIM Z3'],
|
|
310
|
+
model: 'AC08562',
|
|
311
|
+
vendor: 'OSRAM',
|
|
312
|
+
description: 'SMART+ Candle E14 Dimmable White',
|
|
313
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
314
|
+
ota: ota.ledvance,
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
zigbeeModel: ['Motion Sensor-A'],
|
|
318
|
+
model: 'AC01353010G',
|
|
319
|
+
vendor: 'OSRAM',
|
|
320
|
+
description: 'SMART+ Motion Sensor',
|
|
321
|
+
fromZigbee: [fz.temperature, fz.ias_occupancy_only_alarm_2, fz.ignore_basic_report, fz.battery],
|
|
322
|
+
toZigbee: [],
|
|
323
|
+
meta: {battery: {voltageToPercentage: {min: 1900, max: 3000}}},
|
|
324
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
325
|
+
const endpoint = device.getEndpoint(1);
|
|
326
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['msTemperatureMeasurement', 'genPowerCfg']);
|
|
327
|
+
await reporting.temperature(endpoint);
|
|
328
|
+
await reporting.batteryVoltage(endpoint);
|
|
329
|
+
await reporting.batteryAlarmState(endpoint);
|
|
330
|
+
},
|
|
331
|
+
exposes: [e.temperature(), e.occupancy(), e.battery(), e.battery_voltage(), e.battery_low()],
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
zigbeeModel: ['MR16 TW OSRAM'],
|
|
335
|
+
model: 'AC03648',
|
|
336
|
+
vendor: 'OSRAM',
|
|
337
|
+
description: 'SMART+ spot GU5.3 tunable white',
|
|
338
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
339
|
+
ota: ota.ledvance,
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
zigbeeModel: ['Lightify Switch Mini', 'Lightify Switch Mini blue'],
|
|
343
|
+
model: 'AC0251100NJ/AC0251600NJ/AC0251700NJ',
|
|
344
|
+
vendor: 'OSRAM',
|
|
345
|
+
description: 'Smart+ switch mini',
|
|
346
|
+
fromZigbee: [fz.legacy.osram_lightify_switch_cmdOn, fz.legacy.osram_lightify_switch_cmdMoveWithOnOff,
|
|
347
|
+
fz.legacy.osram_lightify_switch_AC0251100NJ_cmdStop, fz.legacy.osram_lightify_switch_cmdMoveToColorTemp,
|
|
348
|
+
fz.legacy.osram_lightify_switch_cmdMoveHue, fz.legacy.osram_lightify_switch_cmdMoveToSaturation,
|
|
349
|
+
fz.legacy.osram_lightify_switch_cmdOff, fz.legacy.osram_lightify_switch_cmdMove, fz.battery,
|
|
350
|
+
fz.legacy.osram_lightify_switch_cmdMoveToLevelWithOnOff],
|
|
351
|
+
exposes: [e.battery(), e.action([
|
|
352
|
+
'on', 'brightness_move_up', 'brightness_move_down', 'brightness_stop', 'color_temperature_move', 'hue_move', 'hue_stop',
|
|
353
|
+
'move_to_saturation', 'off', 'brightness_move_to_level'])],
|
|
354
|
+
toZigbee: [],
|
|
355
|
+
meta: {battery: {voltageToPercentage: '3V_2500'}},
|
|
356
|
+
ota: ota.ledvance,
|
|
357
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
358
|
+
const endpoint1 = device.getEndpoint(1);
|
|
359
|
+
const endpoint2 = device.getEndpoint(2);
|
|
360
|
+
const endpoint3 = device.getEndpoint(3);
|
|
361
|
+
await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'genPowerCfg']);
|
|
362
|
+
await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
363
|
+
await reporting.bind(endpoint3, coordinatorEndpoint, ['genLevelCtrl', 'lightingColorCtrl']);
|
|
364
|
+
await reporting.batteryVoltage(endpoint1);
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
zigbeeModel: ['Switch 4x EU-LIGHTIFY', 'Switch 4x-LIGHTIFY', 'Switch-LIGHTIFY'],
|
|
369
|
+
model: '4058075816459',
|
|
370
|
+
vendor: 'OSRAM',
|
|
371
|
+
description: 'Smart+ switch',
|
|
372
|
+
exposes: [e.battery(), e.action(['left_top_click', 'left_bottom_click', 'right_top_click', 'right_bottom_click', 'left_top_hold',
|
|
373
|
+
'left_bottom_hold', 'left_top_release', 'left_bottom_release', 'right_top_release', 'right_top_hold',
|
|
374
|
+
'right_bottom_release', 'right_bottom_hold'])],
|
|
375
|
+
fromZigbee: [fz.battery, fz.legacy.osram_lightify_switch_AB371860355_cmdOn, fz.legacy.osram_lightify_switch_AB371860355_cmdOff,
|
|
376
|
+
fz.legacy.osram_lightify_switch_AB371860355_cmdStepColorTemp, fz.legacy.osram_lightify_switch_AB371860355_cmdMoveWithOnOff,
|
|
377
|
+
fz.legacy.osram_lightify_switch_AB371860355_cmdMove, fz.legacy.osram_lightify_switch_AB371860355_cmdStop,
|
|
378
|
+
fz.legacy.osram_lightify_switch_AB371860355_cmdMoveHue, fz.legacy.osram_lightify_switch_AB371860355_cmdMoveSat],
|
|
379
|
+
toZigbee: [],
|
|
380
|
+
meta: {battery: {voltageToPercentage: '3V_2500'}},
|
|
381
|
+
ota: ota.ledvance,
|
|
382
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
383
|
+
const endpoint1 = device.getEndpoint(1);
|
|
384
|
+
const endpoint2 = device.getEndpoint(2);
|
|
385
|
+
const endpoint3 = device.getEndpoint(3);
|
|
386
|
+
const endpoint4 = device.getEndpoint(4);
|
|
387
|
+
await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'genPowerCfg']);
|
|
388
|
+
await reporting.bind(endpoint2, coordinatorEndpoint, ['genLevelCtrl', 'lightingColorCtrl']);
|
|
389
|
+
await reporting.bind(endpoint3, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
390
|
+
await reporting.bind(endpoint4, coordinatorEndpoint, ['genLevelCtrl', 'lightingColorCtrl']);
|
|
391
|
+
await reporting.batteryVoltage(endpoint1);
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
zigbeeModel: ['SubstiTube', 'Connected Tube Z3'],
|
|
396
|
+
model: 'ST8AU-CON',
|
|
397
|
+
vendor: 'OSRAM',
|
|
398
|
+
description: 'OSRAM SubstiTUBE T8 Advanced UO Connected',
|
|
399
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
400
|
+
ota: ota.ledvance,
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
zigbeeModel: ['Panel TW 595 UGR22'],
|
|
404
|
+
model: '595UGR22',
|
|
405
|
+
vendor: 'OSRAM',
|
|
406
|
+
description: 'OSRAM LED panel TW 595 UGR22',
|
|
407
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp(),
|
|
408
|
+
ota: ota.ledvance,
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
zigbeeModel: ['Zigbee 3.0 DALI CONV LI', 'Zigbee 3.0 DALI CONV LI\u0000'],
|
|
412
|
+
model: '4062172044776_1',
|
|
413
|
+
vendor: 'OSRAM',
|
|
414
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (only one device)',
|
|
415
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
416
|
+
ota: ota.zigbeeOTA,
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 25}, {ID: 242}]},
|
|
420
|
+
{modelID: 'Zigbee 3.0 DALI CONV LI\u0000', endpoints: [{ID: 10}, {ID: 25}, {ID: 242}]}],
|
|
421
|
+
model: '4062172044776_2',
|
|
422
|
+
vendor: 'OSRAM',
|
|
423
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (one device and pushbutton)',
|
|
424
|
+
fromZigbee: [...extend.ledvance.light_onoff_brightness({noConfigure: true}).fromZigbee,
|
|
425
|
+
fz.command_toggle, fz.command_move, fz.command_stop],
|
|
426
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
427
|
+
exposes: [e.action(['toggle', 'brightness_move_up', 'brightness_move_down', 'brightness_stop']),
|
|
428
|
+
...extend.ledvance.light_onoff_brightness({noConfigure: true}).exposes],
|
|
429
|
+
ota: ota.zigbeeOTA,
|
|
430
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
431
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
432
|
+
await reporting.bind(device.getEndpoint(25), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
433
|
+
},
|
|
434
|
+
onEvent: async (type, data, device) => {
|
|
435
|
+
if (type === 'deviceInterview') {
|
|
436
|
+
device.getEndpoint(25).addBinding('genOnOff', device.getEndpoint(10));
|
|
437
|
+
device.getEndpoint(25).addBinding('genLevelCtrl', device.getEndpoint(10));
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 11}, {ID: 242}]},
|
|
443
|
+
{modelID: 'Zigbee 3.0 DALI CONV LI\u0000', endpoints: [{ID: 10}, {ID: 11}, {ID: 242}]}],
|
|
444
|
+
model: '4062172044776_3',
|
|
445
|
+
vendor: 'OSRAM',
|
|
446
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices)',
|
|
447
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
448
|
+
exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
449
|
+
ota: ota.zigbeeOTA,
|
|
450
|
+
endpoint: (device) => {
|
|
451
|
+
return {'l1': 10, 'l2': 11};
|
|
452
|
+
},
|
|
453
|
+
meta: {multiEndpoint: true},
|
|
454
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
455
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
456
|
+
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 11}, {ID: 25}, {ID: 242}]},
|
|
461
|
+
{modelID: 'Zigbee 3.0 DALI CONV LI\u0000', endpoints: [{ID: 10}, {ID: 11}, {ID: 25}, {ID: 242}]}],
|
|
462
|
+
model: '4062172044776_4',
|
|
463
|
+
vendor: 'OSRAM',
|
|
464
|
+
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices and pushbutton)',
|
|
465
|
+
fromZigbee: [...extend.ledvance.light_onoff_brightness({noConfigure: true}).fromZigbee,
|
|
466
|
+
fz.command_toggle, fz.command_move, fz.command_stop],
|
|
467
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
468
|
+
exposes: [e.action(['toggle_s1', 'brightness_move_up_s1', 'brightness_move_down_s1', 'brightness_stop_s1']),
|
|
469
|
+
e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
470
|
+
ota: ota.zigbeeOTA,
|
|
471
|
+
endpoint: (device) => {
|
|
472
|
+
return {'l1': 10, 'l2': 11, 's1': 25};
|
|
473
|
+
},
|
|
474
|
+
meta: {multiEndpoint: true},
|
|
475
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
476
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
477
|
+
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
478
|
+
await reporting.bind(device.getEndpoint(25), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
479
|
+
},
|
|
480
|
+
onEvent: async (type, data, device) => {
|
|
481
|
+
if (type === 'deviceInterview') {
|
|
482
|
+
device.getEndpoint(25).addBinding('genOnOff', device.getEndpoint(10));
|
|
483
|
+
device.getEndpoint(25).addBinding('genLevelCtrl', device.getEndpoint(10));
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
zigbeeModel: ['LIGHTIFY Under Cabinet TW'],
|
|
489
|
+
model: '71150',
|
|
490
|
+
vendor: 'OSRAM',
|
|
491
|
+
description: 'Lightify under cabinet tunable white',
|
|
492
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
493
|
+
ota: ota.ledvance,
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
zigbeeModel: ['PBC'],
|
|
497
|
+
model: '4052899930377',
|
|
498
|
+
vendor: 'OSRAM',
|
|
499
|
+
description: 'Lightify pro push button controller (PBC)',
|
|
500
|
+
meta: {multiEndpoint: true},
|
|
501
|
+
endpoint: (device) => {
|
|
502
|
+
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
|
|
503
|
+
},
|
|
504
|
+
fromZigbee: [fzLocal.pbc_level_to_action],
|
|
505
|
+
exposes: [
|
|
506
|
+
e.action(['hold', 'release', 'toggle']).withEndpoint('l1'),
|
|
507
|
+
e.action(['hold', 'release', 'toggle']).withEndpoint('l2'),
|
|
508
|
+
e.action(['hold', 'release', 'toggle']).withEndpoint('l3'),
|
|
509
|
+
e.action(['hold', 'release', 'toggle']).withEndpoint('l4'),
|
|
510
|
+
],
|
|
511
|
+
toZigbee: [],
|
|
512
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
513
|
+
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genLevelCtrl']);
|
|
514
|
+
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genLevelCtrl']);
|
|
515
|
+
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genLevelCtrl']);
|
|
516
|
+
await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genLevelCtrl']);
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const exposes = require('../lib/exposes');
|
|
2
|
+
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
|
+
const e = exposes.presets;
|
|
4
|
+
|
|
5
|
+
module.exports = [
|
|
6
|
+
{
|
|
7
|
+
zigbeeModel: ['OJB-CR701-YZ'],
|
|
8
|
+
model: 'CR701-YZ',
|
|
9
|
+
vendor: 'Oujiabao',
|
|
10
|
+
description: 'Gas and carbon monoxide alarm',
|
|
11
|
+
fromZigbee: [fz.ias_carbon_monoxide_alarm_1_gas_alarm_2],
|
|
12
|
+
toZigbee: [],
|
|
13
|
+
exposes: [e.gas(), e.carbon_monoxide(), e.tamper(), e.battery_low()],
|
|
14
|
+
},
|
|
15
|
+
];
|