Variable constraints
Allows employing up to 3 additinal conditions based on the current state or value of any of the available peripherals. These conditions are working as additional contraints to Process timer, jointly determining whether the process is sleeping or active. The process is then active if and only if all conditions are met. Each condition is constructed as follows:
- Peripheral - variable input for the condition selected from the list below.
- Operator - defines the expected relation between the selected Peripheral reading and the test value.
If the reading is analogue then the operator is inequality and can be changed by clicking on it in the interface.
The default operator is
<
(less) and corresponds to the[VALUE]
=0
while[VALUE]
=1
represents<
(greater). If the reading is logical then the operator automatically changes to=
(operator choice has then no effect). - Test value - threshold for the inequality or the expected value of the equality. Any
[VALUE]
between-9999
and+9999
can be provided. - Unit - represents the measurement unit defined by user or implied from the input choice and serves only for information purposes (it does not affect the process).
[VALUE] | Peripheral |
---|---|
0 -8 | Digital pins D0 -D8 |
11 | Analog pin A0 |
21 -28 | Analog Multiplexer pins I1 -I8 |
31 -42 | Shift Register pins RE1 -RE12 |
51 -58 | Memory slots MEM1 -MEM8 |
99 | none |
MEM1
- MEM8
can significantly increase complexity.HTTP
The device will accept HTTP requests at the following URLs related to:
- Peripherals:
(POST) http://[IPv4]
/var_set?param=cstt[1-3]_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=cstt[1-3]_[PROCESS ID]
- Operators:
(POST) http://[IPv4]
/var_set?param=csts[1-3]_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=csts[1-3]_[PROCESS ID]
- Thresholds:
(POST) http://[IPv4]
/var_set?param=cstv[1-3]_[PROCESS ID]
&val=[VALUE]
(GET) http://[IPv4]
/var_request?param=cstv[1-3]_[PROCESS ID]
POST: http://192.168.1.255/var_set?param=cstt1_8&val=11
POST: http://192.168.1.255/var_set?param=csts1_8&val=0
POST: http://192.168.1.255/var_set?param=cstv1_8&val=15
will enable the Process #8 to only run when the temperature measured on
A0
falls below 15°C
.
Learn more in HTTP API.
MQTT
This parameter cannot be accessed via MQTT. Learn more in MQTT API.
Examples
Following process will only control the relevant output only if, additionally to satisfying the Process timer, also following conditions are met:
- Reading on analog pin
A0
is below 15°C, and - Reading on digital pin
D8
isHIGH
.
This process is clearly inactive at the moment as the current D8
reading is LOW
, effectively disabling the relevant process.