iobroker.digitalstrom 2.2.1 → 3.0.0
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 +2 -1
- package/README.md +809 -35
- package/admin/assets/index.js +682 -0
- package/admin/index.html +45 -0
- package/build/lib/activityCounter.js +82 -0
- package/build/lib/activityCounter.js.map +1 -0
- package/build/lib/configUtils.js +125 -0
- package/build/lib/configUtils.js.map +1 -0
- package/build/lib/constants.js +1285 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/dss.js +877 -0
- package/build/lib/dss.js.map +1 -0
- package/build/lib/dssQueue.js +517 -0
- package/build/lib/dssQueue.js.map +1 -0
- package/build/lib/dssSmartHome.js +769 -0
- package/build/lib/dssSmartHome.js.map +1 -0
- package/build/lib/dssSmartHomeSync.js +601 -0
- package/build/lib/dssSmartHomeSync.js.map +1 -0
- package/build/lib/dssStructure.js +3390 -0
- package/build/lib/dssStructure.js.map +1 -0
- package/build/lib/websocket.js +386 -0
- package/build/lib/websocket.js.map +1 -0
- package/build/main.js +2203 -0
- package/build/main.js.map +1 -0
- package/io-package.json +262 -254
- package/package.json +67 -36
- package/admin/admin.d.ts +0 -1
- package/admin/index_m.html +0 -201
- package/admin/style.css +0 -10
- package/admin/words.js +0 -20
- package/img/dss-apartment.png +0 -0
- package/img/dss-devices.png +0 -0
- package/lib/adapter-config.d.ts +0 -16
- package/lib/constants.js +0 -1202
- package/lib/dss.js +0 -193
- package/lib/dssQueue.js +0 -268
- package/lib/dssStructure.js +0 -1650
- package/lib/tools.js +0 -91
- package/main.js +0 -713
|
@@ -0,0 +1,1285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Fixed tables of the digitalSTROM system: event names, roles of sensors and outputs,
|
|
3
|
+
// scene names and the output values of the scenes.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.apartmentStateRoleMap = exports.zoneSensorStateRoleMap = exports.zoneStateRoleMap = exports.groupStateRoleMap = exports.lightSceneValueMap = exports.shadeSceneValueMap = exports.ownSceneNumberGroups = exports.momentaryScenes = exports.apartmentScenes = exports.ventilationControlScenes = exports.temperatureControlScenes = exports.temperatureControlStates = exports.temperatureControlModes = exports.groupTypes = exports.zoneSceneCommands = exports.binaryInputTypeNames = exports.windowHandleInputTypes = exports.windowHandleStateNames = exports.binaryInputStateNames = exports.sensorValuesRoleMapZone = exports.sensorValuesRoleMapOutdoor = exports.outputChannelUnitRoleMap = exports.sensorUnitRoleMap = exports.outputModeToRoleMap = exports.availableEvents = void 0;
|
|
6
|
+
exports.availableEvents = {
|
|
7
|
+
buttonClick: true, //
|
|
8
|
+
buttonDeviceAction: false, //true,
|
|
9
|
+
deviceSensorEvent: false, //true, //
|
|
10
|
+
deviceBinaryInputEvent: true, // Never seen
|
|
11
|
+
deviceActionEvent: false,
|
|
12
|
+
deviceEventEvent: false, //true,
|
|
13
|
+
callScene: true, // DONE
|
|
14
|
+
callSceneBus: false,
|
|
15
|
+
undoScene: true, // DONE
|
|
16
|
+
stateChange: true, // DONE
|
|
17
|
+
addonStateChange: true, // DONE
|
|
18
|
+
sunshine: false, // true,
|
|
19
|
+
frostprotection: false, //true,
|
|
20
|
+
heating_mode_switch: false, //true,
|
|
21
|
+
building_service: false,
|
|
22
|
+
action_execute: false,
|
|
23
|
+
highlevelevent: false, //true,
|
|
24
|
+
model_ready: true, // real startup done (e.g. after DSS restart) -> adapter restarts to reinit
|
|
25
|
+
running: false, // startup
|
|
26
|
+
blink: false, // irrelevant
|
|
27
|
+
deviceSensorValue: true, // DONE
|
|
28
|
+
deviceStateEvent: false, //true,
|
|
29
|
+
zoneSensorValue: true, // DONE
|
|
30
|
+
executionDenied: false, //true,
|
|
31
|
+
operation_lock: false, //true,
|
|
32
|
+
cluster_config_lock: false, //true,
|
|
33
|
+
devices_first_seen: false, //true,
|
|
34
|
+
scene_name_changed: false, //true,
|
|
35
|
+
dsMeter_ready: false, //true, // reinit!
|
|
36
|
+
system_trigger: false, //true,
|
|
37
|
+
'heating-controller.operation-mode': false, //true // OpenHab
|
|
38
|
+
};
|
|
39
|
+
exports.outputModeToRoleMap = {
|
|
40
|
+
0: 'value', // No output or output disabled
|
|
41
|
+
16: 'switch', // Switched
|
|
42
|
+
17: 'level', // RMS (root mean square) dimmer
|
|
43
|
+
18: 'level', // RMS dimmer with characteristic curve
|
|
44
|
+
19: 'level', // Phase control dimmer
|
|
45
|
+
20: 'level', // Phase control dimmer with characteristic curve
|
|
46
|
+
21: 'level', // Reverse phase control dimmer
|
|
47
|
+
22: 'level', // Reverse phase control dimmer with characteristic curve
|
|
48
|
+
23: 'level', // PWM (pulse width modulation)
|
|
49
|
+
24: 'level', // PWM with characteristic curve
|
|
50
|
+
33: 'level', // Positioning control
|
|
51
|
+
39: 'level', // Relay with switched mode scene table configuration
|
|
52
|
+
40: 'level', // Relay with wiped mode scene table configuration
|
|
53
|
+
41: 'level', // Relay with saving mode scene table configuration
|
|
54
|
+
42: 'level', // Positioning control for uncalibrated shutter
|
|
55
|
+
// A heating valve terminal (BL-KM300 and friends). The dSS reports an empty
|
|
56
|
+
// outputChannels list for it: the valve follows the temperature control of its
|
|
57
|
+
// zone, there is nothing this adapter writes to. Same situation as mode 0.
|
|
58
|
+
64: 'value',
|
|
59
|
+
};
|
|
60
|
+
exports.sensorUnitRoleMap = {
|
|
61
|
+
66: { name: 'Temperature', type: 'number', role: 'value.temperature', unit: '°C' }, // Temperature, Kelvin (K)
|
|
62
|
+
68: { name: 'Relative Humidity', type: 'number', role: 'value.humidity', unit: '%' }, // Relative Humidity, Percent (%)
|
|
63
|
+
67: { name: 'Brightness', type: 'number', role: 'value.brightness', unit: 'Lx' }, // Brightness, Lux (Lx)
|
|
64
|
+
25: { name: 'Sound Pressure Level', type: 'number', role: 'value', unit: 'dB' }, // Sound Pressure Level, dB
|
|
65
|
+
4: { name: 'Active Power', type: 'number', role: 'value', unit: 'W' }, // Active Power, Watt (W)
|
|
66
|
+
65: { name: 'Apparent Power', type: 'number', role: 'value', unit: 'VA' }, // Apparent Power, Volt-Ampere (VA)
|
|
67
|
+
5: { name: 'Output Current', type: 'number', role: 'value.current', unit: 'mA' }, // Output Current, Ampere (mA)
|
|
68
|
+
64: { name: 'Output Current (High Range)', type: 'number', role: 'value.current', unit: 'mA' }, // Output Current (High Range), Ampere (mA)
|
|
69
|
+
6: { name: 'Energy Meter', type: 'number', role: 'value.power.consumption', unit: 'kWh' }, // Energy Meter, Watthours (kWh)
|
|
70
|
+
69: { name: 'Generated Active Power', type: 'number', role: 'value', unit: 'W' }, // Generated Active Power, Watt (W)
|
|
71
|
+
70: { name: 'Generated Energy Meter', type: 'number', role: 'value', unit: 'kWh' }, // Generated Energy Meter, Watthours (kWh)
|
|
72
|
+
71: { name: 'Water Quantity', type: 'number', role: 'value', unit: 'l' }, // Water Quantity, Liter (l)
|
|
73
|
+
72: { name: 'Water Flow Rate', type: 'number', role: 'value', unit: 'l/s' }, // Water Flow Rate, Liter/Second (l/s)
|
|
74
|
+
73: { name: 'Length', type: 'number', role: 'value', unit: 'm' }, // Length, Meter (m)
|
|
75
|
+
74: { name: 'Mass', type: 'number', role: 'value', unit: 'g' }, // Mass, Gram (g)
|
|
76
|
+
75: { name: 'Time', type: 'number', role: 'value', unit: 's' }, // Time, Second (s)
|
|
77
|
+
9: { name: 'Room Temperature', type: 'number', role: 'value.temperature', unit: '°C' }, // Room Temperature, Kelvin (K)
|
|
78
|
+
13: { name: 'Room Relative Humidity', type: 'number', role: 'value.humidity', unit: '%' }, // Room Relative Humidity, Percent (%)
|
|
79
|
+
11: { name: 'Room Brightness', type: 'number', role: 'value.brightness', unit: 'Lx' }, // Room Brightness, Lux (Lx)
|
|
80
|
+
21: { name: 'Room Carbon Dioxide CO2 Concentration', type: 'number', role: 'value.co2', unit: 'ppm' }, // Room Carbon Dioxide CO2 Concentration, ppm
|
|
81
|
+
22: { name: 'Room Carbon Monoxide CO Concentration', type: 'number', role: 'value.co2', unit: 'ppm' }, // Room Carbon Monoxide CO Concentration, ppm
|
|
82
|
+
50: { name: 'Room Temperature Set Point', type: 'number', role: 'level.temperature', unit: '°C' }, // Room Temperature Set Point, Kelvin (K)
|
|
83
|
+
51: { name: 'Room Temperature Control Variable', type: 'number', role: 'level', unit: '%' }, // Room Temperature Control Variable, Percent (%)
|
|
84
|
+
10: { name: 'Outdoor Temperature', type: 'number', role: 'value.temperature', unit: '°C' }, // Outdoor Temperature, Kelvin (K)
|
|
85
|
+
14: { name: 'Outdoor Relative Humidity', type: 'number', role: 'value.humidity', unit: '%' }, // Outdoor Relative Humidity, Percent (%)
|
|
86
|
+
12: { name: 'Outdoor Brightness', type: 'number', role: 'value.brightness', unit: 'Lx' }, // Outdoor Brightness, Lux (Lx)
|
|
87
|
+
15: { name: 'Air pressure', type: 'number', role: 'value.pressure', unit: 'hPa' }, // Air pressure, Pascal (hPa)
|
|
88
|
+
16: { name: 'Wind gust speed', type: 'number', role: 'value.speed.wind.gust', unit: 'm/s' }, // Wind gust speed, m/s
|
|
89
|
+
17: { name: 'Wind gust direction', type: 'number', role: 'value.direction.wind', unit: '°' }, // Wind gust direction, degrees
|
|
90
|
+
18: { name: 'Wind speed (average)', type: 'number', role: 'value.speed.wind', unit: 'm/s' }, // Wind speed (average), m/s
|
|
91
|
+
19: { name: 'Wind direction', type: 'number', role: 'value.direction.wind', unit: '°' }, // Wind direction, degrees
|
|
92
|
+
20: {
|
|
93
|
+
name: 'Precipitation intensity of last hour',
|
|
94
|
+
type: 'number',
|
|
95
|
+
role: 'value.precipitation.hour',
|
|
96
|
+
unit: 'mm/m2',
|
|
97
|
+
}, // Precipitation intensity of last hour, mm/m2
|
|
98
|
+
76: { name: 'Sun Azimuth', type: 'number', role: 'value.sun.azimuth', unit: '°' }, // Sun azimuth, degrees
|
|
99
|
+
77: { name: 'Sun Elevation', type: 'number', role: 'value.sun.elevation', unit: '°' }, // Sun Elevation, degrees
|
|
100
|
+
60: {
|
|
101
|
+
name: 'Apartment Ventilation Status',
|
|
102
|
+
role: 'sensor',
|
|
103
|
+
type: 'number',
|
|
104
|
+
states: { 0: 'OK', 1: 'Reserved', 2: 'Malfunction', 4: 'Service', 6: 'Malfunction+Service' },
|
|
105
|
+
}, // Apartment Ventilation
|
|
106
|
+
255: { name: 'Unknown', type: 'number', role: 'value', unit: '' }, // Unknown
|
|
107
|
+
};
|
|
108
|
+
exports.outputChannelUnitRoleMap = {
|
|
109
|
+
brightness: {
|
|
110
|
+
name: 'Light Brightness',
|
|
111
|
+
role: 'level.brightness',
|
|
112
|
+
unit: '%',
|
|
113
|
+
type: 'number',
|
|
114
|
+
min: 0,
|
|
115
|
+
max: 100,
|
|
116
|
+
native: {
|
|
117
|
+
nativeMax: 255,
|
|
118
|
+
channelIndex: 0,
|
|
119
|
+
},
|
|
120
|
+
}, // 01 Light Brightness
|
|
121
|
+
hue: {
|
|
122
|
+
name: 'Colored Light Hue',
|
|
123
|
+
role: 'level.color.hue',
|
|
124
|
+
unit: '°',
|
|
125
|
+
type: 'number',
|
|
126
|
+
min: 0,
|
|
127
|
+
max: 360,
|
|
128
|
+
native: {
|
|
129
|
+
nativeMax: 65535,
|
|
130
|
+
},
|
|
131
|
+
}, // 02 Colored Light Hue
|
|
132
|
+
saturation: {
|
|
133
|
+
name: 'Colored Light Saturation',
|
|
134
|
+
role: 'level.color.saturation',
|
|
135
|
+
unit: '%',
|
|
136
|
+
type: 'number',
|
|
137
|
+
min: 0,
|
|
138
|
+
max: 100,
|
|
139
|
+
native: {
|
|
140
|
+
nativeMax: 255,
|
|
141
|
+
},
|
|
142
|
+
}, // 03 Colored Light Saturation
|
|
143
|
+
colortemp: {
|
|
144
|
+
name: 'Color Temperature',
|
|
145
|
+
role: 'level.color.temperature',
|
|
146
|
+
unit: 'mired',
|
|
147
|
+
type: 'number',
|
|
148
|
+
min: 100,
|
|
149
|
+
max: 1000,
|
|
150
|
+
native: {
|
|
151
|
+
nativeMax: 65535,
|
|
152
|
+
},
|
|
153
|
+
}, // 04 Color Temperature
|
|
154
|
+
x: {
|
|
155
|
+
name: 'Light CIE Color Model x',
|
|
156
|
+
role: 'level',
|
|
157
|
+
unit: '',
|
|
158
|
+
type: 'number',
|
|
159
|
+
min: 0,
|
|
160
|
+
max: 10000,
|
|
161
|
+
native: {
|
|
162
|
+
nativeMax: 65535,
|
|
163
|
+
},
|
|
164
|
+
}, // 05 Light CIE Color Model x
|
|
165
|
+
y: {
|
|
166
|
+
name: 'Light CIE Color Model y',
|
|
167
|
+
role: 'level',
|
|
168
|
+
unit: '',
|
|
169
|
+
type: 'number',
|
|
170
|
+
min: 0,
|
|
171
|
+
max: 10000,
|
|
172
|
+
native: {
|
|
173
|
+
nativeMax: 65535,
|
|
174
|
+
},
|
|
175
|
+
}, // 06 Light CIE Color Model y
|
|
176
|
+
shadePositionOutside: {
|
|
177
|
+
name: 'Shade Position Outside (blinds)',
|
|
178
|
+
role: 'level.curtain',
|
|
179
|
+
unit: '%',
|
|
180
|
+
type: 'number',
|
|
181
|
+
min: 0,
|
|
182
|
+
max: 100,
|
|
183
|
+
native: {
|
|
184
|
+
nativeMax: 65535,
|
|
185
|
+
channelIndex: 2,
|
|
186
|
+
},
|
|
187
|
+
}, // 07 Shade Position Outside (blinds)
|
|
188
|
+
shadePositionIndoor: {
|
|
189
|
+
name: 'Shade Position Indoor (curtains)',
|
|
190
|
+
role: 'level.curtain',
|
|
191
|
+
unit: '%',
|
|
192
|
+
type: 'number',
|
|
193
|
+
min: 0,
|
|
194
|
+
max: 100,
|
|
195
|
+
native: {
|
|
196
|
+
nativeMax: 65535,
|
|
197
|
+
channelIndex: 2,
|
|
198
|
+
},
|
|
199
|
+
}, // 08 Shade Position Outside (curtains)
|
|
200
|
+
shadeOpeningAngleOutside: {
|
|
201
|
+
name: 'Shade Opening Angle Outside (blinds)',
|
|
202
|
+
role: 'level.tilt',
|
|
203
|
+
unit: '%',
|
|
204
|
+
type: 'number',
|
|
205
|
+
min: 0,
|
|
206
|
+
max: 100,
|
|
207
|
+
native: {
|
|
208
|
+
nativeMax: 255,
|
|
209
|
+
channelIndex: 4,
|
|
210
|
+
},
|
|
211
|
+
}, // 09 Shade Opening Angle Outside (blinds)
|
|
212
|
+
shadeOpeningAngleIndoor: {
|
|
213
|
+
name: 'Shade Opening Angle Indoor (curtains)',
|
|
214
|
+
role: 'level.tilt',
|
|
215
|
+
unit: '%',
|
|
216
|
+
type: 'number',
|
|
217
|
+
min: 0,
|
|
218
|
+
max: 100,
|
|
219
|
+
native: {
|
|
220
|
+
nativeMax: 255,
|
|
221
|
+
channelIndex: 4,
|
|
222
|
+
},
|
|
223
|
+
}, // 10 Shade Opening Angle Indoor (curtains)
|
|
224
|
+
transparency: {
|
|
225
|
+
name: 'Transparency',
|
|
226
|
+
role: 'level',
|
|
227
|
+
type: 'number',
|
|
228
|
+
unit: '%',
|
|
229
|
+
min: 0,
|
|
230
|
+
max: 100,
|
|
231
|
+
native: {
|
|
232
|
+
nativeMax: 255,
|
|
233
|
+
},
|
|
234
|
+
}, // 11 Transparency (e.g. smart glass)
|
|
235
|
+
airFlowIntensity: {
|
|
236
|
+
name: 'Air Flow Intensity',
|
|
237
|
+
role: 'level',
|
|
238
|
+
type: 'number',
|
|
239
|
+
unit: '%',
|
|
240
|
+
min: 0,
|
|
241
|
+
max: 100,
|
|
242
|
+
native: {
|
|
243
|
+
nativeMax: 255,
|
|
244
|
+
},
|
|
245
|
+
}, // 12 Air Flow Intensity
|
|
246
|
+
airFlowDirection: {
|
|
247
|
+
name: 'Air Flow Direction',
|
|
248
|
+
role: 'level',
|
|
249
|
+
type: 'number',
|
|
250
|
+
min: 0,
|
|
251
|
+
max: 2,
|
|
252
|
+
states: { 0: 'in+out', 1: 'supply (in)', 2: 'exhaust (out)' },
|
|
253
|
+
native: {},
|
|
254
|
+
}, // 13 Air Flow Direction
|
|
255
|
+
airFlapPosition: {
|
|
256
|
+
name: 'Flap Opening Angle',
|
|
257
|
+
role: 'level',
|
|
258
|
+
unit: '%',
|
|
259
|
+
type: 'number',
|
|
260
|
+
min: 0,
|
|
261
|
+
max: 100,
|
|
262
|
+
native: {
|
|
263
|
+
nativeMax: 255,
|
|
264
|
+
},
|
|
265
|
+
}, // 14 Flap Opening Angle
|
|
266
|
+
airLouverPosition: {
|
|
267
|
+
name: 'Ventilation Louver Position',
|
|
268
|
+
role: 'level',
|
|
269
|
+
type: 'number',
|
|
270
|
+
unit: '%',
|
|
271
|
+
min: 0,
|
|
272
|
+
max: 100,
|
|
273
|
+
native: {
|
|
274
|
+
nativeMax: 255,
|
|
275
|
+
},
|
|
276
|
+
}, // 15 Ventilation Louver Position
|
|
277
|
+
heatingPower: {
|
|
278
|
+
name: 'Heating Power',
|
|
279
|
+
role: 'level',
|
|
280
|
+
type: 'number',
|
|
281
|
+
unit: '',
|
|
282
|
+
min: 0,
|
|
283
|
+
max: 100,
|
|
284
|
+
native: {
|
|
285
|
+
nativeMax: 255,
|
|
286
|
+
},
|
|
287
|
+
}, // 16 Heating Power
|
|
288
|
+
coolingCapacity: {
|
|
289
|
+
name: 'Cooling Capacity',
|
|
290
|
+
role: 'level',
|
|
291
|
+
type: 'number',
|
|
292
|
+
unit: '%',
|
|
293
|
+
min: 0,
|
|
294
|
+
max: 100,
|
|
295
|
+
native: {
|
|
296
|
+
nativeMax: 255,
|
|
297
|
+
},
|
|
298
|
+
}, // 17 Cooling Capacity
|
|
299
|
+
audioVolume: {
|
|
300
|
+
name: 'Audio Volume',
|
|
301
|
+
role: 'level.volume',
|
|
302
|
+
type: 'number',
|
|
303
|
+
unit: '%',
|
|
304
|
+
min: 0,
|
|
305
|
+
max: 100,
|
|
306
|
+
native: {
|
|
307
|
+
nativeMax: 255,
|
|
308
|
+
},
|
|
309
|
+
}, // 18 Audio Volume (loudness)
|
|
310
|
+
powerState: {
|
|
311
|
+
name: 'Power State',
|
|
312
|
+
role: 'level',
|
|
313
|
+
type: 'number',
|
|
314
|
+
unit: '',
|
|
315
|
+
min: 0,
|
|
316
|
+
max: 2,
|
|
317
|
+
states: { 0: 'Off', 1: 'Power Save', 2: 'On' },
|
|
318
|
+
native: {},
|
|
319
|
+
}, // 19 Power State
|
|
320
|
+
airLouverAuto: {
|
|
321
|
+
name: 'Ventilation swing mode',
|
|
322
|
+
role: 'switch',
|
|
323
|
+
type: 'boolean',
|
|
324
|
+
unit: '',
|
|
325
|
+
native: {},
|
|
326
|
+
}, // 20 Ventilation swing mode
|
|
327
|
+
airFlowAuto: {
|
|
328
|
+
name: 'Ventilation auto intensity',
|
|
329
|
+
role: 'switch',
|
|
330
|
+
type: 'boolean',
|
|
331
|
+
unit: '',
|
|
332
|
+
native: {},
|
|
333
|
+
}, // 21 Ventilation auto intensity
|
|
334
|
+
waterTemperature: {
|
|
335
|
+
name: 'Water Temperature',
|
|
336
|
+
role: 'level.temperature',
|
|
337
|
+
type: 'number',
|
|
338
|
+
unit: '°C',
|
|
339
|
+
min: 0,
|
|
340
|
+
max: 150,
|
|
341
|
+
native: {},
|
|
342
|
+
}, // 22 Water Temperature
|
|
343
|
+
waterFlow: {
|
|
344
|
+
name: 'Water Flow Rate',
|
|
345
|
+
role: 'level',
|
|
346
|
+
type: 'number',
|
|
347
|
+
unit: '%',
|
|
348
|
+
min: 0,
|
|
349
|
+
max: 100,
|
|
350
|
+
native: {},
|
|
351
|
+
}, // 23 Water Flow Rate
|
|
352
|
+
powerLevel: {
|
|
353
|
+
name: 'Power Level',
|
|
354
|
+
role: 'level',
|
|
355
|
+
type: 'number',
|
|
356
|
+
unit: '%',
|
|
357
|
+
min: 0,
|
|
358
|
+
max: 100,
|
|
359
|
+
native: {},
|
|
360
|
+
}, // 24 Power Level
|
|
361
|
+
};
|
|
362
|
+
exports.sensorValuesRoleMapOutdoor = {
|
|
363
|
+
temperature: {
|
|
364
|
+
name: 'Temperature',
|
|
365
|
+
role: 'value.temperature',
|
|
366
|
+
unit: '°C',
|
|
367
|
+
type: 'number',
|
|
368
|
+
native: {
|
|
369
|
+
sensorType: 10,
|
|
370
|
+
},
|
|
371
|
+
}, // Temperature, Kelvin (K)
|
|
372
|
+
humidity: {
|
|
373
|
+
name: 'Relative Humidity',
|
|
374
|
+
role: 'value.humidity',
|
|
375
|
+
unit: '%',
|
|
376
|
+
type: 'number',
|
|
377
|
+
native: {
|
|
378
|
+
sensorType: 14,
|
|
379
|
+
},
|
|
380
|
+
}, // Relative Humidity, Percent (%)
|
|
381
|
+
brightness: {
|
|
382
|
+
name: 'Brightness',
|
|
383
|
+
role: 'value.brightness',
|
|
384
|
+
unit: 'Lx',
|
|
385
|
+
type: 'number',
|
|
386
|
+
native: {
|
|
387
|
+
sensorType: 12,
|
|
388
|
+
},
|
|
389
|
+
}, // Brightness, Lux (Lx)
|
|
390
|
+
precipitation: {
|
|
391
|
+
name: 'Precipitation intensity of last hour',
|
|
392
|
+
role: 'value.precipitation.hour',
|
|
393
|
+
type: 'number',
|
|
394
|
+
unit: 'mm/m2',
|
|
395
|
+
native: {
|
|
396
|
+
sensorType: 20,
|
|
397
|
+
},
|
|
398
|
+
}, // Precipitation intensity of last hour, mm/m2
|
|
399
|
+
airpressure: {
|
|
400
|
+
name: 'Air pressure',
|
|
401
|
+
role: 'value.pressure',
|
|
402
|
+
type: 'number',
|
|
403
|
+
unit: 'hPa',
|
|
404
|
+
native: {
|
|
405
|
+
sensorType: 15,
|
|
406
|
+
},
|
|
407
|
+
}, // Air pressure, Pascal (hPa)
|
|
408
|
+
windspeed: {
|
|
409
|
+
name: 'Wind speed',
|
|
410
|
+
role: 'value.speed.wind',
|
|
411
|
+
type: 'number',
|
|
412
|
+
unit: 'm/s',
|
|
413
|
+
native: {
|
|
414
|
+
sensorType: 18,
|
|
415
|
+
},
|
|
416
|
+
}, // Wind speed, m/s
|
|
417
|
+
winddirection: {
|
|
418
|
+
name: 'Wind direction',
|
|
419
|
+
type: 'number',
|
|
420
|
+
role: 'value.direction.wind',
|
|
421
|
+
unit: '°',
|
|
422
|
+
native: {
|
|
423
|
+
sensorType: 19,
|
|
424
|
+
},
|
|
425
|
+
}, // Wind direction, degrees
|
|
426
|
+
windgust: {
|
|
427
|
+
name: 'Wind gust speed?',
|
|
428
|
+
type: 'number',
|
|
429
|
+
role: 'value.speed.wind.gust',
|
|
430
|
+
unit: 'm/s',
|
|
431
|
+
native: {
|
|
432
|
+
sensorType: 16,
|
|
433
|
+
},
|
|
434
|
+
}, // Wind gust speed, m/s
|
|
435
|
+
gustspeed: {
|
|
436
|
+
name: 'Wind gust speed',
|
|
437
|
+
type: 'number',
|
|
438
|
+
role: 'value.speed.wind.gust',
|
|
439
|
+
unit: 'm/s',
|
|
440
|
+
native: {
|
|
441
|
+
sensorType: 16,
|
|
442
|
+
},
|
|
443
|
+
}, // Wind gust speed, m/s
|
|
444
|
+
gustdirection: {
|
|
445
|
+
name: 'Wind gust direction',
|
|
446
|
+
type: 'number',
|
|
447
|
+
role: 'value.direction.wind',
|
|
448
|
+
unit: '°',
|
|
449
|
+
native: {
|
|
450
|
+
sensorType: 17,
|
|
451
|
+
},
|
|
452
|
+
}, // Wind gust direction, degrees
|
|
453
|
+
sunazimuth: {
|
|
454
|
+
name: 'Sun Azimuth',
|
|
455
|
+
type: 'number',
|
|
456
|
+
role: 'value.sun.azimuth',
|
|
457
|
+
unit: '°',
|
|
458
|
+
native: {
|
|
459
|
+
sensorType: 76,
|
|
460
|
+
},
|
|
461
|
+
}, // Wind gust direction, degrees
|
|
462
|
+
sunelevation: {
|
|
463
|
+
name: 'Sun Elevation',
|
|
464
|
+
type: 'number',
|
|
465
|
+
role: 'value.sun.elevation',
|
|
466
|
+
unit: '°',
|
|
467
|
+
native: {
|
|
468
|
+
sensorType: 77,
|
|
469
|
+
},
|
|
470
|
+
}, // Wind gust direction, degrees
|
|
471
|
+
};
|
|
472
|
+
exports.sensorValuesRoleMapZone = {
|
|
473
|
+
TemperatureValue: {
|
|
474
|
+
name: 'Temperature',
|
|
475
|
+
role: 'value.temperature',
|
|
476
|
+
unit: '°C',
|
|
477
|
+
type: 'number',
|
|
478
|
+
native: {
|
|
479
|
+
sensorType: 9,
|
|
480
|
+
},
|
|
481
|
+
}, // Temperature, Kelvin (K)
|
|
482
|
+
HumidityValue: {
|
|
483
|
+
name: 'Relative Humidity',
|
|
484
|
+
role: 'value.humidity',
|
|
485
|
+
unit: '%',
|
|
486
|
+
type: 'number',
|
|
487
|
+
native: {
|
|
488
|
+
sensorType: 13,
|
|
489
|
+
},
|
|
490
|
+
}, // Relative Humidity, Percent (%)
|
|
491
|
+
CO2ConcentrationValue: {
|
|
492
|
+
name: 'CO2 Concentration',
|
|
493
|
+
role: 'value.co2',
|
|
494
|
+
unit: 'ppm',
|
|
495
|
+
type: 'number',
|
|
496
|
+
native: {
|
|
497
|
+
sensorType: 21,
|
|
498
|
+
},
|
|
499
|
+
}, // CO2 Concentration, ppm
|
|
500
|
+
BrightnessValue: {
|
|
501
|
+
name: 'Brightness',
|
|
502
|
+
role: 'value.brightness',
|
|
503
|
+
unit: 'Lx',
|
|
504
|
+
type: 'number',
|
|
505
|
+
native: {
|
|
506
|
+
sensorType: 11,
|
|
507
|
+
},
|
|
508
|
+
}, // Brightness, Lux (Lx)
|
|
509
|
+
ControlValue: {
|
|
510
|
+
name: 'Room Temperature Control Variable',
|
|
511
|
+
role: 'level',
|
|
512
|
+
unit: '%',
|
|
513
|
+
type: 'number',
|
|
514
|
+
read: true,
|
|
515
|
+
write: false,
|
|
516
|
+
native: {
|
|
517
|
+
sensorType: 51,
|
|
518
|
+
},
|
|
519
|
+
}, // Room Temperature Control Variable, Percent (%)
|
|
520
|
+
NominalValue: {
|
|
521
|
+
name: 'Room Temperature Nominal Variable',
|
|
522
|
+
role: 'value.temperature',
|
|
523
|
+
unit: '°C',
|
|
524
|
+
type: 'number',
|
|
525
|
+
native: {
|
|
526
|
+
sensorType: 50, // ???
|
|
527
|
+
},
|
|
528
|
+
}, // Nominal Temperature, Kelvin (K)
|
|
529
|
+
};
|
|
530
|
+
// The state of a binary input is 1 based: the structure reports it that way and the
|
|
531
|
+
// event handler lifts the 0 based inputState of an event onto the same scale.
|
|
532
|
+
exports.binaryInputStateNames = {
|
|
533
|
+
1: 'inactive',
|
|
534
|
+
2: 'active',
|
|
535
|
+
};
|
|
536
|
+
// A window handle is the exception, it reports three positions instead of two. Observed
|
|
537
|
+
// on an EnOcean window handle (F6-10-00): closed 1, open 2, tilted 3, each confirmed
|
|
538
|
+
// against the readable device state of the same handle.
|
|
539
|
+
exports.windowHandleStateNames = {
|
|
540
|
+
1: 'closed',
|
|
541
|
+
2: 'open',
|
|
542
|
+
3: 'tilted',
|
|
543
|
+
};
|
|
544
|
+
// Binary input types that carry the three positions of a window handle
|
|
545
|
+
exports.windowHandleInputTypes = [15];
|
|
546
|
+
exports.binaryInputTypeNames = {
|
|
547
|
+
1: 'Presence', // Presence detector
|
|
548
|
+
2: 'Brightness',
|
|
549
|
+
3: 'Presence in darkness', // Presence detector with activated in- ternal twilight sensor
|
|
550
|
+
4: 'Twilight', // Twilight sensor
|
|
551
|
+
5: 'Motion', // Motion detector
|
|
552
|
+
6: 'Motion in darkness', // Motion detector with activated internal twilight sensor
|
|
553
|
+
7: 'Smoke', // Smoke Detector
|
|
554
|
+
8: 'Wind strength above limit', // Wind monitor with user-adjusted wind strength threshold
|
|
555
|
+
9: 'Rain', // Rain monitor
|
|
556
|
+
10: 'Sun radiation', // Sun light above threshold
|
|
557
|
+
11: 'Temperature below limit', // Room thermostat with used-adjusted temperature threshold
|
|
558
|
+
12: 'Battery status is low', // electric battery is running out of power
|
|
559
|
+
13: 'Window is open', // Window contact
|
|
560
|
+
14: 'Door is open', // Door contact
|
|
561
|
+
15: 'Window is tilted', // Window handle; window is tilted in- stead of fully opened
|
|
562
|
+
16: 'Garage door is open', // Garage door contact
|
|
563
|
+
17: 'Sun protection', // Protect against too much sun light
|
|
564
|
+
18: 'Frost', // Frost detector
|
|
565
|
+
19: 'Heating system enabled', // Heating system activated
|
|
566
|
+
20: 'Change-over signal', // Change-over signal between warm water (active) or cold water (inactive)
|
|
567
|
+
21: 'Initialization status', // On power-up or startup not all func- tions may be ready (yet)
|
|
568
|
+
22: 'Malfunction', // Connected device is broken and re- quires maintenance. Operation may have seized.
|
|
569
|
+
23: 'Service', // Connected device requires mainte- nance. Normal operation still possi- ble.
|
|
570
|
+
};
|
|
571
|
+
exports.zoneSceneCommands = {
|
|
572
|
+
1: 'Area 1 Off', // Set output value to Preset Area 1 Off (Default: Off)
|
|
573
|
+
6: 'Area 1 On', // Set output value to Preset Area 1 On (Default: On)
|
|
574
|
+
43: 'Area 1 Increment', // Initial command to increment output value
|
|
575
|
+
42: 'Area 1 Decrement', // Initial command to decrement output value
|
|
576
|
+
52: 'Area 1 Stop', // Stop output value change at current position
|
|
577
|
+
2: 'Area 2 Off', // Set output value to Area 2 Off (Default: Off)
|
|
578
|
+
7: 'Area 2 On', // Set output value to Area 2 On (Default: On)
|
|
579
|
+
45: 'Area 2 Increment', // Initial command to increment output value
|
|
580
|
+
44: 'Area 2 Decrement', // Initial command to decrement output value
|
|
581
|
+
53: 'Area 2 Stop', // Stop output value change at current position
|
|
582
|
+
3: 'Area 3 Off', // Set output value to Area 3 Off (Default: Off)
|
|
583
|
+
8: 'Area 3 On', // Set output value to Area 3 On (Default: On)
|
|
584
|
+
47: 'Area 3 Increment', // Initial command to increment output value
|
|
585
|
+
46: 'Area 3 Decrement', // Initial command to decrement output value
|
|
586
|
+
54: 'Area 3 Stop', // Stop output value change at current position
|
|
587
|
+
4: 'Area 4 Off', // Set output value to Area 4 Off (Default: Off)
|
|
588
|
+
9: 'Area 4 On', // Set output value to Area 4 On (Default: On)
|
|
589
|
+
49: 'Area 4 Increment', // Initial command to increment output value
|
|
590
|
+
48: 'Area 4 Decrement', // Initial command to decrement output value
|
|
591
|
+
55: 'Area 4 Stop', // Stop output value change at current position
|
|
592
|
+
10: 'Area Stepping Continue', // Next step to increment or decrement
|
|
593
|
+
// local pushbutton
|
|
594
|
+
51: 'Local On', // Local on
|
|
595
|
+
50: 'Local Off', // Local off
|
|
596
|
+
// special scenes
|
|
597
|
+
13: 'Minimum', // Minimum output value
|
|
598
|
+
14: 'Maximum', // Maximum output value
|
|
599
|
+
15: 'Stop', // Stop output value change at current position
|
|
600
|
+
40: 'Auto-Off', // Slowly fade down to off value
|
|
601
|
+
41: 'Impulse', // Short impulse on the output
|
|
602
|
+
56: 'Sun Protection', // Sun Protection
|
|
603
|
+
// stepping
|
|
604
|
+
12: 'Increment', // Increment output value
|
|
605
|
+
11: 'Decrement', // Decrement output value
|
|
606
|
+
// presets
|
|
607
|
+
0: 'Preset 0 (Default: Off)', // Set output value to Preset 0 (Default: Off)
|
|
608
|
+
5: 'Preset 1 (Default: On)', // Set output value to Preset 1 (Default: On)
|
|
609
|
+
17: 'Preset 2', // Set output value to Preset 2
|
|
610
|
+
18: 'Preset 3', // Set output value to Preset 3
|
|
611
|
+
19: 'Preset 4', // Set output value to Preset 4
|
|
612
|
+
32: 'Preset 10 (Default: Off)', // Set output value to Preset 10 (Default: Off)
|
|
613
|
+
33: 'Preset 11 (Default: On)', // Set output value to Preset 11 (Default: On)
|
|
614
|
+
20: 'Preset 12', // Set output value to Preset 12
|
|
615
|
+
21: 'Preset 13', // Set output value to Preset 13
|
|
616
|
+
22: 'Preset 14', // Set output value to Preset 14
|
|
617
|
+
34: 'Preset 20 (Default: Off)', // Set output value to Preset 20 (Default: Off)
|
|
618
|
+
35: 'Preset 21 (Default: On)', // Set output value to Preset 21 (Default: On)
|
|
619
|
+
23: 'Preset 22', // Set output value to Preset 22
|
|
620
|
+
24: 'Preset 23', // Set output value to Preset 23
|
|
621
|
+
25: 'Preset 24', // Set output value to Preset 24
|
|
622
|
+
36: 'Preset 30 (Default: Off)', // Set output value to Preset 30 (Default: Off)
|
|
623
|
+
37: 'Preset 31 (Default: On)', // Set output value to Preset 31 (Default: On)
|
|
624
|
+
26: 'Preset 32', // Set output value to Preset 32
|
|
625
|
+
27: 'Preset 33', // Set output value to Preset 33
|
|
626
|
+
28: 'Preset 34', // Set output value to Preset 34
|
|
627
|
+
38: 'Preset 40 (Default: Off)', // Set output value to Preset 40 (Default: Off)
|
|
628
|
+
39: 'Preset 41 (Default: On)', // Set output value to Preset 41 (Default: On)
|
|
629
|
+
29: 'Preset 42', // Set output value to Preset 42
|
|
630
|
+
30: 'Preset 43', // Set output value to Preset 43
|
|
631
|
+
31: 'Preset 44', // Set output value to Preset 44
|
|
632
|
+
};
|
|
633
|
+
exports.groupTypes = {
|
|
634
|
+
0: 'Broadcast',
|
|
635
|
+
1: 'Light/Yellow',
|
|
636
|
+
2: 'Shading/Gray',
|
|
637
|
+
3: 'Heating/Blue',
|
|
638
|
+
4: 'Audio/Cyan',
|
|
639
|
+
5: 'Video/Magenta',
|
|
640
|
+
6: 'Reserved1',
|
|
641
|
+
7: 'Reserved2',
|
|
642
|
+
8: 'Joker/Black',
|
|
643
|
+
9: 'Cooling/Blue',
|
|
644
|
+
10: 'Ventilation/Blue',
|
|
645
|
+
11: 'Window/Blue',
|
|
646
|
+
12: 'Air recirculation/Blue',
|
|
647
|
+
48: 'Temperature Control/Blue',
|
|
648
|
+
64: 'Apartment Ventilation',
|
|
649
|
+
};
|
|
650
|
+
// Controller mode of the room temperature control, reported by
|
|
651
|
+
// apartment/getTemperatureControlStatus as "ControlMode".
|
|
652
|
+
// 0 and 1 are confirmed against a real DSS (0 = rooms without any regulation,
|
|
653
|
+
// 1 = the regulated rooms), 2..4 are taken from the digitalSTROM specification.
|
|
654
|
+
exports.temperatureControlModes = {
|
|
655
|
+
0: 'Off (no regulation)',
|
|
656
|
+
1: 'PID control',
|
|
657
|
+
2: 'Zone follower',
|
|
658
|
+
3: 'Fixed value',
|
|
659
|
+
4: 'Manual',
|
|
660
|
+
};
|
|
661
|
+
// Who currently owns the set point, reported as "ControlState".
|
|
662
|
+
// 0 is confirmed against a real DSS, 1..3 are taken from the specification.
|
|
663
|
+
exports.temperatureControlStates = {
|
|
664
|
+
0: 'Internal',
|
|
665
|
+
1: 'External',
|
|
666
|
+
2: 'External backup',
|
|
667
|
+
3: 'Emergency',
|
|
668
|
+
};
|
|
669
|
+
exports.temperatureControlScenes = {
|
|
670
|
+
0: 'Heating Off',
|
|
671
|
+
1: 'Heating Comfort',
|
|
672
|
+
2: 'Heating Economy',
|
|
673
|
+
3: 'Heating Not Used',
|
|
674
|
+
4: 'Heating Night',
|
|
675
|
+
5: 'Heating Holiday',
|
|
676
|
+
6: 'Cooling Comfort',
|
|
677
|
+
7: 'Cooling Off',
|
|
678
|
+
8: 'Cooling Economy',
|
|
679
|
+
9: 'Cooling Not Used',
|
|
680
|
+
10: 'Cooling Night',
|
|
681
|
+
11: 'Cooling Holiday',
|
|
682
|
+
};
|
|
683
|
+
exports.ventilationControlScenes = {
|
|
684
|
+
0: 'Off',
|
|
685
|
+
5: 'Level 1',
|
|
686
|
+
17: 'Level 2',
|
|
687
|
+
18: 'Level 3',
|
|
688
|
+
19: 'Level 4',
|
|
689
|
+
33: 'Automatic (air flow intensity)',
|
|
690
|
+
35: 'Auto (louver swing mode)',
|
|
691
|
+
36: 'Boost',
|
|
692
|
+
37: 'Noise Reduction (calm)',
|
|
693
|
+
};
|
|
694
|
+
exports.apartmentScenes = {
|
|
695
|
+
68: 'Deep Off',
|
|
696
|
+
66: 'Energy overload',
|
|
697
|
+
67: 'Standby',
|
|
698
|
+
75: 'Zone active',
|
|
699
|
+
64: 'Auto Standby',
|
|
700
|
+
72: 'Absent',
|
|
701
|
+
71: 'Present',
|
|
702
|
+
69: 'Sleeping',
|
|
703
|
+
70: 'Wakeup',
|
|
704
|
+
73: 'Door Bell',
|
|
705
|
+
65: 'Panic',
|
|
706
|
+
76: 'Fire',
|
|
707
|
+
74: 'Alarm-1',
|
|
708
|
+
83: 'Alarm-2',
|
|
709
|
+
84: 'Alarm-3',
|
|
710
|
+
85: 'Alarm-4',
|
|
711
|
+
86: 'Wind',
|
|
712
|
+
87: 'No-Wind',
|
|
713
|
+
88: 'Rain',
|
|
714
|
+
89: 'No-Rain',
|
|
715
|
+
90: 'Hail',
|
|
716
|
+
91: 'No-Hail',
|
|
717
|
+
};
|
|
718
|
+
// Scenes that command a movement instead of selecting a preset. The dSS sends a
|
|
719
|
+
// callScene for them and never the matching undoScene - measured over three hours:
|
|
720
|
+
// six callScene 15 on two blinds, and not one undoScene in the whole run. In a "last
|
|
721
|
+
// called scene" model their boolean therefore stays true from the first press to the
|
|
722
|
+
// end of the run, and a rule on it fires once and never again.
|
|
723
|
+
// Both value maps already say that these scenes stand for no output value: 10, 11 and
|
|
724
|
+
// 12 carry null there, 15 carries null, 41 is not listed at all. The area variants
|
|
725
|
+
// (42..49, 52..55) are momentary in the same sense, but both maps declare 0 for them -
|
|
726
|
+
// correcting that would change output behaviour and is deliberately not done here.
|
|
727
|
+
exports.momentaryScenes = {
|
|
728
|
+
10: true, // Area Stepping Continue
|
|
729
|
+
11: true, // Decrement
|
|
730
|
+
12: true, // Increment
|
|
731
|
+
15: true, // Stop
|
|
732
|
+
41: true, // Impulse
|
|
733
|
+
};
|
|
734
|
+
// Groups that read the same scene numbers as something else entirely: 48 maps them
|
|
735
|
+
// through temperatureControlScenes (10 is Cooling Night, 11 Cooling Holiday), 10 and
|
|
736
|
+
// 64 through ventilationControlScenes. Those are lasting modes - a momentary scene
|
|
737
|
+
// number must never be read into one of them.
|
|
738
|
+
exports.ownSceneNumberGroups = [10, 48, 64];
|
|
739
|
+
exports.shadeSceneValueMap = {
|
|
740
|
+
// not in list === don't care
|
|
741
|
+
// do not set value, just get it
|
|
742
|
+
// LP === Ignore Local Priority when set - means wins 100%.
|
|
743
|
+
0: 0, // Preset 0
|
|
744
|
+
1: 0, // LP Area 1 Off
|
|
745
|
+
2: 0, // LP Area 2 Off
|
|
746
|
+
3: 0, // LP Area 3 Off
|
|
747
|
+
4: 0, // LP Area 4 Off
|
|
748
|
+
5: 65535, // Preset 1
|
|
749
|
+
6: 65535, // LP Area 1 On
|
|
750
|
+
7: 65535, // LP Area 2 On
|
|
751
|
+
8: 65535, // LP Area 3 On
|
|
752
|
+
9: 65535, // LP Area 4 On
|
|
753
|
+
10: null, //0, // LP Area Stepping Continue
|
|
754
|
+
11: null, //0, // Decrement ??
|
|
755
|
+
12: null, //0, // Increment ??
|
|
756
|
+
13: 0, // LP Minimum
|
|
757
|
+
14: 65535, // LP Maximum
|
|
758
|
+
15: null, //0, // LP Stop ??
|
|
759
|
+
17: 65535, // Preset 2
|
|
760
|
+
18: 32768, // Preset 3
|
|
761
|
+
19: 16384, // Preset 4
|
|
762
|
+
20: 65535, // Preset 12
|
|
763
|
+
21: 32768, // Preset 13
|
|
764
|
+
22: 16384, // Preset 14
|
|
765
|
+
23: 65535, // Preset 22
|
|
766
|
+
24: 32768, // Preset 23
|
|
767
|
+
25: 16384, // Preset 24
|
|
768
|
+
26: 65535, // Preset 32
|
|
769
|
+
27: 32768, // Preset 33
|
|
770
|
+
28: 16384, // Preset 34
|
|
771
|
+
29: 65535, // Preset 42
|
|
772
|
+
30: 32768, // Preset 43
|
|
773
|
+
31: 16384, // Preset 44
|
|
774
|
+
32: 0, // Preset 10
|
|
775
|
+
33: 65535, // Preset 11
|
|
776
|
+
34: 0, // Preset 20
|
|
777
|
+
35: 65535, // Preset 21
|
|
778
|
+
36: 0, // Preset 30
|
|
779
|
+
37: 65535, // Preset 31
|
|
780
|
+
38: 0, // Preset 40
|
|
781
|
+
39: 65535, // Preset 41
|
|
782
|
+
40: 0, // Auto-Off
|
|
783
|
+
42: 0, // LP Area 1 Decrement
|
|
784
|
+
43: 0, // LP Area 1 Increment
|
|
785
|
+
44: 0, // LP Area 2 Decrement
|
|
786
|
+
45: 0, // LP Area 2 Increment
|
|
787
|
+
46: 0, // LP Area 3 Decrement
|
|
788
|
+
47: 0, // LP Area 3 Increment
|
|
789
|
+
48: 0, // LP Area 4 Decrement
|
|
790
|
+
49: 0, // LP Area 4 Increment
|
|
791
|
+
50: 0, // LP Device Off
|
|
792
|
+
51: 65535, // LP Device On
|
|
793
|
+
52: 0, // LP Area 1 Stop
|
|
794
|
+
53: 0, // LP Area 2 Stop
|
|
795
|
+
54: 0, // LP Area 3 Stop
|
|
796
|
+
55: 0, // LP Area 4 Stop
|
|
797
|
+
64: 0, // LP reserved
|
|
798
|
+
65: 65535, // LP Panic
|
|
799
|
+
67: 0, // LP Standby
|
|
800
|
+
68: 0, // LP Deep Off
|
|
801
|
+
69: 0, // LP Sleeping
|
|
802
|
+
72: 0, // LP Absent
|
|
803
|
+
76: 65535, // LP Fire
|
|
804
|
+
77: 65535, // LP Smoke
|
|
805
|
+
90: 65535, // LP Hail
|
|
806
|
+
};
|
|
807
|
+
exports.lightSceneValueMap = {
|
|
808
|
+
// not in list === don't care
|
|
809
|
+
// do not set value, just get it
|
|
810
|
+
// LP === Ignore Local Priority when set - means wins 100%.
|
|
811
|
+
0: 0, // Preset 0
|
|
812
|
+
1: 0, // LP Area 1 Off
|
|
813
|
+
2: 0, // LP Area 2 Off
|
|
814
|
+
3: 0, // LP Area 3 Off
|
|
815
|
+
4: 0, // LP Area 4 Off
|
|
816
|
+
5: 255, // Preset 1
|
|
817
|
+
6: 255, // LP Area 1 On
|
|
818
|
+
7: 255, // LP Area 2 On
|
|
819
|
+
8: 255, // LP Area 3 On
|
|
820
|
+
9: 255, // LP Area 4 On
|
|
821
|
+
10: null, //0, // LP Area Stepping Continue
|
|
822
|
+
11: null, //0, // Decrement ??
|
|
823
|
+
12: null, //0, // Increment ??
|
|
824
|
+
13: 0, // LP Minimum
|
|
825
|
+
14: 255, // LP Maximum
|
|
826
|
+
15: null, //0, // LP Stop ??
|
|
827
|
+
17: 192, // Preset 2
|
|
828
|
+
18: 128, // Preset 3
|
|
829
|
+
19: 64, // Preset 4
|
|
830
|
+
20: 192, // Preset 12
|
|
831
|
+
21: 128, // Preset 13
|
|
832
|
+
22: 64, // Preset 14
|
|
833
|
+
23: 192, // Preset 22
|
|
834
|
+
24: 128, // Preset 23
|
|
835
|
+
25: 64, // Preset 24
|
|
836
|
+
26: 192, // Preset 32
|
|
837
|
+
27: 128, // Preset 33
|
|
838
|
+
28: 64, // Preset 34
|
|
839
|
+
29: 192, // Preset 42
|
|
840
|
+
30: 128, // Preset 43
|
|
841
|
+
31: 64, // Preset 44
|
|
842
|
+
32: 0, // Preset 10
|
|
843
|
+
33: 255, // Preset 11
|
|
844
|
+
34: 0, // Preset 20
|
|
845
|
+
35: 255, // Preset 21
|
|
846
|
+
36: 0, // Preset 30
|
|
847
|
+
37: 255, // Preset 31
|
|
848
|
+
38: 0, // Preset 40
|
|
849
|
+
39: 255, // Preset 41
|
|
850
|
+
40: 0, // Auto-Off
|
|
851
|
+
42: 0, // LP Area 1 Decrement
|
|
852
|
+
43: 0, // LP Area 1 Increment
|
|
853
|
+
44: 0, // LP Area 2 Decrement
|
|
854
|
+
45: 0, // LP Area 2 Increment
|
|
855
|
+
46: 0, // LP Area 3 Decrement
|
|
856
|
+
47: 0, // LP Area 3 Increment
|
|
857
|
+
48: 0, // LP Area 4 Decrement
|
|
858
|
+
49: 0, // LP Area 4 Increment
|
|
859
|
+
50: 0, // LP Device Off
|
|
860
|
+
51: 255, // LP Device On
|
|
861
|
+
52: 0, // LP Area 1 Stop
|
|
862
|
+
53: 0, // LP Area 2 Stop
|
|
863
|
+
54: 0, // LP Area 3 Stop
|
|
864
|
+
55: 0, // LP Area 4 Stop
|
|
865
|
+
64: 0, // LP reserved
|
|
866
|
+
65: 255, // LP Panic
|
|
867
|
+
67: 0, // LP Standby
|
|
868
|
+
68: 0, // LP Deep Off
|
|
869
|
+
69: 0, // LP Sleeping
|
|
870
|
+
72: 0, // LP Absent
|
|
871
|
+
76: 255, // LP Fire
|
|
872
|
+
};
|
|
873
|
+
// The states a group (cluster) carries. Only the two locks are listed on purpose:
|
|
874
|
+
// they are set by people, and the dSS answers them with the same "active"/"inactive"
|
|
875
|
+
// vocabulary the zone states use (measured: cluster.17.user_lock, value 2, state
|
|
876
|
+
// "inactive"). status.malfunction and status.service are computed BY the dSS - giving
|
|
877
|
+
// them a mapping would only invite it to reject writes nobody should be making.
|
|
878
|
+
exports.groupStateRoleMap = {
|
|
879
|
+
user_lock: {
|
|
880
|
+
valueTrue: 'active',
|
|
881
|
+
valueFalse: 'inactive',
|
|
882
|
+
},
|
|
883
|
+
operation_lock: {
|
|
884
|
+
valueTrue: 'active',
|
|
885
|
+
valueFalse: 'inactive',
|
|
886
|
+
},
|
|
887
|
+
};
|
|
888
|
+
exports.zoneStateRoleMap = {
|
|
889
|
+
light: {
|
|
890
|
+
name: 'light',
|
|
891
|
+
role: 'indicator',
|
|
892
|
+
type: 'boolean',
|
|
893
|
+
read: true,
|
|
894
|
+
write: false,
|
|
895
|
+
native: {
|
|
896
|
+
valueTrue: 'active',
|
|
897
|
+
valueFalse: 'inactive',
|
|
898
|
+
},
|
|
899
|
+
},
|
|
900
|
+
heating: {
|
|
901
|
+
name: 'heating',
|
|
902
|
+
role: 'indicator',
|
|
903
|
+
type: 'boolean',
|
|
904
|
+
read: true,
|
|
905
|
+
write: false,
|
|
906
|
+
native: {
|
|
907
|
+
valueTrue: 'active',
|
|
908
|
+
valueFalse: 'inactive',
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
motion: {
|
|
912
|
+
name: 'motion',
|
|
913
|
+
role: 'indicator',
|
|
914
|
+
type: 'boolean',
|
|
915
|
+
read: true,
|
|
916
|
+
write: false,
|
|
917
|
+
native: {
|
|
918
|
+
valueTrue: 'active',
|
|
919
|
+
valueFalse: 'inactive',
|
|
920
|
+
},
|
|
921
|
+
},
|
|
922
|
+
presence: {
|
|
923
|
+
name: 'presence',
|
|
924
|
+
role: 'indicator',
|
|
925
|
+
type: 'boolean',
|
|
926
|
+
read: true,
|
|
927
|
+
write: false,
|
|
928
|
+
native: {
|
|
929
|
+
valueTrue: 'active',
|
|
930
|
+
valueFalse: 'inactive',
|
|
931
|
+
},
|
|
932
|
+
},
|
|
933
|
+
};
|
|
934
|
+
// Sensor states other dSS apps keep per room, by the identifier at the end of
|
|
935
|
+
// zone.zone<id>.group0.type<T>.<identifier> (see readAddonSensorStates in
|
|
936
|
+
// dssStructure.js). A sensor state knows nothing but active, inactive and unknown, so
|
|
937
|
+
// an identifier missing here gets the same read-only boolean under its own name.
|
|
938
|
+
exports.zoneSensorStateRoleMap = {
|
|
939
|
+
// The climate control compares the room temperature (type 9) with the passive
|
|
940
|
+
// cooling threshold of the room: active above it, inactive below it, a reading
|
|
941
|
+
// exactly at the threshold keeps the state. Measured on a dSS20 1.19.13, Duschbad
|
|
942
|
+
// with threshold 22: active at 22.1, inactive at 21.875, 22.0 kept the state.
|
|
943
|
+
// Read-only, the dSS computes it.
|
|
944
|
+
passiveCooling: {
|
|
945
|
+
name: 'passive cooling',
|
|
946
|
+
role: 'indicator',
|
|
947
|
+
type: 'boolean',
|
|
948
|
+
read: true,
|
|
949
|
+
write: false,
|
|
950
|
+
native: {
|
|
951
|
+
valueTrue: 'active',
|
|
952
|
+
valueFalse: 'inactive',
|
|
953
|
+
},
|
|
954
|
+
},
|
|
955
|
+
};
|
|
956
|
+
exports.apartmentStateRoleMap = {
|
|
957
|
+
presence: {
|
|
958
|
+
name: 'presence',
|
|
959
|
+
role: 'indicator',
|
|
960
|
+
type: 'boolean',
|
|
961
|
+
read: true,
|
|
962
|
+
write: false,
|
|
963
|
+
native: {
|
|
964
|
+
valueTrue: 'present',
|
|
965
|
+
valueFalse: 'absent',
|
|
966
|
+
},
|
|
967
|
+
},
|
|
968
|
+
hibernation: {
|
|
969
|
+
name: 'hibernation',
|
|
970
|
+
role: 'indicator',
|
|
971
|
+
type: 'boolean',
|
|
972
|
+
read: true,
|
|
973
|
+
write: false,
|
|
974
|
+
native: {
|
|
975
|
+
valueTrue: 'sleeping',
|
|
976
|
+
valueFalse: 'awake',
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
// The dSS reports these four day/night states as "active"/"inactive", not as
|
|
980
|
+
// "true"/"false" - measured on a dSS20 1.19.13, which logged four unmapped
|
|
981
|
+
// values at startup. The value never changed, because toBoolean falls back to
|
|
982
|
+
// the same result, but the declaration was wrong and a write would have sent
|
|
983
|
+
// the wrong word. Both spellings the dSS uses for the names are listed below.
|
|
984
|
+
daynight_indoors: {
|
|
985
|
+
name: 'daynight_indoors',
|
|
986
|
+
role: 'indicator',
|
|
987
|
+
type: 'boolean',
|
|
988
|
+
read: true,
|
|
989
|
+
write: false,
|
|
990
|
+
native: {
|
|
991
|
+
valueTrue: 'active',
|
|
992
|
+
valueFalse: 'inactive',
|
|
993
|
+
},
|
|
994
|
+
},
|
|
995
|
+
daynight: {
|
|
996
|
+
name: 'daynight',
|
|
997
|
+
role: 'indicator',
|
|
998
|
+
type: 'boolean',
|
|
999
|
+
read: true,
|
|
1000
|
+
write: false,
|
|
1001
|
+
native: {
|
|
1002
|
+
valueTrue: 'active',
|
|
1003
|
+
valueFalse: 'inactive',
|
|
1004
|
+
},
|
|
1005
|
+
},
|
|
1006
|
+
twilight: {
|
|
1007
|
+
name: 'twilight',
|
|
1008
|
+
role: 'indicator',
|
|
1009
|
+
type: 'boolean',
|
|
1010
|
+
read: true,
|
|
1011
|
+
write: false,
|
|
1012
|
+
native: {
|
|
1013
|
+
valueTrue: 'active',
|
|
1014
|
+
valueFalse: 'inactive',
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
daylight: {
|
|
1018
|
+
name: 'daylight',
|
|
1019
|
+
role: 'indicator',
|
|
1020
|
+
type: 'boolean',
|
|
1021
|
+
read: true,
|
|
1022
|
+
write: false,
|
|
1023
|
+
native: {
|
|
1024
|
+
valueTrue: 'active',
|
|
1025
|
+
valueFalse: 'inactive',
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
1028
|
+
daynight_state: {
|
|
1029
|
+
name: 'daynight',
|
|
1030
|
+
role: 'indicator',
|
|
1031
|
+
type: 'boolean',
|
|
1032
|
+
native: {
|
|
1033
|
+
valueTrue: 'active',
|
|
1034
|
+
valueFalse: 'inactive',
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
twilight_state: {
|
|
1038
|
+
name: 'twilight',
|
|
1039
|
+
role: 'indicator',
|
|
1040
|
+
type: 'boolean',
|
|
1041
|
+
native: {
|
|
1042
|
+
valueTrue: 'active',
|
|
1043
|
+
valueFalse: 'inactive',
|
|
1044
|
+
},
|
|
1045
|
+
},
|
|
1046
|
+
daylight_state: {
|
|
1047
|
+
name: 'daylight',
|
|
1048
|
+
role: 'indicator',
|
|
1049
|
+
type: 'boolean',
|
|
1050
|
+
native: {
|
|
1051
|
+
valueTrue: 'active',
|
|
1052
|
+
valueFalse: 'inactive',
|
|
1053
|
+
},
|
|
1054
|
+
},
|
|
1055
|
+
daynight_indoors_state: {
|
|
1056
|
+
name: 'daynight_indoors',
|
|
1057
|
+
role: 'indicator',
|
|
1058
|
+
type: 'boolean',
|
|
1059
|
+
native: {
|
|
1060
|
+
valueTrue: 'active',
|
|
1061
|
+
valueFalse: 'inactive',
|
|
1062
|
+
},
|
|
1063
|
+
},
|
|
1064
|
+
holiday: {
|
|
1065
|
+
name: 'holiday',
|
|
1066
|
+
role: 'indicator',
|
|
1067
|
+
type: 'boolean',
|
|
1068
|
+
read: true,
|
|
1069
|
+
write: false,
|
|
1070
|
+
native: {
|
|
1071
|
+
valueTrue: 'on',
|
|
1072
|
+
valueFalse: 'off',
|
|
1073
|
+
},
|
|
1074
|
+
},
|
|
1075
|
+
alarm: {
|
|
1076
|
+
name: 'alarm',
|
|
1077
|
+
role: 'indicator',
|
|
1078
|
+
type: 'boolean',
|
|
1079
|
+
read: true,
|
|
1080
|
+
write: false,
|
|
1081
|
+
native: {
|
|
1082
|
+
valueTrue: 'active',
|
|
1083
|
+
valueFalse: 'inactive',
|
|
1084
|
+
},
|
|
1085
|
+
},
|
|
1086
|
+
alarm2: {
|
|
1087
|
+
name: 'alarm2',
|
|
1088
|
+
role: 'indicator',
|
|
1089
|
+
type: 'boolean',
|
|
1090
|
+
read: true,
|
|
1091
|
+
write: false,
|
|
1092
|
+
native: {
|
|
1093
|
+
valueTrue: 'active',
|
|
1094
|
+
valueFalse: 'inactive',
|
|
1095
|
+
},
|
|
1096
|
+
},
|
|
1097
|
+
alarm3: {
|
|
1098
|
+
name: 'alarm3',
|
|
1099
|
+
role: 'indicator',
|
|
1100
|
+
type: 'boolean',
|
|
1101
|
+
read: true,
|
|
1102
|
+
write: false,
|
|
1103
|
+
native: {
|
|
1104
|
+
valueTrue: 'active',
|
|
1105
|
+
valueFalse: 'inactive',
|
|
1106
|
+
},
|
|
1107
|
+
},
|
|
1108
|
+
alarm4: {
|
|
1109
|
+
name: 'alarm4',
|
|
1110
|
+
role: 'indicator',
|
|
1111
|
+
type: 'boolean',
|
|
1112
|
+
read: true,
|
|
1113
|
+
write: false,
|
|
1114
|
+
native: {
|
|
1115
|
+
valueTrue: 'active',
|
|
1116
|
+
valueFalse: 'inactive',
|
|
1117
|
+
},
|
|
1118
|
+
},
|
|
1119
|
+
panic: {
|
|
1120
|
+
name: 'panic',
|
|
1121
|
+
role: 'indicator',
|
|
1122
|
+
type: 'boolean',
|
|
1123
|
+
read: true,
|
|
1124
|
+
write: false,
|
|
1125
|
+
native: {
|
|
1126
|
+
valueTrue: 'active',
|
|
1127
|
+
valueFalse: 'inactive',
|
|
1128
|
+
},
|
|
1129
|
+
},
|
|
1130
|
+
fireMuteEnabled: {
|
|
1131
|
+
name: 'fireMuteEnabled',
|
|
1132
|
+
role: 'indicator',
|
|
1133
|
+
type: 'boolean',
|
|
1134
|
+
read: true,
|
|
1135
|
+
write: false,
|
|
1136
|
+
native: {
|
|
1137
|
+
valueTrue: 'active',
|
|
1138
|
+
valueFalse: 'inactive',
|
|
1139
|
+
},
|
|
1140
|
+
},
|
|
1141
|
+
fire: {
|
|
1142
|
+
name: 'fire',
|
|
1143
|
+
role: 'indicator',
|
|
1144
|
+
type: 'boolean',
|
|
1145
|
+
read: true,
|
|
1146
|
+
write: false,
|
|
1147
|
+
native: {
|
|
1148
|
+
valueTrue: 'active',
|
|
1149
|
+
valueFalse: 'inactive',
|
|
1150
|
+
},
|
|
1151
|
+
},
|
|
1152
|
+
wind: {
|
|
1153
|
+
name: 'wind',
|
|
1154
|
+
role: 'indicator',
|
|
1155
|
+
type: 'boolean',
|
|
1156
|
+
read: true,
|
|
1157
|
+
write: false,
|
|
1158
|
+
native: {
|
|
1159
|
+
valueTrue: 'active',
|
|
1160
|
+
valueFalse: 'inactive',
|
|
1161
|
+
},
|
|
1162
|
+
},
|
|
1163
|
+
rain: {
|
|
1164
|
+
name: 'rain',
|
|
1165
|
+
role: 'indicator',
|
|
1166
|
+
type: 'boolean',
|
|
1167
|
+
read: true,
|
|
1168
|
+
write: false,
|
|
1169
|
+
native: {
|
|
1170
|
+
valueTrue: 'active',
|
|
1171
|
+
valueFalse: 'inactive',
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
hail: {
|
|
1175
|
+
name: 'hail',
|
|
1176
|
+
role: 'indicator',
|
|
1177
|
+
type: 'boolean',
|
|
1178
|
+
read: true,
|
|
1179
|
+
write: false,
|
|
1180
|
+
native: {
|
|
1181
|
+
valueTrue: 'active',
|
|
1182
|
+
valueFalse: 'inactive',
|
|
1183
|
+
},
|
|
1184
|
+
},
|
|
1185
|
+
frost: {
|
|
1186
|
+
name: 'frost',
|
|
1187
|
+
role: 'indicator',
|
|
1188
|
+
type: 'boolean',
|
|
1189
|
+
read: true,
|
|
1190
|
+
write: false,
|
|
1191
|
+
native: {
|
|
1192
|
+
valueTrue: 'active',
|
|
1193
|
+
valueFalse: 'inactive',
|
|
1194
|
+
},
|
|
1195
|
+
},
|
|
1196
|
+
sunlight_east: {
|
|
1197
|
+
name: 'sunlight east',
|
|
1198
|
+
role: 'indicator',
|
|
1199
|
+
type: 'boolean',
|
|
1200
|
+
read: true,
|
|
1201
|
+
write: false,
|
|
1202
|
+
native: {
|
|
1203
|
+
valueTrue: 'active',
|
|
1204
|
+
valueFalse: 'inactive',
|
|
1205
|
+
},
|
|
1206
|
+
},
|
|
1207
|
+
sunlight_nord: {
|
|
1208
|
+
name: 'sunlight nord',
|
|
1209
|
+
role: 'indicator',
|
|
1210
|
+
type: 'boolean',
|
|
1211
|
+
read: true,
|
|
1212
|
+
write: false,
|
|
1213
|
+
native: {
|
|
1214
|
+
valueTrue: 'active',
|
|
1215
|
+
valueFalse: 'inactive',
|
|
1216
|
+
},
|
|
1217
|
+
},
|
|
1218
|
+
sunlight_south: {
|
|
1219
|
+
name: 'sunlight south',
|
|
1220
|
+
role: 'indicator',
|
|
1221
|
+
type: 'boolean',
|
|
1222
|
+
read: true,
|
|
1223
|
+
write: false,
|
|
1224
|
+
native: {
|
|
1225
|
+
valueTrue: 'active',
|
|
1226
|
+
valueFalse: 'inactive',
|
|
1227
|
+
},
|
|
1228
|
+
},
|
|
1229
|
+
sunlight_west: {
|
|
1230
|
+
name: 'sunlight west',
|
|
1231
|
+
role: 'indicator',
|
|
1232
|
+
type: 'boolean',
|
|
1233
|
+
read: true,
|
|
1234
|
+
write: false,
|
|
1235
|
+
native: {
|
|
1236
|
+
valueTrue: 'active',
|
|
1237
|
+
valueFalse: 'inactive',
|
|
1238
|
+
},
|
|
1239
|
+
},
|
|
1240
|
+
building_service: {
|
|
1241
|
+
name: 'building_service',
|
|
1242
|
+
role: 'indicator',
|
|
1243
|
+
type: 'boolean',
|
|
1244
|
+
read: true,
|
|
1245
|
+
write: false,
|
|
1246
|
+
native: {
|
|
1247
|
+
valueTrue: 'active',
|
|
1248
|
+
valueFalse: 'inactive',
|
|
1249
|
+
},
|
|
1250
|
+
},
|
|
1251
|
+
heating_system: {
|
|
1252
|
+
name: 'heating_system',
|
|
1253
|
+
role: 'indicator',
|
|
1254
|
+
type: 'boolean',
|
|
1255
|
+
read: true,
|
|
1256
|
+
write: false,
|
|
1257
|
+
native: {
|
|
1258
|
+
valueTrue: 'active',
|
|
1259
|
+
valueFalse: 'inactive',
|
|
1260
|
+
},
|
|
1261
|
+
},
|
|
1262
|
+
heating_system_mode: {
|
|
1263
|
+
name: 'heating_system_mode',
|
|
1264
|
+
role: 'indicator',
|
|
1265
|
+
type: 'boolean',
|
|
1266
|
+
read: true,
|
|
1267
|
+
write: false,
|
|
1268
|
+
native: {
|
|
1269
|
+
valueTrue: 'active',
|
|
1270
|
+
valueFalse: 'inactive',
|
|
1271
|
+
},
|
|
1272
|
+
},
|
|
1273
|
+
// Measured on a real installation: this state answers with "hot water", not with
|
|
1274
|
+
// active/inactive. As a boolean every word but "inactive" collapsed to true and the
|
|
1275
|
+
// operating mode was lost, so the state keeps the wording of the DSS. Without a
|
|
1276
|
+
// valueTrue/valueFalse pair it is read only for the queue as well (see createApartment).
|
|
1277
|
+
heating_water_system: {
|
|
1278
|
+
name: 'heating_water_system',
|
|
1279
|
+
role: 'text',
|
|
1280
|
+
type: 'string',
|
|
1281
|
+
read: true,
|
|
1282
|
+
write: false,
|
|
1283
|
+
},
|
|
1284
|
+
};
|
|
1285
|
+
//# sourceMappingURL=constants.js.map
|