@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/lib/constants.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
const OneJanuary2000 = new Date('January 01, 2000 00:00:00 UTC+00:00').getTime();
|
|
2
|
+
|
|
3
|
+
const defaultBindGroup = 901;
|
|
4
|
+
|
|
5
|
+
const repInterval = {
|
|
6
|
+
MAX: 62000,
|
|
7
|
+
HOUR: 3600,
|
|
8
|
+
MINUTES_30: 1800,
|
|
9
|
+
MINUTES_15: 900,
|
|
10
|
+
MINUTES_10: 600,
|
|
11
|
+
MINUTES_5: 300,
|
|
12
|
+
MINUTE: 60,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const thermostatControlSequenceOfOperations = {
|
|
16
|
+
0: 'cooling_only',
|
|
17
|
+
1: 'cooling_with_reheat',
|
|
18
|
+
2: 'heating_only',
|
|
19
|
+
3: 'heating_with_reheat',
|
|
20
|
+
4: 'cooling_and_heating_4-pipes',
|
|
21
|
+
5: 'cooling_and_heating_4-pipes_with_reheat',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const thermostatProgrammingOperationModes = {
|
|
25
|
+
0: 'setpoint',
|
|
26
|
+
1: 'schedule',
|
|
27
|
+
3: 'schedule_with_preheat',
|
|
28
|
+
4: 'eco',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const thermostatSystemModes = {
|
|
32
|
+
0: 'off',
|
|
33
|
+
1: 'auto',
|
|
34
|
+
3: 'cool',
|
|
35
|
+
4: 'heat',
|
|
36
|
+
5: 'emergency_heating',
|
|
37
|
+
6: 'precooling',
|
|
38
|
+
7: 'fan_only',
|
|
39
|
+
8: 'dry',
|
|
40
|
+
9: 'sleep',
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const thermostatRunningMode= {
|
|
44
|
+
0: 'off',
|
|
45
|
+
3: 'cool',
|
|
46
|
+
4: 'heat',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const thermostatDayOfWeek = {
|
|
50
|
+
0: 'sunday',
|
|
51
|
+
1: 'monday',
|
|
52
|
+
2: 'tuesday',
|
|
53
|
+
3: 'wednesday',
|
|
54
|
+
4: 'thursday',
|
|
55
|
+
5: 'friday',
|
|
56
|
+
6: 'saturday',
|
|
57
|
+
7: 'away_or_vacation',
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const thermostatRunningStates = {
|
|
61
|
+
0: 'idle',
|
|
62
|
+
1: 'heat',
|
|
63
|
+
2: 'cool',
|
|
64
|
+
4: 'fan_only',
|
|
65
|
+
5: 'heat',
|
|
66
|
+
6: 'cool',
|
|
67
|
+
8: 'heat',
|
|
68
|
+
9: 'heat',
|
|
69
|
+
A: 'heat',
|
|
70
|
+
D: 'heat',
|
|
71
|
+
10: 'cool',
|
|
72
|
+
12: 'cool',
|
|
73
|
+
14: 'cool',
|
|
74
|
+
15: 'cool',
|
|
75
|
+
22: 'cool',
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const thermostatAcLouverPositions = {
|
|
79
|
+
0: 'fully_closed',
|
|
80
|
+
1: 'fully_closed',
|
|
81
|
+
2: 'fully_open',
|
|
82
|
+
3: 'quarter_open',
|
|
83
|
+
4: 'half_open',
|
|
84
|
+
5: 'three_quarters_open',
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const thermostatScheduleMode = {
|
|
88
|
+
0: 'heat',
|
|
89
|
+
1: 'cool',
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const fanMode = {
|
|
93
|
+
'off': 0,
|
|
94
|
+
'low': 1,
|
|
95
|
+
'medium': 2,
|
|
96
|
+
'high': 3,
|
|
97
|
+
'on': 4,
|
|
98
|
+
'auto': 5,
|
|
99
|
+
'smart': 6,
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const temperatureDisplayMode = {
|
|
103
|
+
0: 'celsius',
|
|
104
|
+
1: 'fahrenheit',
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const danfossAdaptionRunStatus= {
|
|
108
|
+
0: 'none',
|
|
109
|
+
1: 'in_progress',
|
|
110
|
+
2: 'found',
|
|
111
|
+
4: 'lost',
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const danfossAdaptionRunControl = {
|
|
115
|
+
0: 'none',
|
|
116
|
+
1: 'initiate_adaptation',
|
|
117
|
+
2: 'cancel_adaptation',
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const danfossWindowOpen = {
|
|
121
|
+
0: 'quarantine',
|
|
122
|
+
1: 'closed',
|
|
123
|
+
2: 'hold',
|
|
124
|
+
3: 'open',
|
|
125
|
+
4: 'external_open',
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const danfossRoomStatusCode = {
|
|
129
|
+
0x0000: 'no_error',
|
|
130
|
+
0x0101: 'missing_rt',
|
|
131
|
+
0x0201: 'rt_touch_error',
|
|
132
|
+
0x0401: 'floor_sensor_short_circuit',
|
|
133
|
+
0x0801: 'floor_sensor_disconnected',
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const danfossOutputStatus = {
|
|
137
|
+
0: 'inactive',
|
|
138
|
+
1: 'active',
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const danfossSystemStatusWater = {
|
|
142
|
+
0: 'hot_water_flow_in_pipes',
|
|
143
|
+
1: 'cool_water_flow_in_pipes',
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const danfossSystemStatusCode = {
|
|
147
|
+
0x0000: 'no_error',
|
|
148
|
+
0x0101: 'missing_expansion_board',
|
|
149
|
+
0x0201: 'missing_radio_module',
|
|
150
|
+
0x0401: 'missing_command_module',
|
|
151
|
+
0x0801: 'missing_master_rail',
|
|
152
|
+
0x1001: 'missing_slave_rail_no_1',
|
|
153
|
+
0x2001: 'missing_slave_rail_no_2',
|
|
154
|
+
0x4001: 'pt1000_input_short_circuit',
|
|
155
|
+
0x8001: 'pt1000_input_open_circuit',
|
|
156
|
+
0x0102: 'error_on_one_or_more_output',
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const danfossMultimasterRole = {
|
|
160
|
+
0: 'invalid_unused',
|
|
161
|
+
1: 'master',
|
|
162
|
+
2: 'slave_1',
|
|
163
|
+
3: 'slave_2',
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const develcoInterfaceMode = {
|
|
167
|
+
0: 'electricity',
|
|
168
|
+
1: 'gas',
|
|
169
|
+
2: 'water',
|
|
170
|
+
256: 'kamstrup-kmp',
|
|
171
|
+
257: 'linky',
|
|
172
|
+
258: 'IEC62056-21',
|
|
173
|
+
259: 'DSMR-2.3',
|
|
174
|
+
260: 'DSMR-4.0',
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const keypadLockoutMode = {
|
|
178
|
+
0: 'unlock',
|
|
179
|
+
1: 'lock1',
|
|
180
|
+
2: 'lock2',
|
|
181
|
+
3: 'lock3',
|
|
182
|
+
4: 'lock4',
|
|
183
|
+
5: 'lock5',
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const lockSourceName = {
|
|
187
|
+
0: 'keypad',
|
|
188
|
+
1: 'rf',
|
|
189
|
+
2: 'manual',
|
|
190
|
+
3: 'rfid',
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const armMode = {
|
|
194
|
+
0: 'disarm',
|
|
195
|
+
1: 'arm_day_zones',
|
|
196
|
+
2: 'arm_night_zones',
|
|
197
|
+
3: 'arm_all_zones',
|
|
198
|
+
4: 'exit_delay',
|
|
199
|
+
5: 'entry_delay',
|
|
200
|
+
6: 'not_ready',
|
|
201
|
+
7: 'in_alarm',
|
|
202
|
+
8: 'arming_stay',
|
|
203
|
+
9: 'arming_night',
|
|
204
|
+
10: 'arming_away',
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
const armNotification = {
|
|
208
|
+
0: 'disarm',
|
|
209
|
+
1: 'arm_day_zones',
|
|
210
|
+
2: 'arm_night_zones',
|
|
211
|
+
3: 'arm_all_zones',
|
|
212
|
+
4: 'invalid_code',
|
|
213
|
+
5: 'not_ready',
|
|
214
|
+
6: 'already_disarmed',
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// ID's from ZCL mapped to ha names where appropriate
|
|
218
|
+
// https://github.com/home-assistant/core/pull/47720
|
|
219
|
+
const ColorMode = {
|
|
220
|
+
HS: 0,
|
|
221
|
+
XY: 1,
|
|
222
|
+
ColorTemp: 2,
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const colorModeLookup = {
|
|
226
|
+
[ColorMode.HS]: 'hs',
|
|
227
|
+
[ColorMode.XY]: 'xy',
|
|
228
|
+
[ColorMode.ColorTemp]: 'color_temp',
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
const lockSoundVolume = ['silent_mode', 'low_volume', 'high_volume'];
|
|
232
|
+
|
|
233
|
+
const lockUserStatus = {
|
|
234
|
+
0: 'available',
|
|
235
|
+
1: 'enabled',
|
|
236
|
+
3: 'disabled',
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const easyCodeTouchActions = {
|
|
240
|
+
// First byte are source / msg.data[3]
|
|
241
|
+
// 0x00 KeyPad: If the user uses the code panel.
|
|
242
|
+
// 0x02 Manual: If the user used a key, button or fingerprint.
|
|
243
|
+
// 0x03 RFID: If the user used an RFID tag.
|
|
244
|
+
// 0xFF Other: If the user used an unknown method
|
|
245
|
+
|
|
246
|
+
// Last byte are eventCode / msg.data[4]
|
|
247
|
+
// 0x00 Lock: The device was locked using either button, code panel or RFID.
|
|
248
|
+
// 0x01 Unlock: The device was unlocked using either button, code panel or RFID.
|
|
249
|
+
// 0x08 Key Lock: If the user locked with a key.
|
|
250
|
+
// 0x09 Key Unlock: If the user unlocked with a key.
|
|
251
|
+
// 0x10 Fingerprint Lock: The device was locked using fingerprint.
|
|
252
|
+
// 0x11 Fingerprint Unlock: The device was unlocked using fingerprint.
|
|
253
|
+
|
|
254
|
+
0x0000: 'keypad_lock',
|
|
255
|
+
0x0001: 'keypad_unlock',
|
|
256
|
+
|
|
257
|
+
// Manual says 0x0001 but the lock sends 0x0002 when you unlock it using the keypad
|
|
258
|
+
0x0002: 'keypad_unlock',
|
|
259
|
+
|
|
260
|
+
0x0200: 'manual_lock',
|
|
261
|
+
0x0201: 'manual_unlock',
|
|
262
|
+
|
|
263
|
+
0x0208: 'key_lock',
|
|
264
|
+
0x0209: 'key_unlock',
|
|
265
|
+
|
|
266
|
+
0x0210: 'fingerprint_lock',
|
|
267
|
+
0x0211: 'fingerprint_unlock',
|
|
268
|
+
|
|
269
|
+
0x0300: 'rfid_lock',
|
|
270
|
+
0x0301: 'rfid_unlock',
|
|
271
|
+
|
|
272
|
+
0xFF0D: 'lock',
|
|
273
|
+
0xFF0E: 'zigbee_unlock',
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
const wiserDimmerControlMode = {
|
|
277
|
+
0: 'auto',
|
|
278
|
+
1: 'rc',
|
|
279
|
+
2: 'rl',
|
|
280
|
+
3: 'rl_led',
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
module.exports = {
|
|
284
|
+
OneJanuary2000,
|
|
285
|
+
repInterval,
|
|
286
|
+
defaultBindGroup,
|
|
287
|
+
thermostatControlSequenceOfOperations,
|
|
288
|
+
thermostatProgrammingOperationModes,
|
|
289
|
+
thermostatSystemModes,
|
|
290
|
+
thermostatRunningStates,
|
|
291
|
+
thermostatRunningMode,
|
|
292
|
+
thermostatAcLouverPositions,
|
|
293
|
+
thermostatScheduleMode,
|
|
294
|
+
thermostatDayOfWeek,
|
|
295
|
+
fanMode,
|
|
296
|
+
temperatureDisplayMode,
|
|
297
|
+
danfossAdaptionRunControl,
|
|
298
|
+
danfossAdaptionRunStatus,
|
|
299
|
+
danfossWindowOpen,
|
|
300
|
+
danfossRoomStatusCode,
|
|
301
|
+
danfossOutputStatus,
|
|
302
|
+
danfossSystemStatusWater,
|
|
303
|
+
danfossSystemStatusCode,
|
|
304
|
+
danfossMultimasterRole,
|
|
305
|
+
develcoInterfaceMode,
|
|
306
|
+
keypadLockoutMode,
|
|
307
|
+
lockSourceName,
|
|
308
|
+
armMode,
|
|
309
|
+
armNotification,
|
|
310
|
+
colorModeLookup,
|
|
311
|
+
ColorMode,
|
|
312
|
+
lockSoundVolume,
|
|
313
|
+
lockUserStatus,
|
|
314
|
+
easyCodeTouchActions,
|
|
315
|
+
wiserDimmerControlMode,
|
|
316
|
+
};
|