Open window detection

Set open window detection parameters command explanation.

To detect open window, the difference between the currently and previously measured temperatures must be equal or greater than specified temperature difference. New temperature value is got each minute. In Table 9 is described the data which the server sends to Vicki to set the open window detection parameters.
In firmware versions >= 3.5, Vicki is fully closing the valve, regardless of the motorPosition defined in bytes 3 and 4 below.
Byte index
Bit index
Hex value - Meaning
0
-
06 – The command will set Vicki open window detection parameters.
1
7:1
Reserved.
1
0
1 – Enables the open window detection functionality. 0 – disable it (Default).
2
-
XX – Duration for the valve to stay closed after open window detection. Resolution – 5 minutes. Default is 10 minutes.
3
-
XX – motor position to be set when open window detected, bits 7:0.
4
7:4
X – motor position to be set when open window detected, bits 11:8.
4
3:0
X – temperature difference to detect open window detection (In Celsius degrees). Default is 2 Celsius.
Table 9
Example command 1: 0x0601041C23 – Enable open window detection; set the duration for the valve to be closed to 20min; set the motor position to 540 steps; set the temperature delta to 3Β°C.
Example command 2: 0x0600041C23 – Disable open window detection.

Get open window detection parameters command explanation

This command is used to get Vicki open window detection parameters. Server sends the command code and the response is sent from Vicki together with the next keep-alive command. The sent command request and the received command response are described in Table 20. The keep-alive in the response is omitted for clarity.
Byte index
Bit index
Sent request
Received response
0
-
13 – Command code.
13 – The command code.
1
7:1
​
Reserved;
1
0
​
Open window detection enable/disable bit:
  • 1: Open window functionality is enabled;
  • 0: Open window functionality is disabled.
2
-
​
XX – duration for the valve to be at the desired position, after open window detection. Resolution – 5 minutes.
3
-
​
XX – motor position to set when open window detected, bits 7:0.
4
7:4
​
X – motor position to set when open window detected, bits 11:8.
4
3:0
​
X – temperature difference to detect open window detection (In Celsius degrees).
Table 20
Example command sent from server: 0x13;
Example command response 1: 0x130102F412 – Open window detection functionality is enabled. When open window is detected, the motor will stay for 10 minutes on the specified position. Desired motor position is 500 steps. Open window will be detected when the temperature difference between the previously and currently measured temperatures become 2Β°C or greater.
Example command response 2: 0x130002F412 – Open window detection functionality is disabled.
​