grenton-ts 1.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.
Files changed (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +86 -0
  3. package/dist/analog-din/fv02_01/analog-in.ts +271 -0
  4. package/dist/clu/calendar/v1/calendar.ts +308 -0
  5. package/dist/clu/clu-zwave-2/fv515_03/clu-zwave-2.ts +1302 -0
  6. package/dist/clu/event-scheduler/v1/event-scheduler.ts +537 -0
  7. package/dist/clu/multi-fan-ac-thermostat/v1/multi-fan-ac-thermostat.ts +1163 -0
  8. package/dist/clu/pid-controller/v1/pid-controller.ts +536 -0
  9. package/dist/clu/presence-sensor/v1/presence-sensor.ts +313 -0
  10. package/dist/clu/presence-sensor/v2/presence-sensor.ts +470 -0
  11. package/dist/clu/push/v1/push.ts +261 -0
  12. package/dist/clu/scheduler/v1/scheduler.ts +304 -0
  13. package/dist/clu/statistics/v1/statistics.ts +413 -0
  14. package/dist/clu/statistics-pulse/v1/statistics-pulse.ts +218 -0
  15. package/dist/clu/sunrise-sunset-calendar/v1/sunrise-sunset-calendar.ts +389 -0
  16. package/dist/clu/sunrise-sunset-calendar/v2/sunrise-sunset-calendar.ts +659 -0
  17. package/dist/clu/sunrise-sunset-calendar/v3/sunrise-sunset-calendar.ts +659 -0
  18. package/dist/clu/thermostat/v1/thermostat.ts +768 -0
  19. package/dist/clu/thermostat/v2/thermostat.ts +861 -0
  20. package/dist/clu/timer/v1/timer.ts +369 -0
  21. package/dist/core/execution-builder.ts +55 -0
  22. package/dist/core/remote-gate.ts +17 -0
  23. package/dist/digital-in-din/fv02_01/din.ts +310 -0
  24. package/dist/examples/light_turned_on_by_calendar/Clu_OnInit.ts +26 -0
  25. package/dist/examples/light_turned_on_by_presence_sensor/Clu_OnInit.ts +35 -0
  26. package/dist/examples/light_turned_on_by_switch/Clu_OnInit.ts +16 -0
  27. package/dist/gate/cool-master/v1/cool-master.ts +782 -0
  28. package/dist/gate/cool-master-net/v1/cool-master-net.ts +334 -0
  29. package/dist/gate/denon-marantz-avr/v1/denon-marantz-avr.ts +724 -0
  30. package/dist/gate/heos/v1/heos.ts +1224 -0
  31. package/dist/gate/http/fv1000_03/clu-gate-http.ts +405 -0
  32. package/dist/gate/http/fv1000_03_hv1/clu-gate-http.ts +352 -0
  33. package/dist/gate/http/fv1100_03/clu-gate-http.ts +589 -0
  34. package/dist/gate/http/fv1110_03/clu-gate-http.ts +589 -0
  35. package/dist/gate/http/fv1300_03/clu-gate-http.ts +589 -0
  36. package/dist/gate/http/fv1400_03/clu-gate-http.ts +677 -0
  37. package/dist/gate/http-listener/v1/http-listener.ts +299 -0
  38. package/dist/gate/http-listener/v2/http-listener.ts +325 -0
  39. package/dist/gate/http-request/v1/http-request.ts +645 -0
  40. package/dist/gate/http-request/v2/http-request.ts +709 -0
  41. package/dist/gate/input/v1/input.ts +171 -0
  42. package/dist/gate/jablotron/v1/jablotron.ts +100 -0
  43. package/dist/gate/jablotron-device/v1/jablotron-device.ts +171 -0
  44. package/dist/gate/jablotron-output/v1/jablotron-output.ts +240 -0
  45. package/dist/gate/jablotron-section/v1/jablotron-section.ts +260 -0
  46. package/dist/gate/modbus/v1/modbus.ts +609 -0
  47. package/dist/gate/modbus/v2/modbus.ts +690 -0
  48. package/dist/gate/modbus-client/v1/modbus-client.ts +827 -0
  49. package/dist/gate/modbus-rtu/v1/modbus-rtu.ts +911 -0
  50. package/dist/gate/modbus-server/v1/modbus-server.ts +405 -0
  51. package/dist/gate/modbus-slave-config-rtu/v1/modbus-slave-config-rtu.ts +160 -0
  52. package/dist/gate/modbus-slave-rtu/v1/modbus-slave-rtu.ts +371 -0
  53. package/dist/gate/modbus-value/v1/modbus-value.ts +856 -0
  54. package/dist/gate/music-cast/v1/music-cast.ts +1298 -0
  55. package/dist/gate/output/v1/output.ts +240 -0
  56. package/dist/gate/satel/v1/satel.ts +359 -0
  57. package/dist/gate/satel-input/v1/satel-input.ts +171 -0
  58. package/dist/gate/satel-output/v1/satel-output.ts +240 -0
  59. package/dist/gate/satel-zone/v1/satel-zone.ts +235 -0
  60. package/dist/gate/sonos/v1/sonos.ts +934 -0
  61. package/dist/gate/timer/v2/timer.ts +253 -0
  62. package/dist/gate/zone/v1/zone.ts +235 -0
  63. package/dist/io-module-din-8/fv02_02/din.ts +354 -0
  64. package/dist/io-module-din-8/fv02_02/dout.ts +360 -0
  65. package/dist/one-wire/fv01_10/onew-sensor.ts +269 -0
  66. package/dist/one-wire/fv01_28/onew-sensor.ts +269 -0
  67. package/dist/one-wire/fv02_28/onew-sensor.ts +350 -0
  68. package/dist/one-wire/fv03_28/onew-sensor.ts +435 -0
  69. package/dist/relay-din-2/fv02_02/dout.ts +544 -0
  70. package/dist/relay-din-4/fv01_02/dout.ts +340 -0
  71. package/dist/relay-din-4/fv02_02/dout.ts +368 -0
  72. package/dist/roller-shutter-din-3/fv03_02/roller-shutter.ts +1078 -0
  73. package/dist/smart-panel-fm-4/fv03_03/panel-button.ts +550 -0
  74. package/dist/smart-panel-fm-4/fv03_03/panel-sens-light.ts +238 -0
  75. package/dist/smart-panel-fm-4/fv03_03/panel-sens-temp.ts +239 -0
  76. package/dist/smart-panel-fm-4/fv03_03/panel.ts +700 -0
  77. package/dist/smart-panel-fm-4/fv04_03/panel-button.ts +567 -0
  78. package/dist/smart-panel-fm-4/fv04_03/panel-page.ts +516 -0
  79. package/dist/smart-panel-fm-4/fv04_03/panel-sens-light.ts +238 -0
  80. package/dist/smart-panel-fm-4/fv04_03/panel-sens-temp.ts +239 -0
  81. package/dist/smart-panel-fm-4/fv04_03/panel.ts +1026 -0
  82. package/dist/smart-panel-fm-4/fv05_03/panel-button.ts +567 -0
  83. package/dist/smart-panel-fm-4/fv05_03/panel-page.ts +620 -0
  84. package/dist/smart-panel-fm-4/fv05_03/panel-sens-light.ts +238 -0
  85. package/dist/smart-panel-fm-4/fv05_03/panel-sens-temp.ts +266 -0
  86. package/dist/smart-panel-fm-4/fv05_03/panel.ts +1109 -0
  87. package/dist/smart-panel-fm-4/fv06_03/panel-button.ts +567 -0
  88. package/dist/smart-panel-fm-4/fv06_03/panel-page.ts +877 -0
  89. package/dist/smart-panel-fm-4/fv06_03/panel-sens-light.ts +238 -0
  90. package/dist/smart-panel-fm-4/fv06_03/panel-sens-temp.ts +297 -0
  91. package/dist/smart-panel-fm-4/fv06_03/panel.ts +1138 -0
  92. package/dist/smart-panel-fm-4/fv07_03/panel-button.ts +567 -0
  93. package/dist/smart-panel-fm-4/fv07_03/panel-page.ts +864 -0
  94. package/dist/smart-panel-fm-4/fv07_03/panel-sens-light.ts +238 -0
  95. package/dist/smart-panel-fm-4/fv07_03/panel-sens-temp.ts +297 -0
  96. package/dist/smart-panel-fm-4/fv07_03/panel.ts +1135 -0
  97. package/dist/touch-panel-fm-4/fv01_02/panel-button.ts +418 -0
  98. package/dist/touch-panel-fm-4/fv01_02/panel-sens-light.ts +238 -0
  99. package/dist/touch-panel-fm-4/fv01_02/panel-sens-temp.ts +257 -0
  100. package/dist/touch-panel-fm-4/fv01_02/panel.ts +75 -0
  101. package/dist/touch-panel-fm-4/fv01_02/power-supply-voltage.ts +322 -0
  102. package/dist/touch-panel-fm-8/fv01_02/panel-button.ts +418 -0
  103. package/dist/touch-panel-fm-8/fv01_02/panel-sens-light.ts +238 -0
  104. package/dist/touch-panel-fm-8/fv01_02/panel-sens-temp.ts +270 -0
  105. package/dist/touch-panel-fm-8/fv01_02/panel.ts +75 -0
  106. package/dist/touch-panel-fm-8/fv01_02/power-supply-voltage.ts +322 -0
  107. package/package.json +16 -0
@@ -0,0 +1,877 @@
1
+ // Created from: packages/grenton-api/interfaces/module_SMART_PANEL_FM_4_fv06_03.xml, object name="PANEL_PAGE" version="06.03"
2
+
3
+ import { rawExecutionBuilderFactory } from "../../core/execution-builder"
4
+ import { RemoteGate } from "../../core/remote-gate"
5
+
6
+ enum EventType {
7
+ OnPageOpen = 0,
8
+ OnPageClose = 1,
9
+ OnDraw = 2,
10
+ OnTherm1ModeButtonClick = 4,
11
+ OnTherm2ModeButtonClick = 5,
12
+ OnTherm3ModeButtonClick = 6,
13
+ OnTherm4ModeButtonClick = 7,
14
+ }
15
+
16
+ enum PropertyType {
17
+ PageType = 0,
18
+ PageName = 1,
19
+ Object_1_Id = 3,
20
+ Object_1_Name = 4,
21
+ Object_2_Id = 5,
22
+ Object_2_Name = 6,
23
+ Object_3_Id = 7,
24
+ Object_3_Name = 8,
25
+ Object_4_Id = 9,
26
+ Object_4_Name = 10,
27
+ DistributedLogicGroup_1 = 11,
28
+ DistributedLogicGroup_2 = 12,
29
+ DistributedLogicGroup_3 = 13,
30
+ DistributedLogicGroup_4 = 14,
31
+ Object_1_CustomIcon = 15,
32
+ Object_2_CustomIcon = 16,
33
+ Object_3_CustomIcon = 17,
34
+ Object_4_CustomIcon = 18,
35
+ }
36
+
37
+ enum PageType {
38
+ Inactive = 0,
39
+ Buttons = 1,
40
+ Thermostats = 2,
41
+ FreeDraw = 3,
42
+ }
43
+
44
+ enum CustomIconType {
45
+ Zero = "0",
46
+ One = "1",
47
+ Two = "2",
48
+ Three = "3",
49
+ Four = "4",
50
+ Five = "5",
51
+ Six = "6",
52
+ Seven = "7",
53
+ Eight = "8",
54
+ Nine = "9"
55
+ }
56
+
57
+ declare class PanelPageRaw {
58
+ add_event(event: EventType, callback: () => void): void;
59
+ get(property: PropertyType): any;
60
+ set(property: PropertyType, value: any): void;
61
+ }
62
+
63
+ interface IPanelPage {
64
+ /**
65
+ * Zdarzenie wywoływane po otwarciu strony
66
+ * @param callback
67
+ */
68
+ addOnPageOpen: (callback: () => void) => void
69
+ /**
70
+ * Zdarzenie wywoływane po zamknięciu strony
71
+ * @param callback
72
+ */
73
+ addOnPageClose: (callback: () => void) => void
74
+ /**
75
+ * Zdarzenie sygnalizujące potrzebę przerysowania strony
76
+ * @param callback
77
+ */
78
+ addOnDraw: (callback: () => void) => void
79
+ /**
80
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 1
81
+ * @param callback
82
+ */
83
+ addOnTherm1ModeButtonClick: (callback: () => void) => void
84
+ /**
85
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 2
86
+ * @param callback
87
+ */
88
+ addOnTherm2ModeButtonClick: (callback: () => void) => void
89
+ /**
90
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 3
91
+ * @param callback
92
+ */
93
+ addOnTherm3ModeButtonClick: (callback: () => void) => void
94
+ /**
95
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 4
96
+ * @param callback
97
+ */
98
+ addOnTherm4ModeButtonClick: (callback: () => void) => void
99
+ /** Typ strony wyświetlanej na Smart Panelu: 0 - Inactive, 1 - Buttons, 2 - Thermostats, 3 - FreeDraw */
100
+ readonly pageType: PageType
101
+ /**
102
+ * Ustawia typ strony wyświetlanej na Smart Panelu
103
+ * @param {PageType} value
104
+ */
105
+ setPageType: (value: PageType) => void
106
+ /** Nazwa Strony/Nazwa ikony wyświetlana na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName w obiekcie PANEL */
107
+ readonly pageName: string
108
+ /**
109
+ * Ustawia nazwę strony/nazwę ikony wyświetlanej na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName
110
+ * @param {string} value
111
+ */
112
+ setPageName: (value: string) => void
113
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
114
+ readonly object1Id: string
115
+ /**
116
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
117
+ * @param {string} value
118
+ */
119
+ setObject1Id: (value: string) => void
120
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_1_Name pozostaje pusta */
121
+ readonly object1Name: string
122
+ /**
123
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
124
+ * @param {string} value
125
+ */
126
+ setObject1Name: (value: string) => void
127
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
128
+ readonly object1CustomIcon: CustomIconType
129
+ /**
130
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
131
+ * @param {CustomIconType} value
132
+ */
133
+ setObject1CustomIcon: (value: CustomIconType) => void
134
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
135
+ distributedLogicGroup1: number
136
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
137
+ readonly object2Id: string
138
+ /**
139
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
140
+ * @param {string} value
141
+ */
142
+ setObject2Id: (value: string) => void
143
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_2_Name pozostaje pusta */
144
+ readonly object2Name: string
145
+ /**
146
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
147
+ * @param {string} value
148
+ */
149
+ setObject2Name: (value: string) => void
150
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
151
+ readonly object2CustomIcon: CustomIconType
152
+ /**
153
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
154
+ * @param {CustomIconType} value
155
+ */
156
+ setObject2CustomIcon: (value: CustomIconType) => void
157
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
158
+ distributedLogicGroup2: number
159
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
160
+ readonly object3Id: string
161
+ /**
162
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
163
+ * @param {string} value
164
+ */
165
+ setObject3Id: (value: string) => void
166
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_3_Name pozostaje pusta */
167
+ readonly object3Name: string
168
+ /**
169
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
170
+ * @param {string} value
171
+ */
172
+ setObject3Name: (value: string) => void
173
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
174
+ readonly object3CustomIcon: CustomIconType
175
+ /**
176
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
177
+ * @param {CustomIconType} value
178
+ */
179
+ setObject3CustomIcon: (value: CustomIconType) => void
180
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
181
+ distributedLogicGroup3: number
182
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
183
+ readonly object4Id: string
184
+ /**
185
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
186
+ * @param {string} value
187
+ */
188
+ setObject4Id: (value: string) => void
189
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_4_Name pozostaje pusta */
190
+ readonly object4Name: string
191
+ /**
192
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
193
+ * @param {string} value
194
+ */
195
+ setObject4Name: (value: string) => void
196
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
197
+ readonly object4CustomIcon: CustomIconType
198
+ /**
199
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
200
+ * @param {CustomIconType} value
201
+ */
202
+ setObject4CustomIcon: (value: CustomIconType) => void
203
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
204
+ distributedLogicGroup4: number
205
+ }
206
+
207
+ class PanelPageRemote implements IPanelPage {
208
+ constructor(private objectName: string, private gate: RemoteGate) {
209
+ }
210
+
211
+ addOnPageOpen(_callback: () => void): void {
212
+ // Remote events are not supported
213
+ }
214
+ addOnPageClose(_callback: () => void): void {
215
+ // Remote events are not supported
216
+ }
217
+ addOnDraw(_callback: () => void): void {
218
+ // Remote events are not supported
219
+ }
220
+ addOnTherm1ModeButtonClick(_callback: () => void): void {
221
+ // Remote events are not supported
222
+ }
223
+ addOnTherm2ModeButtonClick(_callback: () => void): void {
224
+ // Remote events are not supported
225
+ }
226
+ addOnTherm3ModeButtonClick(_callback: () => void): void {
227
+ // Remote events are not supported
228
+ }
229
+ addOnTherm4ModeButtonClick(_callback: () => void): void {
230
+ // Remote events are not supported
231
+ }
232
+
233
+ /** Typ strony wyświetlanej na Smart Panelu: 0 - Inactive, 1 - Buttons, 2 - Thermostats, 3 - FreeDraw */
234
+ get pageType(): PageType {
235
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
236
+ .get()
237
+ .addParameter(PropertyType.PageType)
238
+ .build();
239
+ return this.gate.runScript(cmd!);
240
+ }
241
+
242
+ /**
243
+ * Ustawia typ strony wyświetlanej na Smart Panelu
244
+ * @param {PageType} value
245
+ */
246
+ setPageType(value: PageType): void {
247
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
248
+ .set()
249
+ .addParameter(PropertyType.PageType)
250
+ .addParameter(value)
251
+ .build();
252
+ this.gate.runScript(cmd!);
253
+ }
254
+
255
+ /** Nazwa Strony/Nazwa ikony wyświetlana na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName w obiekcie PANEL */
256
+ get pageName(): string {
257
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
258
+ .get()
259
+ .addParameter(PropertyType.PageName)
260
+ .build();
261
+ return this.gate.runScript(cmd!);
262
+ }
263
+
264
+ /**
265
+ * Ustawia nazwę strony/nazwę ikony wyświetlanej na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName
266
+ * @param {string} value
267
+ */
268
+ setPageName(value: string): void {
269
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
270
+ .set()
271
+ .addParameter(PropertyType.PageName)
272
+ .addParameter(value)
273
+ .build();
274
+ this.gate.runScript(cmd!);
275
+ }
276
+
277
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
278
+ get object1Id(): string {
279
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
280
+ .get()
281
+ .addParameter(PropertyType.Object_1_Id)
282
+ .build();
283
+ return this.gate.runScript(cmd!);
284
+ }
285
+
286
+ /**
287
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
288
+ * @param {string} value
289
+ */
290
+ setObject1Id(value: string): void {
291
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
292
+ .set()
293
+ .addParameter(PropertyType.Object_1_Id)
294
+ .addParameter(value)
295
+ .build();
296
+ this.gate.runScript(cmd!);
297
+ }
298
+
299
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_1_Name pozostaje pusta */
300
+ get object1Name(): string {
301
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
302
+ .get()
303
+ .addParameter(PropertyType.Object_1_Name)
304
+ .build();
305
+ return this.gate.runScript(cmd!);
306
+ }
307
+
308
+ /**
309
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
310
+ * @param {string} value
311
+ */
312
+ setObject1Name(value: string): void {
313
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
314
+ .set()
315
+ .addParameter(PropertyType.Object_1_Name)
316
+ .addParameter(value)
317
+ .build();
318
+ this.gate.runScript(cmd!);
319
+ }
320
+
321
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
322
+ get object1CustomIcon(): CustomIconType {
323
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
324
+ .get()
325
+ .addParameter(PropertyType.Object_1_CustomIcon)
326
+ .build();
327
+ return this.gate.runScript(cmd!);
328
+ }
329
+
330
+ /**
331
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
332
+ * @param {string} value
333
+ */
334
+ setObject1CustomIcon(value: CustomIconType): void {
335
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
336
+ .set()
337
+ .addParameter(PropertyType.Object_1_CustomIcon)
338
+ .addParameter(value)
339
+ .build();
340
+ this.gate.runScript(cmd!);
341
+ }
342
+
343
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
344
+ get distributedLogicGroup1(): number {
345
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
346
+ .get()
347
+ .addParameter(PropertyType.DistributedLogicGroup_1)
348
+ .build();
349
+ return this.gate.runScript(cmd!);
350
+ }
351
+ set distributedLogicGroup1(value: number) {
352
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
353
+ .set()
354
+ .addParameter(PropertyType.DistributedLogicGroup_1)
355
+ .addParameter(value)
356
+ .build();
357
+ this.gate.runScript(cmd!);
358
+ }
359
+
360
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
361
+ get object2Id(): string {
362
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
363
+ .get()
364
+ .addParameter(PropertyType.Object_2_Id)
365
+ .build();
366
+ return this.gate.runScript(cmd!);
367
+ }
368
+
369
+ /**
370
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
371
+ * @param {string} value
372
+ */
373
+ setObject2Id(value: string): void {
374
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
375
+ .set()
376
+ .addParameter(PropertyType.Object_2_Id)
377
+ .addParameter(value)
378
+ .build();
379
+ this.gate.runScript(cmd!);
380
+ }
381
+
382
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_2_Name pozostaje pusta */
383
+ get object2Name(): string {
384
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
385
+ .get()
386
+ .addParameter(PropertyType.Object_2_Name)
387
+ .build();
388
+ return this.gate.runScript(cmd!);
389
+ }
390
+
391
+ /**
392
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
393
+ * @param {string} value
394
+ */
395
+ setObject2Name(value: string): void {
396
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
397
+ .set()
398
+ .addParameter(PropertyType.Object_2_Name)
399
+ .addParameter(value)
400
+ .build();
401
+ this.gate.runScript(cmd!);
402
+ }
403
+
404
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
405
+ get object2CustomIcon(): CustomIconType {
406
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
407
+ .get()
408
+ .addParameter(PropertyType.Object_2_CustomIcon)
409
+ .build();
410
+ return this.gate.runScript(cmd!);
411
+ }
412
+
413
+ /**
414
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
415
+ * @param {string} value
416
+ */
417
+ setObject2CustomIcon(value: CustomIconType): void {
418
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
419
+ .set()
420
+ .addParameter(PropertyType.Object_2_CustomIcon)
421
+ .addParameter(value)
422
+ .build();
423
+ this.gate.runScript(cmd!);
424
+ }
425
+
426
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
427
+ get distributedLogicGroup2(): number {
428
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
429
+ .get()
430
+ .addParameter(PropertyType.DistributedLogicGroup_2)
431
+ .build();
432
+ return this.gate.runScript(cmd!);
433
+ }
434
+ set distributedLogicGroup2(value: number) {
435
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
436
+ .set()
437
+ .addParameter(PropertyType.DistributedLogicGroup_2)
438
+ .addParameter(value)
439
+ .build();
440
+ this.gate.runScript(cmd!);
441
+ }
442
+
443
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
444
+ get object3Id(): string {
445
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
446
+ .get()
447
+ .addParameter(PropertyType.Object_3_Id)
448
+ .build();
449
+ return this.gate.runScript(cmd!);
450
+ }
451
+
452
+ /**
453
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
454
+ * @param {string} value
455
+ */
456
+ setObject3Id(value: string): void {
457
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
458
+ .set()
459
+ .addParameter(PropertyType.Object_3_Id)
460
+ .addParameter(value)
461
+ .build();
462
+ this.gate.runScript(cmd!);
463
+ }
464
+
465
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_3_Name pozostaje pusta */
466
+ get object3Name(): string {
467
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
468
+ .get()
469
+ .addParameter(PropertyType.Object_3_Name)
470
+ .build();
471
+ return this.gate.runScript(cmd!);
472
+ }
473
+
474
+ /**
475
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
476
+ * @param {string} value
477
+ */
478
+ setObject3Name(value: string): void {
479
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
480
+ .set()
481
+ .addParameter(PropertyType.Object_3_Name)
482
+ .addParameter(value)
483
+ .build();
484
+ this.gate.runScript(cmd!);
485
+ }
486
+
487
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
488
+ get object3CustomIcon(): CustomIconType {
489
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
490
+ .get()
491
+ .addParameter(PropertyType.Object_3_CustomIcon)
492
+ .build();
493
+ return this.gate.runScript(cmd!);
494
+ }
495
+
496
+ /**
497
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
498
+ * @param {string} value
499
+ */
500
+ setObject3CustomIcon(value: CustomIconType): void {
501
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
502
+ .set()
503
+ .addParameter(PropertyType.Object_3_CustomIcon)
504
+ .addParameter(value)
505
+ .build();
506
+ this.gate.runScript(cmd!);
507
+ }
508
+
509
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
510
+ get distributedLogicGroup3(): number {
511
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
512
+ .get()
513
+ .addParameter(PropertyType.DistributedLogicGroup_3)
514
+ .build();
515
+ return this.gate.runScript(cmd!);
516
+ }
517
+ set distributedLogicGroup3(value: number) {
518
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
519
+ .set()
520
+ .addParameter(PropertyType.DistributedLogicGroup_3)
521
+ .addParameter(value)
522
+ .build();
523
+ this.gate.runScript(cmd!);
524
+ }
525
+
526
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
527
+ get object4Id(): string {
528
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
529
+ .get()
530
+ .addParameter(PropertyType.Object_4_Id)
531
+ .build();
532
+ return this.gate.runScript(cmd!);
533
+ }
534
+
535
+ /**
536
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
537
+ * @param {string} value
538
+ */
539
+ setObject4Id(value: string): void {
540
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
541
+ .set()
542
+ .addParameter(PropertyType.Object_4_Id)
543
+ .addParameter(value)
544
+ .build();
545
+ this.gate.runScript(cmd!);
546
+ }
547
+
548
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_4_Name pozostaje pusta */
549
+ get object4Name(): string {
550
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
551
+ .get()
552
+ .addParameter(PropertyType.Object_4_Name)
553
+ .build();
554
+ return this.gate.runScript(cmd!);
555
+ }
556
+
557
+ /**
558
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
559
+ * @param {string} value
560
+ */
561
+ setObject4Name(value: string): void {
562
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
563
+ .set()
564
+ .addParameter(PropertyType.Object_4_Name)
565
+ .addParameter(value)
566
+ .build();
567
+ this.gate.runScript(cmd!);
568
+ }
569
+
570
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
571
+ get object4CustomIcon(): CustomIconType {
572
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
573
+ .get()
574
+ .addParameter(PropertyType.Object_4_CustomIcon)
575
+ .build();
576
+ return this.gate.runScript(cmd!);
577
+ }
578
+
579
+ /**
580
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
581
+ * @param {CustomIconType} value
582
+ */
583
+ setObject4CustomIcon(value: CustomIconType): void {
584
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
585
+ .set()
586
+ .addParameter(PropertyType.Object_4_CustomIcon)
587
+ .addParameter(value)
588
+ .build();
589
+ this.gate.runScript(cmd!);
590
+ }
591
+
592
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
593
+ get distributedLogicGroup4(): number {
594
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
595
+ .get()
596
+ .addParameter(PropertyType.DistributedLogicGroup_4)
597
+ .build();
598
+ return this.gate.runScript(cmd!);
599
+ }
600
+ set distributedLogicGroup4(value: number) {
601
+ const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
602
+ .set()
603
+ .addParameter(PropertyType.DistributedLogicGroup_4)
604
+ .addParameter(value)
605
+ .build();
606
+ this.gate.runScript(cmd!);
607
+ }
608
+ }
609
+
610
+ class PanelPage implements IPanelPage {
611
+ private onPageOpenCallbacks: Array<() => void> = [];
612
+ private onPageCloseCallbacks: Array<() => void> = [];
613
+ private onDrawCallbacks: Array<() => void> = [];
614
+ private onTherm1ModeButtonClickCallbacks: Array<() => void> = [];
615
+ private onTherm2ModeButtonClickCallbacks: Array<() => void> = [];
616
+ private onTherm3ModeButtonClickCallbacks: Array<() => void> = [];
617
+ private onTherm4ModeButtonClickCallbacks: Array<() => void> = [];
618
+
619
+ constructor(private raw: PanelPageRaw) {
620
+ this.raw.add_event(EventType.OnPageOpen, () => {
621
+ this.onPageOpenCallbacks.forEach(callback => { callback(); });
622
+ });
623
+ this.raw.add_event(EventType.OnPageClose, () => {
624
+ this.onPageCloseCallbacks.forEach(callback => { callback(); });
625
+ });
626
+ this.raw.add_event(EventType.OnDraw, () => {
627
+ this.onDrawCallbacks.forEach(callback => { callback(); });
628
+ });
629
+ this.raw.add_event(EventType.OnTherm1ModeButtonClick, () => {
630
+ this.onTherm1ModeButtonClickCallbacks.forEach(callback => { callback(); });
631
+ });
632
+ this.raw.add_event(EventType.OnTherm2ModeButtonClick, () => {
633
+ this.onTherm2ModeButtonClickCallbacks.forEach(callback => { callback(); });
634
+ });
635
+ this.raw.add_event(EventType.OnTherm3ModeButtonClick, () => {
636
+ this.onTherm3ModeButtonClickCallbacks.forEach(callback => { callback(); });
637
+ });
638
+ this.raw.add_event(EventType.OnTherm4ModeButtonClick, () => {
639
+ this.onTherm4ModeButtonClickCallbacks.forEach(callback => { callback(); });
640
+ });
641
+ }
642
+
643
+ /**
644
+ * Zdarzenie wywoływane po otwarciu strony
645
+ * @param callback
646
+ */
647
+ addOnPageOpen(callback: () => void): void {
648
+ this.onPageOpenCallbacks.push(callback);
649
+ }
650
+ /**
651
+ * Zdarzenie wywoływane po zamknięciu strony
652
+ * @param callback
653
+ */
654
+ addOnPageClose(callback: () => void): void {
655
+ this.onPageCloseCallbacks.push(callback);
656
+ }
657
+ /**
658
+ * Zdarzenie sygnalizujące potrzebę przerysowania strony
659
+ * @param callback
660
+ */
661
+ addOnDraw(callback: () => void): void {
662
+ this.onDrawCallbacks.push(callback);
663
+ }
664
+ /**
665
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 1
666
+ * @param callback
667
+ */
668
+ addOnTherm1ModeButtonClick(callback: () => void): void {
669
+ this.onTherm1ModeButtonClickCallbacks.push(callback);
670
+ }
671
+ /**
672
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 2
673
+ * @param callback
674
+ */
675
+ addOnTherm2ModeButtonClick(callback: () => void): void {
676
+ this.onTherm2ModeButtonClickCallbacks.push(callback);
677
+ }
678
+ /**
679
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 3
680
+ * @param callback
681
+ */
682
+ addOnTherm3ModeButtonClick(callback: () => void): void {
683
+ this.onTherm3ModeButtonClickCallbacks.push(callback);
684
+ }
685
+ /**
686
+ * Zdarzenie wywoływane po kliknięciu lewego-górnego przycisku 'mode' w termostacie nr 4
687
+ * @param callback
688
+ */
689
+ addOnTherm4ModeButtonClick(callback: () => void): void {
690
+ this.onTherm4ModeButtonClickCallbacks.push(callback);
691
+ }
692
+
693
+ /** Typ strony wyświetlanej na Smart Panelu: 0 - Inactive, 1 - Buttons, 2 - Thermostats, 3 - FreeDraw */
694
+ get pageType(): PageType {
695
+ return this.raw.get(PropertyType.PageType);
696
+ }
697
+ /**
698
+ * Ustawia typ strony wyświetlanej na Smart Panelu
699
+ * @param {PageType} value
700
+ */
701
+ setPageType(value: PageType): void {
702
+ this.raw.set(PropertyType.PageType, value);
703
+ }
704
+ /** Nazwa Strony/Nazwa ikony wyświetlana na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName w obiekcie PANEL */
705
+ get pageName(): string {
706
+ return this.raw.get(PropertyType.PageName);
707
+ }
708
+ /**
709
+ * Ustawia nazwę strony/nazwę ikony wyświetlanej na Smart Panelu. Aktywne w przypadku ustawienia cechy PageDisplayMode na wartość ShowIconOrName
710
+ * @param {string} value
711
+ */
712
+ setPageName(value: string): void {
713
+ this.raw.set(PropertyType.PageName, value);
714
+ }
715
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
716
+ get object1Id(): string {
717
+ return this.raw.get(PropertyType.Object_1_Id);
718
+ }
719
+ /**
720
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
721
+ * @param {string} value
722
+ */
723
+ setObject1Id(value: string): void {
724
+ this.raw.set(PropertyType.Object_1_Id, value);
725
+ }
726
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_1_Name pozostaje pusta */
727
+ get object1Name(): string {
728
+ return this.raw.get(PropertyType.Object_1_Name);
729
+ }
730
+ /**
731
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
732
+ * @param {string} value
733
+ */
734
+ setObject1Name(value: string): void {
735
+ this.raw.set(PropertyType.Object_1_Name, value);
736
+ }
737
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
738
+ get object1CustomIcon(): CustomIconType {
739
+ return this.raw.get(PropertyType.Object_1_CustomIcon);
740
+ }
741
+ /**
742
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
743
+ * @param {CustomIconType} value
744
+ */
745
+ setObject1CustomIcon(value: CustomIconType): void {
746
+ this.raw.set(PropertyType.Object_1_CustomIcon, value);
747
+ }
748
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
749
+ get distributedLogicGroup1(): number {
750
+ return this.raw.get(PropertyType.DistributedLogicGroup_1);
751
+ }
752
+ set distributedLogicGroup1(value: number) {
753
+ this.raw.set(PropertyType.DistributedLogicGroup_1, value);
754
+ }
755
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
756
+ get object2Id(): string {
757
+ return this.raw.get(PropertyType.Object_2_Id);
758
+ }
759
+ /**
760
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
761
+ * @param {string} value
762
+ */
763
+ setObject2Id(value: string): void {
764
+ this.raw.set(PropertyType.Object_2_Id, value);
765
+ }
766
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_2_Name pozostaje pusta */
767
+ get object2Name(): string {
768
+ return this.raw.get(PropertyType.Object_2_Name);
769
+ }
770
+ /**
771
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
772
+ * @param {string} value
773
+ */
774
+ setObject2Name(value: string): void {
775
+ this.raw.set(PropertyType.Object_2_Name, value);
776
+ }
777
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
778
+ get object2CustomIcon(): CustomIconType {
779
+ return this.raw.get(PropertyType.Object_2_CustomIcon);
780
+ }
781
+ /**
782
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
783
+ * @param {CustomIconType} value
784
+ */
785
+ setObject2CustomIcon(value: CustomIconType): void {
786
+ this.raw.set(PropertyType.Object_2_CustomIcon, value);
787
+ }
788
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
789
+ get distributedLogicGroup2(): number {
790
+ return this.raw.get(PropertyType.DistributedLogicGroup_2);
791
+ }
792
+ set distributedLogicGroup2(value: number) {
793
+ this.raw.set(PropertyType.DistributedLogicGroup_2, value);
794
+ }
795
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
796
+ get object3Id(): string {
797
+ return this.raw.get(PropertyType.Object_3_Id);
798
+ }
799
+ /**
800
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
801
+ * @param {string} value
802
+ */
803
+ setObject3Id(value: string): void {
804
+ this.raw.set(PropertyType.Object_3_Id, value);
805
+ }
806
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_3_Name pozostaje pusta */
807
+ get object3Name(): string {
808
+ return this.raw.get(PropertyType.Object_3_Name);
809
+ }
810
+ /**
811
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
812
+ * @param {string} value
813
+ */
814
+ setObject3Name(value: string): void {
815
+ this.raw.set(PropertyType.Object_3_Name, value);
816
+ }
817
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
818
+ get object3CustomIcon(): CustomIconType {
819
+ return this.raw.get(PropertyType.Object_3_CustomIcon);
820
+ }
821
+ /**
822
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
823
+ * @param {CustomIconType} value
824
+ */
825
+ setObject3CustomIcon(value: CustomIconType): void {
826
+ this.raw.set(PropertyType.Object_3_CustomIcon, value);
827
+ }
828
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
829
+ get distributedLogicGroup3(): number {
830
+ return this.raw.get(PropertyType.DistributedLogicGroup_3);
831
+ }
832
+ set distributedLogicGroup3(value: number) {
833
+ this.raw.set(PropertyType.DistributedLogicGroup_3, value);
834
+ }
835
+ /** ID obiektu termostatu lub numer przycisku w zależności od typu strony */
836
+ get object4Id(): string {
837
+ return this.raw.get(PropertyType.Object_4_Id);
838
+ }
839
+ /**
840
+ * Ustawia ID obiektu termostatu lub numer przycisku w zależności od typu strony
841
+ * @param {string} value
842
+ */
843
+ setObject4Id(value: string): void {
844
+ this.raw.set(PropertyType.Object_4_Id, value);
845
+ }
846
+ /** Nazwa termostatu wyświetlana na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw cecha Object_4_Name pozostaje pusta */
847
+ get object4Name(): string {
848
+ return this.raw.get(PropertyType.Object_4_Name);
849
+ }
850
+ /**
851
+ * Ustawia nazwę termostatu wyświetlaną na stronie Smart Panelu (brak nazwy - termostat nieaktywny). W przypadku cechy PageType ustawionej na Buttons/FreeDraw parametr funkcji pozostaje pusty
852
+ * @param {string} value
853
+ */
854
+ setObject4Name(value: string): void {
855
+ this.raw.set(PropertyType.Object_4_Name, value);
856
+ }
857
+ /** Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu */
858
+ get object4CustomIcon(): CustomIconType {
859
+ return this.raw.get(PropertyType.Object_4_CustomIcon);
860
+ }
861
+ /**
862
+ * Ustawia nazwę ikony użytkownika dla termostatu obsługiwanego przez strony Smart Panelu
863
+ * @param {CustomIconType} value
864
+ */
865
+ setObject4CustomIcon(value: CustomIconType): void {
866
+ this.raw.set(PropertyType.Object_4_CustomIcon, value);
867
+ }
868
+ /** Grupa Distributed Logic - grupa broadcastowa dla rozproszonej logiki */
869
+ get distributedLogicGroup4(): number {
870
+ return this.raw.get(PropertyType.DistributedLogicGroup_4);
871
+ }
872
+ set distributedLogicGroup4(value: number) {
873
+ this.raw.set(PropertyType.DistributedLogicGroup_4, value);
874
+ }
875
+ }
876
+
877
+ export { PanelPage, PanelPageRaw, PanelPageRemote, PageType, CustomIconType }