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.
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/analog-din/fv02_01/analog-in.ts +271 -0
- package/dist/clu/calendar/v1/calendar.ts +308 -0
- package/dist/clu/clu-zwave-2/fv515_03/clu-zwave-2.ts +1302 -0
- package/dist/clu/event-scheduler/v1/event-scheduler.ts +537 -0
- package/dist/clu/multi-fan-ac-thermostat/v1/multi-fan-ac-thermostat.ts +1163 -0
- package/dist/clu/pid-controller/v1/pid-controller.ts +536 -0
- package/dist/clu/presence-sensor/v1/presence-sensor.ts +313 -0
- package/dist/clu/presence-sensor/v2/presence-sensor.ts +470 -0
- package/dist/clu/push/v1/push.ts +261 -0
- package/dist/clu/scheduler/v1/scheduler.ts +304 -0
- package/dist/clu/statistics/v1/statistics.ts +413 -0
- package/dist/clu/statistics-pulse/v1/statistics-pulse.ts +218 -0
- package/dist/clu/sunrise-sunset-calendar/v1/sunrise-sunset-calendar.ts +389 -0
- package/dist/clu/sunrise-sunset-calendar/v2/sunrise-sunset-calendar.ts +659 -0
- package/dist/clu/sunrise-sunset-calendar/v3/sunrise-sunset-calendar.ts +659 -0
- package/dist/clu/thermostat/v1/thermostat.ts +768 -0
- package/dist/clu/thermostat/v2/thermostat.ts +861 -0
- package/dist/clu/timer/v1/timer.ts +369 -0
- package/dist/core/execution-builder.ts +55 -0
- package/dist/core/remote-gate.ts +17 -0
- package/dist/digital-in-din/fv02_01/din.ts +310 -0
- package/dist/examples/light_turned_on_by_calendar/Clu_OnInit.ts +26 -0
- package/dist/examples/light_turned_on_by_presence_sensor/Clu_OnInit.ts +35 -0
- package/dist/examples/light_turned_on_by_switch/Clu_OnInit.ts +16 -0
- package/dist/gate/cool-master/v1/cool-master.ts +782 -0
- package/dist/gate/cool-master-net/v1/cool-master-net.ts +334 -0
- package/dist/gate/denon-marantz-avr/v1/denon-marantz-avr.ts +724 -0
- package/dist/gate/heos/v1/heos.ts +1224 -0
- package/dist/gate/http/fv1000_03/clu-gate-http.ts +405 -0
- package/dist/gate/http/fv1000_03_hv1/clu-gate-http.ts +352 -0
- package/dist/gate/http/fv1100_03/clu-gate-http.ts +589 -0
- package/dist/gate/http/fv1110_03/clu-gate-http.ts +589 -0
- package/dist/gate/http/fv1300_03/clu-gate-http.ts +589 -0
- package/dist/gate/http/fv1400_03/clu-gate-http.ts +677 -0
- package/dist/gate/http-listener/v1/http-listener.ts +299 -0
- package/dist/gate/http-listener/v2/http-listener.ts +325 -0
- package/dist/gate/http-request/v1/http-request.ts +645 -0
- package/dist/gate/http-request/v2/http-request.ts +709 -0
- package/dist/gate/input/v1/input.ts +171 -0
- package/dist/gate/jablotron/v1/jablotron.ts +100 -0
- package/dist/gate/jablotron-device/v1/jablotron-device.ts +171 -0
- package/dist/gate/jablotron-output/v1/jablotron-output.ts +240 -0
- package/dist/gate/jablotron-section/v1/jablotron-section.ts +260 -0
- package/dist/gate/modbus/v1/modbus.ts +609 -0
- package/dist/gate/modbus/v2/modbus.ts +690 -0
- package/dist/gate/modbus-client/v1/modbus-client.ts +827 -0
- package/dist/gate/modbus-rtu/v1/modbus-rtu.ts +911 -0
- package/dist/gate/modbus-server/v1/modbus-server.ts +405 -0
- package/dist/gate/modbus-slave-config-rtu/v1/modbus-slave-config-rtu.ts +160 -0
- package/dist/gate/modbus-slave-rtu/v1/modbus-slave-rtu.ts +371 -0
- package/dist/gate/modbus-value/v1/modbus-value.ts +856 -0
- package/dist/gate/music-cast/v1/music-cast.ts +1298 -0
- package/dist/gate/output/v1/output.ts +240 -0
- package/dist/gate/satel/v1/satel.ts +359 -0
- package/dist/gate/satel-input/v1/satel-input.ts +171 -0
- package/dist/gate/satel-output/v1/satel-output.ts +240 -0
- package/dist/gate/satel-zone/v1/satel-zone.ts +235 -0
- package/dist/gate/sonos/v1/sonos.ts +934 -0
- package/dist/gate/timer/v2/timer.ts +253 -0
- package/dist/gate/zone/v1/zone.ts +235 -0
- package/dist/io-module-din-8/fv02_02/din.ts +354 -0
- package/dist/io-module-din-8/fv02_02/dout.ts +360 -0
- package/dist/one-wire/fv01_10/onew-sensor.ts +269 -0
- package/dist/one-wire/fv01_28/onew-sensor.ts +269 -0
- package/dist/one-wire/fv02_28/onew-sensor.ts +350 -0
- package/dist/one-wire/fv03_28/onew-sensor.ts +435 -0
- package/dist/relay-din-2/fv02_02/dout.ts +544 -0
- package/dist/relay-din-4/fv01_02/dout.ts +340 -0
- package/dist/relay-din-4/fv02_02/dout.ts +368 -0
- package/dist/roller-shutter-din-3/fv03_02/roller-shutter.ts +1078 -0
- package/dist/smart-panel-fm-4/fv03_03/panel-button.ts +550 -0
- package/dist/smart-panel-fm-4/fv03_03/panel-sens-light.ts +238 -0
- package/dist/smart-panel-fm-4/fv03_03/panel-sens-temp.ts +239 -0
- package/dist/smart-panel-fm-4/fv03_03/panel.ts +700 -0
- package/dist/smart-panel-fm-4/fv04_03/panel-button.ts +567 -0
- package/dist/smart-panel-fm-4/fv04_03/panel-page.ts +516 -0
- package/dist/smart-panel-fm-4/fv04_03/panel-sens-light.ts +238 -0
- package/dist/smart-panel-fm-4/fv04_03/panel-sens-temp.ts +239 -0
- package/dist/smart-panel-fm-4/fv04_03/panel.ts +1026 -0
- package/dist/smart-panel-fm-4/fv05_03/panel-button.ts +567 -0
- package/dist/smart-panel-fm-4/fv05_03/panel-page.ts +620 -0
- package/dist/smart-panel-fm-4/fv05_03/panel-sens-light.ts +238 -0
- package/dist/smart-panel-fm-4/fv05_03/panel-sens-temp.ts +266 -0
- package/dist/smart-panel-fm-4/fv05_03/panel.ts +1109 -0
- package/dist/smart-panel-fm-4/fv06_03/panel-button.ts +567 -0
- package/dist/smart-panel-fm-4/fv06_03/panel-page.ts +877 -0
- package/dist/smart-panel-fm-4/fv06_03/panel-sens-light.ts +238 -0
- package/dist/smart-panel-fm-4/fv06_03/panel-sens-temp.ts +297 -0
- package/dist/smart-panel-fm-4/fv06_03/panel.ts +1138 -0
- package/dist/smart-panel-fm-4/fv07_03/panel-button.ts +567 -0
- package/dist/smart-panel-fm-4/fv07_03/panel-page.ts +864 -0
- package/dist/smart-panel-fm-4/fv07_03/panel-sens-light.ts +238 -0
- package/dist/smart-panel-fm-4/fv07_03/panel-sens-temp.ts +297 -0
- package/dist/smart-panel-fm-4/fv07_03/panel.ts +1135 -0
- package/dist/touch-panel-fm-4/fv01_02/panel-button.ts +418 -0
- package/dist/touch-panel-fm-4/fv01_02/panel-sens-light.ts +238 -0
- package/dist/touch-panel-fm-4/fv01_02/panel-sens-temp.ts +257 -0
- package/dist/touch-panel-fm-4/fv01_02/panel.ts +75 -0
- package/dist/touch-panel-fm-4/fv01_02/power-supply-voltage.ts +322 -0
- package/dist/touch-panel-fm-8/fv01_02/panel-button.ts +418 -0
- package/dist/touch-panel-fm-8/fv01_02/panel-sens-light.ts +238 -0
- package/dist/touch-panel-fm-8/fv01_02/panel-sens-temp.ts +270 -0
- package/dist/touch-panel-fm-8/fv01_02/panel.ts +75 -0
- package/dist/touch-panel-fm-8/fv01_02/power-supply-voltage.ts +322 -0
- package/package.json +16 -0
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
// Created from: packages/grenton-api/interfaces/object_multi_fan_ac_thermostat_v1.xml, object name="MultiFanACThermostat" version="1"
|
|
2
|
+
|
|
3
|
+
import { rawExecutionBuilderFactory } from "../../../core/execution-builder"
|
|
4
|
+
import { RemoteGate } from "../../../core/remote-gate"
|
|
5
|
+
|
|
6
|
+
enum EventType {
|
|
7
|
+
OnPointValueChange = 0,
|
|
8
|
+
OnStart = 1,
|
|
9
|
+
OnStop = 2,
|
|
10
|
+
OnControlOutValueOn = 3,
|
|
11
|
+
OnControlOutValueOff = 4,
|
|
12
|
+
OnHolidayModeOn = 5,
|
|
13
|
+
OnHolidayModeOff = 6
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
enum PropertyType {
|
|
17
|
+
Source = 0,
|
|
18
|
+
Control = 1,
|
|
19
|
+
OutputType = 2,
|
|
20
|
+
PointValue = 3,
|
|
21
|
+
HolidayModeValue = 4,
|
|
22
|
+
Hysteresis = 5,
|
|
23
|
+
State = 6,
|
|
24
|
+
ControlDirection = 7,
|
|
25
|
+
Mode = 8,
|
|
26
|
+
Data = 9,
|
|
27
|
+
Min = 10,
|
|
28
|
+
Max = 11,
|
|
29
|
+
TargetTemp = 12,
|
|
30
|
+
ControlOutValue = 13,
|
|
31
|
+
CurrentTemp = 14,
|
|
32
|
+
FanLowControl = 15,
|
|
33
|
+
FanMediumControl = 16,
|
|
34
|
+
FanHighControl = 17,
|
|
35
|
+
FanMode = 18,
|
|
36
|
+
ControlSwitchDelay = 19,
|
|
37
|
+
ProtectionDelayOn = 20,
|
|
38
|
+
ProtectionDelayOff = 21,
|
|
39
|
+
FanControlOutValue = 22,
|
|
40
|
+
MediumFanSpeedDelta = 23,
|
|
41
|
+
HighFanSpeedDelta = 24,
|
|
42
|
+
FanSpeedHysteresis = 25
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
enum MethodType {
|
|
46
|
+
Start = 0,
|
|
47
|
+
Stop = 1,
|
|
48
|
+
IncreaseDegree = 2,
|
|
49
|
+
DecreaseDegree = 3,
|
|
50
|
+
HeatUp = 4,
|
|
51
|
+
HolidayModeStart = 5,
|
|
52
|
+
HolidayModeStop = 6,
|
|
53
|
+
AutoModeStart = 7,
|
|
54
|
+
AutoModeStop = 8
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
enum OutputTypeType {
|
|
58
|
+
Auto = -1,
|
|
59
|
+
Digital = 0,
|
|
60
|
+
Analog = 1
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
enum ControlDirectionType {
|
|
64
|
+
Normal = 0,
|
|
65
|
+
Reverse = 1
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
enum ModeType {
|
|
69
|
+
UsePointValue = 0,
|
|
70
|
+
HolidayMode = 1,
|
|
71
|
+
AutoMode = 2,
|
|
72
|
+
HeatUp = 3
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
enum FanModeType {
|
|
76
|
+
Auto = 0,
|
|
77
|
+
Low = 1,
|
|
78
|
+
Medium = 2,
|
|
79
|
+
High = 3
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class MultiFanACThermostatRaw {
|
|
83
|
+
add_event(event: EventType, callback: () => void): void;
|
|
84
|
+
get(property: PropertyType): any;
|
|
85
|
+
set(property: PropertyType, value: any): void;
|
|
86
|
+
execute(method: MethodType, ...args: any[]): any;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface IMultiFanACThermostat {
|
|
90
|
+
/**
|
|
91
|
+
* Zdarzenie wywoływane przy zmianie wartości PointValue
|
|
92
|
+
* @param callback
|
|
93
|
+
*/
|
|
94
|
+
addOnPointValueChange: (callback: () => void) => void
|
|
95
|
+
/**
|
|
96
|
+
* Zdarzenie wywoływane przy wznowieniu pracy termostatu
|
|
97
|
+
* @param callback
|
|
98
|
+
*/
|
|
99
|
+
addOnStart: (callback: () => void) => void
|
|
100
|
+
/**
|
|
101
|
+
* Zdarzenie wywoływane przy zatrzymaniu pracy termostatu
|
|
102
|
+
* @param callback
|
|
103
|
+
*/
|
|
104
|
+
addOnStop: (callback: () => void) => void
|
|
105
|
+
/**
|
|
106
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest załączane
|
|
107
|
+
* @param callback
|
|
108
|
+
*/
|
|
109
|
+
addOnControlOutValueOn: (callback: () => void) => void
|
|
110
|
+
/**
|
|
111
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest wyłączane
|
|
112
|
+
* @param callback
|
|
113
|
+
*/
|
|
114
|
+
addOnControlOutValueOff: (callback: () => void) => void
|
|
115
|
+
/**
|
|
116
|
+
* Zdarzenie wywoływane przy uruchomieniu trybu wakacyjnego
|
|
117
|
+
* @param callback
|
|
118
|
+
*/
|
|
119
|
+
addOnHolidayModeOn: (callback: () => void) => void
|
|
120
|
+
/**
|
|
121
|
+
* Zdarzenie wywoływane przy wyłączeniu trybu wakacyjnego
|
|
122
|
+
* @param callback
|
|
123
|
+
*/
|
|
124
|
+
addOnHolidayModeOff: (callback: () => void) => void
|
|
125
|
+
/** Przełącza w stan aktywny (State=1) */
|
|
126
|
+
start: () => void
|
|
127
|
+
/** Przełącza w stan zatrzymania (State=0) */
|
|
128
|
+
stop: () => void
|
|
129
|
+
/** Zwiększa PointValue o 1°C */
|
|
130
|
+
increaseDegree: () => void
|
|
131
|
+
/** Zmniejsza PointValue o 1°C */
|
|
132
|
+
decreaseDegree: () => void
|
|
133
|
+
/**
|
|
134
|
+
* Podnosi wartość PointValue o wartość Value, na wskazany okres czasu (Time) wyrażony w minutach
|
|
135
|
+
* @param {number} value
|
|
136
|
+
* @param {number} time
|
|
137
|
+
*/
|
|
138
|
+
heatUp: (value: number, time: number) => void
|
|
139
|
+
/** Uruchamia tryb wakacyjny */
|
|
140
|
+
holidayModeStart: () => void
|
|
141
|
+
/** Zatrzymuje tryb wakacyjny */
|
|
142
|
+
holidayModeStop: () => void
|
|
143
|
+
/** Uruchamia tryb AutoMode (pobieranie docelowej temperatury z harmonogramu zamiast z cechy PointValue) */
|
|
144
|
+
autoModeStart: () => void
|
|
145
|
+
/** Zatrzymuje tryb AutoMode */
|
|
146
|
+
autoModeStop: () => void
|
|
147
|
+
/**
|
|
148
|
+
* Typ wyjścia: Auto - autodetekcja Digital - cyfrowe Analog - analogowe
|
|
149
|
+
* @param {OutputTypeType} value
|
|
150
|
+
*/
|
|
151
|
+
setOutputType: (value: OutputTypeType) => void
|
|
152
|
+
/**
|
|
153
|
+
* Ustawia stan: 1 - aktywny, 0 - zatrzymany
|
|
154
|
+
* @param {number} value
|
|
155
|
+
*/
|
|
156
|
+
setState: (value: number) => void
|
|
157
|
+
/**
|
|
158
|
+
* Ustawia tryb pracy
|
|
159
|
+
* @param {ModeType} value
|
|
160
|
+
*/
|
|
161
|
+
setMode: (value: ModeType) => void
|
|
162
|
+
/** Typ wyjścia: -1 - autodetekcja 0 - cyfrowe 1 - analogowe */
|
|
163
|
+
readonly outputType: OutputTypeType
|
|
164
|
+
/** Wartość ręcznie zadanej temperatury */
|
|
165
|
+
pointValue: number
|
|
166
|
+
/** Wartość temperatury dla trybu wakacyjnego */
|
|
167
|
+
holidayModeValue: number
|
|
168
|
+
/** Wielkość histerezy */
|
|
169
|
+
hysteresis: number
|
|
170
|
+
/** Stan pracy: 1 - aktywny, 0 - zatrzymany */
|
|
171
|
+
readonly state: number
|
|
172
|
+
/** Kierunek pracy: 0 - tryb grzania 1 - tryb chłodzenia */
|
|
173
|
+
controlDirection: ControlDirectionType
|
|
174
|
+
/** Tryb pracy: 0 - tryb ręczny (użycie PointValue) 1 - tryb wakacyjny (użycie HolidayModeValue) 2 - tryb automatyczny (użycie wartości z Harmonogramu - AutoMode) 3 - tryb podgrzewania (użycie wartości HeatUp) */
|
|
175
|
+
readonly mode: ModeType
|
|
176
|
+
/** Wartość cechy Data */
|
|
177
|
+
data: string
|
|
178
|
+
/** Dolna wartość zakresu wbudowanego harmonogramu */
|
|
179
|
+
min: number
|
|
180
|
+
/** Górna wartość zakresu wbudowanego harmonogramu */
|
|
181
|
+
max: number
|
|
182
|
+
/** Zwraca aktualną wartość docelowej temperatury, w odróżnieniu od SetPoint uwzględnia status AutoMode i HolidayMode */
|
|
183
|
+
readonly targetTemp: number
|
|
184
|
+
/** Zwraca wartość temperatury na czujniku */
|
|
185
|
+
readonly currentTemp: number
|
|
186
|
+
/** Wartość przypisywana do wyjścia sterującego */
|
|
187
|
+
readonly controlOutValue: number
|
|
188
|
+
/** Wartość przypisywana do wyjścia sterującego wentylatorem: 0 - wyłączone, 1 - włączone (Low), 2 - włączone (Medium), 3 - włączone (High) */
|
|
189
|
+
readonly fanControlOutValue: number
|
|
190
|
+
/** Tryb pracy wentylatora: 0 - tryb automatyczny (automatyczne załączanie oraz zmiana prędkości), 1 - tryb pracy ciągłej (Low), 2 - tryb pracy ciągłej (Medium), 3 - tryb pracy ciągłej (High) */
|
|
191
|
+
fanMode: FanModeType
|
|
192
|
+
/** Opóźnienie włączenia lub wyłączenia wyjścia sterującego w stosunku do wyjścia wentylatora */
|
|
193
|
+
controlSwitchDelay: number
|
|
194
|
+
/** Czas, przez który wyjście sterujące nie może zostać załączone po wyłączeniu (funkcja ochrony sprężarki) */
|
|
195
|
+
protectionDelayOn: number
|
|
196
|
+
/** Czas, przez który wyjście sterujące nie może zostać wyłączone po załączeniu (funkcja ochrony sprężarki) */
|
|
197
|
+
protectionDelayOff: number
|
|
198
|
+
/** Różnica pomiędzy temperaturą źródłową a docelową dla załączenia drugiego stopnia wentylatora */
|
|
199
|
+
mediumFanSpeedDelta: number
|
|
200
|
+
/** Różnica pomiędzy temperaturą źródłową a docelową dla załączenia trzeciego stopnia wentylatora */
|
|
201
|
+
highFanSpeedDelta: number
|
|
202
|
+
/** Wielkość histerezy dla zmiany prędkości wentylatora */
|
|
203
|
+
fanSpeedHysteresis: number
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
class MultiFanACThermostat implements IMultiFanACThermostat {
|
|
207
|
+
private onPointValueChangeCallbacks: Array<() => void> = [];
|
|
208
|
+
private onStartCallbacks: Array<() => void> = [];
|
|
209
|
+
private onStopCallbacks: Array<() => void> = [];
|
|
210
|
+
private onControlOutValueOnCallbacks: Array<() => void> = [];
|
|
211
|
+
private onControlOutValueOffCallbacks: Array<() => void> = [];
|
|
212
|
+
private onHolidayModeOnCallbacks: Array<() => void> = [];
|
|
213
|
+
private onHolidayModeOffCallbacks: Array<() => void> = [];
|
|
214
|
+
|
|
215
|
+
constructor(private raw: MultiFanACThermostatRaw) {
|
|
216
|
+
this.raw.add_event(EventType.OnPointValueChange, () => {
|
|
217
|
+
this.onPointValueChangeCallbacks.forEach(callback => { callback(); });
|
|
218
|
+
});
|
|
219
|
+
this.raw.add_event(EventType.OnStart, () => {
|
|
220
|
+
this.onStartCallbacks.forEach(callback => { callback(); });
|
|
221
|
+
});
|
|
222
|
+
this.raw.add_event(EventType.OnStop, () => {
|
|
223
|
+
this.onStopCallbacks.forEach(callback => { callback(); });
|
|
224
|
+
});
|
|
225
|
+
this.raw.add_event(EventType.OnControlOutValueOn, () => {
|
|
226
|
+
this.onControlOutValueOnCallbacks.forEach(callback => { callback(); });
|
|
227
|
+
});
|
|
228
|
+
this.raw.add_event(EventType.OnControlOutValueOff, () => {
|
|
229
|
+
this.onControlOutValueOffCallbacks.forEach(callback => { callback(); });
|
|
230
|
+
});
|
|
231
|
+
this.raw.add_event(EventType.OnHolidayModeOn, () => {
|
|
232
|
+
this.onHolidayModeOnCallbacks.forEach(callback => { callback(); });
|
|
233
|
+
});
|
|
234
|
+
this.raw.add_event(EventType.OnHolidayModeOff, () => {
|
|
235
|
+
this.onHolidayModeOffCallbacks.forEach(callback => { callback(); });
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Zdarzenie wywoływane przy zmianie wartości PointValue
|
|
241
|
+
* @param callback
|
|
242
|
+
*/
|
|
243
|
+
addOnPointValueChange(callback: () => void): void {
|
|
244
|
+
this.onPointValueChangeCallbacks.push(callback);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Zdarzenie wywoływane przy wznowieniu pracy termostatu
|
|
248
|
+
* @param callback
|
|
249
|
+
*/
|
|
250
|
+
addOnStart(callback: () => void): void {
|
|
251
|
+
this.onStartCallbacks.push(callback);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Zdarzenie wywoływane przy zatrzymaniu pracy termostatu
|
|
255
|
+
* @param callback
|
|
256
|
+
*/
|
|
257
|
+
addOnStop(callback: () => void): void {
|
|
258
|
+
this.onStopCallbacks.push(callback);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest załączane
|
|
262
|
+
* @param callback
|
|
263
|
+
*/
|
|
264
|
+
addOnControlOutValueOn(callback: () => void): void {
|
|
265
|
+
this.onControlOutValueOnCallbacks.push(callback);
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest wyłączane
|
|
269
|
+
* @param callback
|
|
270
|
+
*/
|
|
271
|
+
addOnControlOutValueOff(callback: () => void): void {
|
|
272
|
+
this.onControlOutValueOffCallbacks.push(callback);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Zdarzenie wywoływane przy uruchomieniu trybu wakacyjnego
|
|
276
|
+
* @param callback
|
|
277
|
+
*/
|
|
278
|
+
addOnHolidayModeOn(callback: () => void): void {
|
|
279
|
+
this.onHolidayModeOnCallbacks.push(callback);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Zdarzenie wywoływane przy wyłączeniu trybu wakacyjnego
|
|
283
|
+
* @param callback
|
|
284
|
+
*/
|
|
285
|
+
addOnHolidayModeOff(callback: () => void): void {
|
|
286
|
+
this.onHolidayModeOffCallbacks.push(callback);
|
|
287
|
+
}
|
|
288
|
+
/** Przełącza w stan aktywny (State=1) */
|
|
289
|
+
start(): void {
|
|
290
|
+
this.raw.execute(MethodType.Start);
|
|
291
|
+
}
|
|
292
|
+
/** Przełącza w stan zatrzymania (State=0) */
|
|
293
|
+
stop(): void {
|
|
294
|
+
this.raw.execute(MethodType.Stop);
|
|
295
|
+
}
|
|
296
|
+
/** Zwiększa PointValue o 1°C */
|
|
297
|
+
increaseDegree(): void {
|
|
298
|
+
this.raw.execute(MethodType.IncreaseDegree);
|
|
299
|
+
}
|
|
300
|
+
/** Zmniejsza PointValue o 1°C */
|
|
301
|
+
decreaseDegree(): void {
|
|
302
|
+
this.raw.execute(MethodType.DecreaseDegree);
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Podnosi wartość PointValue o wartość Value, na wskazany okres czasu (Time) wyrażony w minutach
|
|
306
|
+
* @param {number} value
|
|
307
|
+
* @param {number} time
|
|
308
|
+
*/
|
|
309
|
+
heatUp(value: number, time: number): void {
|
|
310
|
+
this.raw.execute(MethodType.HeatUp, value, time);
|
|
311
|
+
}
|
|
312
|
+
/** Uruchamia tryb wakacyjny */
|
|
313
|
+
holidayModeStart(): void {
|
|
314
|
+
this.raw.execute(MethodType.HolidayModeStart);
|
|
315
|
+
}
|
|
316
|
+
/** Zatrzymuje tryb wakacyjny */
|
|
317
|
+
holidayModeStop(): void {
|
|
318
|
+
this.raw.execute(MethodType.HolidayModeStop);
|
|
319
|
+
}
|
|
320
|
+
/** Uruchamia tryb AutoMode (pobieranie docelowej temperatury z harmonogramu zamiast z cechy PointValue) */
|
|
321
|
+
autoModeStart(): void {
|
|
322
|
+
this.raw.execute(MethodType.AutoModeStart);
|
|
323
|
+
}
|
|
324
|
+
/** Zatrzymuje tryb AutoMode */
|
|
325
|
+
autoModeStop(): void {
|
|
326
|
+
this.raw.execute(MethodType.AutoModeStop);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Typ wyjścia: Auto - autodetekcja Digital - cyfrowe Analog - analogowe
|
|
330
|
+
* @param {OutputTypeType} value
|
|
331
|
+
*/
|
|
332
|
+
setOutputType(value: OutputTypeType): void {
|
|
333
|
+
this.raw.set(PropertyType.OutputType, value);
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Ustawia stan: 1 - aktywny, 0 - zatrzymany
|
|
337
|
+
* @param {number} value
|
|
338
|
+
*/
|
|
339
|
+
setState(value: number): void {
|
|
340
|
+
this.raw.set(PropertyType.State, value);
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Ustawia tryb pracy
|
|
344
|
+
* @param {ModeType} value
|
|
345
|
+
*/
|
|
346
|
+
setMode(value: ModeType): void {
|
|
347
|
+
this.raw.set(PropertyType.Mode, value);
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Typ wyjścia: -1 - autodetekcja 0 - cyfrowe 1 - analogowe
|
|
351
|
+
* @returns {OutputTypeType}
|
|
352
|
+
*/
|
|
353
|
+
get outputType(): OutputTypeType {
|
|
354
|
+
return this.raw.get(PropertyType.OutputType);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Wartość ręcznie zadanej temperatury
|
|
358
|
+
* @returns {number}
|
|
359
|
+
*/
|
|
360
|
+
get pointValue(): number {
|
|
361
|
+
return this.raw.get(PropertyType.PointValue);
|
|
362
|
+
}
|
|
363
|
+
set pointValue(value: number) {
|
|
364
|
+
this.raw.set(PropertyType.PointValue, value);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Wartość temperatury dla trybu wakacyjnego
|
|
368
|
+
* @returns {number}
|
|
369
|
+
*/
|
|
370
|
+
get holidayModeValue(): number {
|
|
371
|
+
return this.raw.get(PropertyType.HolidayModeValue);
|
|
372
|
+
}
|
|
373
|
+
set holidayModeValue(value: number) {
|
|
374
|
+
this.raw.set(PropertyType.HolidayModeValue, value);
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Wielkość histerezy
|
|
378
|
+
* @returns {number}
|
|
379
|
+
*/
|
|
380
|
+
get hysteresis(): number {
|
|
381
|
+
return this.raw.get(PropertyType.Hysteresis);
|
|
382
|
+
}
|
|
383
|
+
set hysteresis(value: number) {
|
|
384
|
+
this.raw.set(PropertyType.Hysteresis, value);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Stan pracy: 1 - aktywny, 0 - zatrzymany
|
|
388
|
+
* @returns {number}
|
|
389
|
+
*/
|
|
390
|
+
get state(): number {
|
|
391
|
+
return this.raw.get(PropertyType.State);
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Kierunek pracy: 0 - tryb grzania 1 - tryb chłodzenia
|
|
395
|
+
* @returns {ControlDirectionType}
|
|
396
|
+
*/
|
|
397
|
+
get controlDirection(): ControlDirectionType {
|
|
398
|
+
return this.raw.get(PropertyType.ControlDirection);
|
|
399
|
+
}
|
|
400
|
+
set controlDirection(value: ControlDirectionType) {
|
|
401
|
+
this.raw.set(PropertyType.ControlDirection, value);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Tryb pracy: 0 - tryb ręczny (użycie PointValue) 1 - tryb wakacyjny (użycie HolidayModeValue) 2 - tryb automatyczny (użycie wartości z Harmonogramu - AutoMode) 3 - tryb podgrzewania (użycie wartości HeatUp)
|
|
405
|
+
* @returns {ModeType}
|
|
406
|
+
*/
|
|
407
|
+
get mode(): ModeType {
|
|
408
|
+
return this.raw.get(PropertyType.Mode);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Wartość cechy Data
|
|
412
|
+
* @returns {string}
|
|
413
|
+
*/
|
|
414
|
+
get data(): string {
|
|
415
|
+
return this.raw.get(PropertyType.Data);
|
|
416
|
+
}
|
|
417
|
+
set data(value: string) {
|
|
418
|
+
this.raw.set(PropertyType.Data, value);
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* Dolna wartość zakresu wbudowanego harmonogramu
|
|
422
|
+
* @returns {number}
|
|
423
|
+
*/
|
|
424
|
+
get min(): number {
|
|
425
|
+
return this.raw.get(PropertyType.Min);
|
|
426
|
+
}
|
|
427
|
+
set min(value: number) {
|
|
428
|
+
this.raw.set(PropertyType.Min, value);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Górna wartość zakresu wbudowanego harmonogramu
|
|
432
|
+
* @returns {number}
|
|
433
|
+
*/
|
|
434
|
+
get max(): number {
|
|
435
|
+
return this.raw.get(PropertyType.Max);
|
|
436
|
+
}
|
|
437
|
+
set max(value: number) {
|
|
438
|
+
this.raw.set(PropertyType.Max, value);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Zwraca aktualną wartość docelowej temperatury, w odróżnieniu od SetPoint uwzględnia status AutoMode i HolidayMode
|
|
442
|
+
* @returns {number}
|
|
443
|
+
*/
|
|
444
|
+
get targetTemp(): number {
|
|
445
|
+
return this.raw.get(PropertyType.TargetTemp);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Zwraca wartość temperatury na czujniku
|
|
449
|
+
* @returns {number}
|
|
450
|
+
*/
|
|
451
|
+
get currentTemp(): number {
|
|
452
|
+
return this.raw.get(PropertyType.CurrentTemp);
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Wartość przypisywana do wyjścia sterującego
|
|
456
|
+
* @returns {number}
|
|
457
|
+
*/
|
|
458
|
+
get controlOutValue(): number {
|
|
459
|
+
return this.raw.get(PropertyType.ControlOutValue);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* Wartość przypisywana do wyjścia sterującego wentylatorem: 0 - wyłączone, 1 - włączone (Low), 2 - włączone (Medium), 3 - włączone (High)
|
|
463
|
+
* @returns {number}
|
|
464
|
+
*/
|
|
465
|
+
get fanControlOutValue(): number {
|
|
466
|
+
return this.raw.get(PropertyType.FanControlOutValue);
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Tryb pracy wentylatora: 0 - tryb automatyczny (automatyczne załączanie oraz zmiana prędkości), 1 - tryb pracy ciągłej (Low), 2 - tryb pracy ciągłej (Medium), 3 - tryb pracy ciągłej (High)
|
|
470
|
+
* @returns {FanModeType}
|
|
471
|
+
*/
|
|
472
|
+
get fanMode(): FanModeType {
|
|
473
|
+
return this.raw.get(PropertyType.FanMode);
|
|
474
|
+
}
|
|
475
|
+
set fanMode(value: FanModeType) {
|
|
476
|
+
this.raw.set(PropertyType.FanMode, value);
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Opóźnienie włączenia lub wyłączenia wyjścia sterującego w stosunku do wyjścia wentylatora
|
|
480
|
+
* @returns {number}
|
|
481
|
+
*/
|
|
482
|
+
get controlSwitchDelay(): number {
|
|
483
|
+
return this.raw.get(PropertyType.ControlSwitchDelay);
|
|
484
|
+
}
|
|
485
|
+
set controlSwitchDelay(value: number) {
|
|
486
|
+
this.raw.set(PropertyType.ControlSwitchDelay, value);
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* Czas, przez który wyjście sterujące nie może zostać załączone po wyłączeniu (funkcja ochrony sprężarki)
|
|
490
|
+
* @returns {number}
|
|
491
|
+
*/
|
|
492
|
+
get protectionDelayOn(): number {
|
|
493
|
+
return this.raw.get(PropertyType.ProtectionDelayOn);
|
|
494
|
+
}
|
|
495
|
+
set protectionDelayOn(value: number) {
|
|
496
|
+
this.raw.set(PropertyType.ProtectionDelayOn, value);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Czas, przez który wyjście sterujące nie może zostać wyłączone po załączeniu (funkcja ochrony sprężarki)
|
|
500
|
+
* @returns {number}
|
|
501
|
+
*/
|
|
502
|
+
get protectionDelayOff(): number {
|
|
503
|
+
return this.raw.get(PropertyType.ProtectionDelayOff);
|
|
504
|
+
}
|
|
505
|
+
set protectionDelayOff(value: number) {
|
|
506
|
+
this.raw.set(PropertyType.ProtectionDelayOff, value);
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Różnica pomiędzy temperaturą źródłową a docelową dla załączenia drugiego stopnia wentylatora
|
|
510
|
+
* @returns {number}
|
|
511
|
+
*/
|
|
512
|
+
get mediumFanSpeedDelta(): number {
|
|
513
|
+
return this.raw.get(PropertyType.MediumFanSpeedDelta);
|
|
514
|
+
}
|
|
515
|
+
set mediumFanSpeedDelta(value: number) {
|
|
516
|
+
this.raw.set(PropertyType.MediumFanSpeedDelta, value);
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Różnica pomiędzy temperaturą źródłową a docelową dla załączenia trzeciego stopnia wentylatora
|
|
520
|
+
* @returns {number}
|
|
521
|
+
*/
|
|
522
|
+
get highFanSpeedDelta(): number {
|
|
523
|
+
return this.raw.get(PropertyType.HighFanSpeedDelta);
|
|
524
|
+
}
|
|
525
|
+
set highFanSpeedDelta(value: number) {
|
|
526
|
+
this.raw.set(PropertyType.HighFanSpeedDelta, value);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Wielkość histerezy dla zmiany prędkości wentylatora
|
|
530
|
+
* @returns {number}
|
|
531
|
+
*/
|
|
532
|
+
get fanSpeedHysteresis(): number {
|
|
533
|
+
return this.raw.get(PropertyType.FanSpeedHysteresis);
|
|
534
|
+
}
|
|
535
|
+
set fanSpeedHysteresis(value: number) {
|
|
536
|
+
this.raw.set(PropertyType.FanSpeedHysteresis, value);
|
|
537
|
+
}
|
|
538
|
+
set source(value: any) {
|
|
539
|
+
this.raw.set(PropertyType.Source, value);
|
|
540
|
+
}
|
|
541
|
+
set control(value: any) {
|
|
542
|
+
this.raw.set(PropertyType.Control, value);
|
|
543
|
+
}
|
|
544
|
+
set fanLowControl(value: any) {
|
|
545
|
+
this.raw.set(PropertyType.FanLowControl, value);
|
|
546
|
+
}
|
|
547
|
+
set fanMediumControl(value: any) {
|
|
548
|
+
this.raw.set(PropertyType.FanMediumControl, value);
|
|
549
|
+
}
|
|
550
|
+
set fanHighControl(value: any) {
|
|
551
|
+
this.raw.set(PropertyType.FanHighControl, value);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
class MultiFanACThermostatRemote implements IMultiFanACThermostat {
|
|
556
|
+
constructor(private objectName: string, private gate: RemoteGate) {
|
|
557
|
+
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Zdarzenie wywoływane przy zmianie wartości PointValue
|
|
562
|
+
* @param callback
|
|
563
|
+
*/
|
|
564
|
+
addOnPointValueChange(_callback: () => void): void {
|
|
565
|
+
// Remote events are not supported
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Zdarzenie wywoływane przy wznowieniu pracy termostatu
|
|
569
|
+
* @param callback
|
|
570
|
+
*/
|
|
571
|
+
addOnStart(_callback: () => void): void {
|
|
572
|
+
// Remote events are not supported
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Zdarzenie wywoływane przy zatrzymaniu pracy termostatu
|
|
576
|
+
* @param callback
|
|
577
|
+
*/
|
|
578
|
+
addOnStop(_callback: () => void): void {
|
|
579
|
+
// Remote events are not supported
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest załączane
|
|
583
|
+
* @param callback
|
|
584
|
+
*/
|
|
585
|
+
addOnControlOutValueOn(_callback: () => void): void {
|
|
586
|
+
// Remote events are not supported
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Zdarzenie wywoływane gdy wyjście ControlOutValue jest wyłączane
|
|
590
|
+
* @param callback
|
|
591
|
+
*/
|
|
592
|
+
addOnControlOutValueOff(_callback: () => void): void {
|
|
593
|
+
// Remote events are not supported
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Zdarzenie wywoływane przy uruchomieniu trybu wakacyjnego
|
|
597
|
+
* @param callback
|
|
598
|
+
*/
|
|
599
|
+
addOnHolidayModeOn(_callback: () => void): void {
|
|
600
|
+
// Remote events are not supported
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Zdarzenie wywoływane przy wyłączeniu trybu wakacyjnego
|
|
604
|
+
* @param callback
|
|
605
|
+
*/
|
|
606
|
+
addOnHolidayModeOff(_callback: () => void): void {
|
|
607
|
+
// Remote events are not supported
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/** Przełącza w stan aktywny (State=1) */
|
|
611
|
+
start(): void {
|
|
612
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
613
|
+
.execute()
|
|
614
|
+
.addParameter(MethodType.Start)
|
|
615
|
+
.build();
|
|
616
|
+
this.gate.runScript(cmd!);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** Przełącza w stan zatrzymania (State=0) */
|
|
620
|
+
stop(): void {
|
|
621
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
622
|
+
.execute()
|
|
623
|
+
.addParameter(MethodType.Stop)
|
|
624
|
+
.build();
|
|
625
|
+
this.gate.runScript(cmd!);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/** Zwiększa PointValue o 1°C */
|
|
629
|
+
increaseDegree(): void {
|
|
630
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
631
|
+
.execute()
|
|
632
|
+
.addParameter(MethodType.IncreaseDegree)
|
|
633
|
+
.build();
|
|
634
|
+
this.gate.runScript(cmd!);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/** Zmniejsza PointValue o 1°C */
|
|
638
|
+
decreaseDegree(): void {
|
|
639
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
640
|
+
.execute()
|
|
641
|
+
.addParameter(MethodType.DecreaseDegree)
|
|
642
|
+
.build();
|
|
643
|
+
this.gate.runScript(cmd!);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Podnosi wartość PointValue o wartość Value, na wskazany okres czasu (Time) wyrażony w minutach
|
|
648
|
+
* @param {number} value
|
|
649
|
+
* @param {number} time
|
|
650
|
+
*/
|
|
651
|
+
heatUp(value: number, time: number): void {
|
|
652
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
653
|
+
.execute()
|
|
654
|
+
.addParameter(MethodType.HeatUp)
|
|
655
|
+
.addParameter(value)
|
|
656
|
+
.addParameter(time)
|
|
657
|
+
.build();
|
|
658
|
+
this.gate.runScript(cmd!);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/** Uruchamia tryb wakacyjny */
|
|
662
|
+
holidayModeStart(): void {
|
|
663
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
664
|
+
.execute()
|
|
665
|
+
.addParameter(MethodType.HolidayModeStart)
|
|
666
|
+
.build();
|
|
667
|
+
this.gate.runScript(cmd!);
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/** Zatrzymuje tryb wakacyjny */
|
|
671
|
+
holidayModeStop(): void {
|
|
672
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
673
|
+
.execute()
|
|
674
|
+
.addParameter(MethodType.HolidayModeStop)
|
|
675
|
+
.build();
|
|
676
|
+
this.gate.runScript(cmd!);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/** Uruchamia tryb AutoMode (pobieranie docelowej temperatury z harmonogramu zamiast z cechy PointValue) */
|
|
680
|
+
autoModeStart(): void {
|
|
681
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
682
|
+
.execute()
|
|
683
|
+
.addParameter(MethodType.AutoModeStart)
|
|
684
|
+
.build();
|
|
685
|
+
this.gate.runScript(cmd!);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/** Zatrzymuje tryb AutoMode */
|
|
689
|
+
autoModeStop(): void {
|
|
690
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
691
|
+
.execute()
|
|
692
|
+
.addParameter(MethodType.AutoModeStop)
|
|
693
|
+
.build();
|
|
694
|
+
this.gate.runScript(cmd!);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Typ wyjścia: Auto - autodetekcja Digital - cyfrowe Analog - analogowe
|
|
699
|
+
* @param {OutputTypeType} value
|
|
700
|
+
*/
|
|
701
|
+
setOutputType(value: OutputTypeType): void {
|
|
702
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
703
|
+
.set()
|
|
704
|
+
.addParameter(PropertyType.OutputType)
|
|
705
|
+
.addParameter(value)
|
|
706
|
+
.build();
|
|
707
|
+
this.gate.runScript(cmd!);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Ustawia stan: 1 - aktywny, 0 - zatrzymany
|
|
712
|
+
* @param {number} value
|
|
713
|
+
*/
|
|
714
|
+
setState(value: number): void {
|
|
715
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
716
|
+
.set()
|
|
717
|
+
.addParameter(PropertyType.State)
|
|
718
|
+
.addParameter(value)
|
|
719
|
+
.build();
|
|
720
|
+
this.gate.runScript(cmd!);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Ustawia tryb pracy
|
|
725
|
+
* @param {ModeType} value
|
|
726
|
+
*/
|
|
727
|
+
setMode(value: ModeType): void {
|
|
728
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
729
|
+
.set()
|
|
730
|
+
.addParameter(PropertyType.Mode)
|
|
731
|
+
.addParameter(value)
|
|
732
|
+
.build();
|
|
733
|
+
this.gate.runScript(cmd!);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Typ wyjścia: -1 - autodetekcja 0 - cyfrowe 1 - analogowe
|
|
738
|
+
* @returns {OutputTypeType}
|
|
739
|
+
*/
|
|
740
|
+
get outputType(): OutputTypeType {
|
|
741
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
742
|
+
.get()
|
|
743
|
+
.addParameter(PropertyType.OutputType)
|
|
744
|
+
.build();
|
|
745
|
+
return this.gate.runScript(cmd!);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Wartość ręcznie zadanej temperatury
|
|
750
|
+
* @returns {number}
|
|
751
|
+
*/
|
|
752
|
+
get pointValue(): number {
|
|
753
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
754
|
+
.get()
|
|
755
|
+
.addParameter(PropertyType.PointValue)
|
|
756
|
+
.build();
|
|
757
|
+
return this.gate.runScript(cmd!);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
set pointValue(value: number) {
|
|
761
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
762
|
+
.set()
|
|
763
|
+
.addParameter(PropertyType.PointValue)
|
|
764
|
+
.addParameter(value)
|
|
765
|
+
.build();
|
|
766
|
+
this.gate.runScript(cmd!);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Wartość temperatury dla trybu wakacyjnego
|
|
771
|
+
* @returns {number}
|
|
772
|
+
*/
|
|
773
|
+
get holidayModeValue(): number {
|
|
774
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
775
|
+
.get()
|
|
776
|
+
.addParameter(PropertyType.HolidayModeValue)
|
|
777
|
+
.build();
|
|
778
|
+
return this.gate.runScript(cmd!);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
set holidayModeValue(value: number) {
|
|
782
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
783
|
+
.set()
|
|
784
|
+
.addParameter(PropertyType.HolidayModeValue)
|
|
785
|
+
.addParameter(value)
|
|
786
|
+
.build();
|
|
787
|
+
this.gate.runScript(cmd!);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Wielkość histerezy
|
|
792
|
+
* @returns {number}
|
|
793
|
+
*/
|
|
794
|
+
get hysteresis(): number {
|
|
795
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
796
|
+
.get()
|
|
797
|
+
.addParameter(PropertyType.Hysteresis)
|
|
798
|
+
.build();
|
|
799
|
+
return this.gate.runScript(cmd!);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
set hysteresis(value: number) {
|
|
803
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
804
|
+
.set()
|
|
805
|
+
.addParameter(PropertyType.Hysteresis)
|
|
806
|
+
.addParameter(value)
|
|
807
|
+
.build();
|
|
808
|
+
this.gate.runScript(cmd!);
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Stan pracy: 1 - aktywny, 0 - zatrzymany
|
|
813
|
+
* @returns {number}
|
|
814
|
+
*/
|
|
815
|
+
get state(): number {
|
|
816
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
817
|
+
.get()
|
|
818
|
+
.addParameter(PropertyType.State)
|
|
819
|
+
.build();
|
|
820
|
+
return this.gate.runScript(cmd!);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* Kierunek pracy: 0 - tryb grzania 1 - tryb chłodzenia
|
|
825
|
+
* @returns {ControlDirectionType}
|
|
826
|
+
*/
|
|
827
|
+
get controlDirection(): ControlDirectionType {
|
|
828
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
829
|
+
.get()
|
|
830
|
+
.addParameter(PropertyType.ControlDirection)
|
|
831
|
+
.build();
|
|
832
|
+
return this.gate.runScript(cmd!);
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
set controlDirection(value: ControlDirectionType) {
|
|
836
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
837
|
+
.set()
|
|
838
|
+
.addParameter(PropertyType.ControlDirection)
|
|
839
|
+
.addParameter(value)
|
|
840
|
+
.build();
|
|
841
|
+
this.gate.runScript(cmd!);
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Tryb pracy: 0 - tryb ręczny (użycie PointValue) 1 - tryb wakacyjny (użycie HolidayModeValue) 2 - tryb automatyczny (użycie wartości z Harmonogramu - AutoMode) 3 - tryb podgrzewania (użycie wartości HeatUp)
|
|
846
|
+
* @returns {ModeType}
|
|
847
|
+
*/
|
|
848
|
+
get mode(): ModeType {
|
|
849
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
850
|
+
.get()
|
|
851
|
+
.addParameter(PropertyType.Mode)
|
|
852
|
+
.build();
|
|
853
|
+
return this.gate.runScript(cmd!);
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Wartość cechy Data
|
|
858
|
+
* @returns {string}
|
|
859
|
+
*/
|
|
860
|
+
get data(): string {
|
|
861
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
862
|
+
.get()
|
|
863
|
+
.addParameter(PropertyType.Data)
|
|
864
|
+
.build();
|
|
865
|
+
return this.gate.runScript(cmd!);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
set data(value: string) {
|
|
869
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
870
|
+
.set()
|
|
871
|
+
.addParameter(PropertyType.Data)
|
|
872
|
+
.addParameter(value)
|
|
873
|
+
.build();
|
|
874
|
+
this.gate.runScript(cmd!);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Dolna wartość zakresu wbudowanego harmonogramu
|
|
879
|
+
* @returns {number}
|
|
880
|
+
*/
|
|
881
|
+
get min(): number {
|
|
882
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
883
|
+
.get()
|
|
884
|
+
.addParameter(PropertyType.Min)
|
|
885
|
+
.build();
|
|
886
|
+
return this.gate.runScript(cmd!);
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
set min(value: number) {
|
|
890
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
891
|
+
.set()
|
|
892
|
+
.addParameter(PropertyType.Min)
|
|
893
|
+
.addParameter(value)
|
|
894
|
+
.build();
|
|
895
|
+
this.gate.runScript(cmd!);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Górna wartość zakresu wbudowanego harmonogramu
|
|
900
|
+
* @returns {number}
|
|
901
|
+
*/
|
|
902
|
+
get max(): number {
|
|
903
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
904
|
+
.get()
|
|
905
|
+
.addParameter(PropertyType.Max)
|
|
906
|
+
.build();
|
|
907
|
+
return this.gate.runScript(cmd!);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
set max(value: number) {
|
|
911
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
912
|
+
.set()
|
|
913
|
+
.addParameter(PropertyType.Max)
|
|
914
|
+
.addParameter(value)
|
|
915
|
+
.build();
|
|
916
|
+
this.gate.runScript(cmd!);
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Zwraca aktualną wartość docelowej temperatury, w odróżnieniu od SetPoint uwzględnia status AutoMode i HolidayMode
|
|
921
|
+
* @returns {number}
|
|
922
|
+
*/
|
|
923
|
+
get targetTemp(): number {
|
|
924
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
925
|
+
.get()
|
|
926
|
+
.addParameter(PropertyType.TargetTemp)
|
|
927
|
+
.build();
|
|
928
|
+
return this.gate.runScript(cmd!);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Zwraca wartość temperatury na czujniku
|
|
933
|
+
* @returns {number}
|
|
934
|
+
*/
|
|
935
|
+
get currentTemp(): number {
|
|
936
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
937
|
+
.get()
|
|
938
|
+
.addParameter(PropertyType.CurrentTemp)
|
|
939
|
+
.build();
|
|
940
|
+
return this.gate.runScript(cmd!);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Wartość przypisywana do wyjścia sterującego
|
|
945
|
+
* @returns {number}
|
|
946
|
+
*/
|
|
947
|
+
get controlOutValue(): number {
|
|
948
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
949
|
+
.get()
|
|
950
|
+
.addParameter(PropertyType.ControlOutValue)
|
|
951
|
+
.build();
|
|
952
|
+
return this.gate.runScript(cmd!);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Wartość przypisywana do wyjścia sterującego wentylatorem: 0 - wyłączone, 1 - włączone (Low), 2 - włączone (Medium), 3 - włączone (High)
|
|
957
|
+
* @returns {number}
|
|
958
|
+
*/
|
|
959
|
+
get fanControlOutValue(): number {
|
|
960
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
961
|
+
.get()
|
|
962
|
+
.addParameter(PropertyType.FanControlOutValue)
|
|
963
|
+
.build();
|
|
964
|
+
return this.gate.runScript(cmd!);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Tryb pracy wentylatora: 0 - tryb automatyczny (automatyczne załączanie oraz zmiana prędkości), 1 - tryb pracy ciągłej (Low), 2 - tryb pracy ciągłej (Medium), 3 - tryb pracy ciągłej (High)
|
|
969
|
+
* @returns {FanModeType}
|
|
970
|
+
*/
|
|
971
|
+
get fanMode(): FanModeType {
|
|
972
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
973
|
+
.get()
|
|
974
|
+
.addParameter(PropertyType.FanMode)
|
|
975
|
+
.build();
|
|
976
|
+
return this.gate.runScript(cmd!);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
set fanMode(value: FanModeType) {
|
|
980
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
981
|
+
.set()
|
|
982
|
+
.addParameter(PropertyType.FanMode)
|
|
983
|
+
.addParameter(value)
|
|
984
|
+
.build();
|
|
985
|
+
this.gate.runScript(cmd!);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Opóźnienie włączenia lub wyłączenia wyjścia sterującego w stosunku do wyjścia wentylatora
|
|
990
|
+
* @returns {number}
|
|
991
|
+
*/
|
|
992
|
+
get controlSwitchDelay(): number {
|
|
993
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
994
|
+
.get()
|
|
995
|
+
.addParameter(PropertyType.ControlSwitchDelay)
|
|
996
|
+
.build();
|
|
997
|
+
return this.gate.runScript(cmd!);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
set controlSwitchDelay(value: number) {
|
|
1001
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1002
|
+
.set()
|
|
1003
|
+
.addParameter(PropertyType.ControlSwitchDelay)
|
|
1004
|
+
.addParameter(value)
|
|
1005
|
+
.build();
|
|
1006
|
+
this.gate.runScript(cmd!);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* Czas, przez który wyjście sterujące nie może zostać załączone po wyłączeniu (funkcja ochrony sprężarki)
|
|
1011
|
+
* @returns {number}
|
|
1012
|
+
*/
|
|
1013
|
+
get protectionDelayOn(): number {
|
|
1014
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1015
|
+
.get()
|
|
1016
|
+
.addParameter(PropertyType.ProtectionDelayOn)
|
|
1017
|
+
.build();
|
|
1018
|
+
return this.gate.runScript(cmd!);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
set protectionDelayOn(value: number) {
|
|
1022
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1023
|
+
.set()
|
|
1024
|
+
.addParameter(PropertyType.ProtectionDelayOn)
|
|
1025
|
+
.addParameter(value)
|
|
1026
|
+
.build();
|
|
1027
|
+
this.gate.runScript(cmd!);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Czas, przez który wyjście sterujące nie może zostać wyłączone po załączeniu (funkcja ochrony sprężarki)
|
|
1032
|
+
* @returns {number}
|
|
1033
|
+
*/
|
|
1034
|
+
get protectionDelayOff(): number {
|
|
1035
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1036
|
+
.get()
|
|
1037
|
+
.addParameter(PropertyType.ProtectionDelayOff)
|
|
1038
|
+
.build();
|
|
1039
|
+
return this.gate.runScript(cmd!);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
set protectionDelayOff(value: number) {
|
|
1043
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1044
|
+
.set()
|
|
1045
|
+
.addParameter(PropertyType.ProtectionDelayOff)
|
|
1046
|
+
.addParameter(value)
|
|
1047
|
+
.build();
|
|
1048
|
+
this.gate.runScript(cmd!);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Różnica pomiędzy temperaturą źródłową a docelową dla załączenia drugiego stopnia wentylatora
|
|
1053
|
+
* @returns {number}
|
|
1054
|
+
*/
|
|
1055
|
+
get mediumFanSpeedDelta(): number {
|
|
1056
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1057
|
+
.get()
|
|
1058
|
+
.addParameter(PropertyType.MediumFanSpeedDelta)
|
|
1059
|
+
.build();
|
|
1060
|
+
return this.gate.runScript(cmd!);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
set mediumFanSpeedDelta(value: number) {
|
|
1064
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1065
|
+
.set()
|
|
1066
|
+
.addParameter(PropertyType.MediumFanSpeedDelta)
|
|
1067
|
+
.addParameter(value)
|
|
1068
|
+
.build();
|
|
1069
|
+
this.gate.runScript(cmd!);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Różnica pomiędzy temperaturą źródłową a docelową dla załączenia trzeciego stopnia wentylatora
|
|
1074
|
+
* @returns {number}
|
|
1075
|
+
*/
|
|
1076
|
+
get highFanSpeedDelta(): number {
|
|
1077
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1078
|
+
.get()
|
|
1079
|
+
.addParameter(PropertyType.HighFanSpeedDelta)
|
|
1080
|
+
.build();
|
|
1081
|
+
return this.gate.runScript(cmd!);
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
set highFanSpeedDelta(value: number) {
|
|
1085
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1086
|
+
.set()
|
|
1087
|
+
.addParameter(PropertyType.HighFanSpeedDelta)
|
|
1088
|
+
.addParameter(value)
|
|
1089
|
+
.build();
|
|
1090
|
+
this.gate.runScript(cmd!);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Wielkość histerezy dla zmiany prędkości wentylatora
|
|
1095
|
+
* @returns {number}
|
|
1096
|
+
*/
|
|
1097
|
+
get fanSpeedHysteresis(): number {
|
|
1098
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1099
|
+
.get()
|
|
1100
|
+
.addParameter(PropertyType.FanSpeedHysteresis)
|
|
1101
|
+
.build();
|
|
1102
|
+
return this.gate.runScript(cmd!);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
set fanSpeedHysteresis(value: number) {
|
|
1106
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1107
|
+
.set()
|
|
1108
|
+
.addParameter(PropertyType.FanSpeedHysteresis)
|
|
1109
|
+
.addParameter(value)
|
|
1110
|
+
.build();
|
|
1111
|
+
this.gate.runScript(cmd!);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
set source(value: any) {
|
|
1115
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1116
|
+
.set()
|
|
1117
|
+
.addParameter(PropertyType.Source)
|
|
1118
|
+
.addParameter(value)
|
|
1119
|
+
.build();
|
|
1120
|
+
this.gate.runScript(cmd!);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
set control(value: any) {
|
|
1124
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1125
|
+
.set()
|
|
1126
|
+
.addParameter(PropertyType.Control)
|
|
1127
|
+
.addParameter(value)
|
|
1128
|
+
.build();
|
|
1129
|
+
this.gate.runScript(cmd!);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
set fanLowControl(value: any) {
|
|
1133
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1134
|
+
.set()
|
|
1135
|
+
.addParameter(PropertyType.FanLowControl)
|
|
1136
|
+
.addParameter(value)
|
|
1137
|
+
.build();
|
|
1138
|
+
this.gate.runScript(cmd!);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
set fanMediumControl(value: any) {
|
|
1142
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1143
|
+
.set()
|
|
1144
|
+
.addParameter(PropertyType.FanMediumControl)
|
|
1145
|
+
.addParameter(value)
|
|
1146
|
+
.build();
|
|
1147
|
+
this.gate.runScript(cmd!);
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
set fanHighControl(value: any) {
|
|
1151
|
+
const cmd: string | null = rawExecutionBuilderFactory(this.objectName)
|
|
1152
|
+
.set()
|
|
1153
|
+
.addParameter(PropertyType.FanHighControl)
|
|
1154
|
+
.addParameter(value)
|
|
1155
|
+
.build();
|
|
1156
|
+
this.gate.runScript(cmd!);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
export {
|
|
1161
|
+
MultiFanACThermostat, MultiFanACThermostatRaw, MultiFanACThermostatRemote,
|
|
1162
|
+
OutputTypeType, ControlDirectionType, ModeType, FanModeType
|
|
1163
|
+
}
|