Control period
When checking the input value, the Control period determines the time period for which the input must retain certain state or remain beyond a certain threshold before the state or threshold is recognized as reached and the underlying condition satisfied. If the input changes its state or its value falls outside of the threshold before the period expires, no action will follow as if the state or threshold was never reached.
By default the Control period is set to 0 meaning that the input is immeadiately recognized with no lag.
The Control period, as all other time period variables, are provided in two parts: Quantity and Unit:
Quantity
The first parameter listed is the Quantity which defines how many time units will have to elapse before the process output reacts to the input event.
Its [VALUE]
can be anywhere between 0
and 255
.
Unit
The second parameter listed is the Unit which defines the time measurement unit of the provided Quantity.
Available [VALUE]
options are summarized in the following table:
[VALUE] | Unit |
---|---|
0 | One tenth (0.1) of a second |
1 | One second |
2 | Ten seconds |
3 | One minute |
4 | Ten minutes |
5 | One hour |
Thus, effectively, the provided time period can range between 0.1 second and 255 hours.
HTTP
The device will accept HTTP requests at the following URLs related to:
- Quantity:
(POST) http://[IPv4]
/var_set?param=incper_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=incper_[PROCESS ID]
- Unit:
(POST) http://[IPv4]
/var_set?param=incperu_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=incperu_[PROCESS ID]
POST: http://192.168.1.255/var_set?param=incper_6&val=5
POST: http://192.168.1.255/var_set?param=incperu_6&val=0 (or keeping the default value)
will set the Control period for Process #6 input to 0.5 second.
Learn more in HTTP API.
MQTT
This parameter cannot be accessed via MQTT. Learn more in MQTT API.
Example
Following example process will only turn on the water pump if the input switch is pushed for at least 0.5 second:
This will ensure that the water pump does not turn on randomly as a result of an electromagnetic induction present in the input circuit.