Sensor Trigger
Triggers based on configured sensor values.
Format
{
"Type": "SensorTrigger",
"Config": {
"Sensors": [<SensorIdentifier>],
"SensorMixFunction": <enum>,
"Value": <float>,
"ComparsionType": <enum>
}
}
Variables
Sensors
List of Sensor Identifiers to read values from.
Required: Yes
Default value:
[]
Example:
"Sensors": ["/intelcpu/0/temperature/8"]
SensorMixFunction
Determines how to combine values from Sensors.
Allowed values: "Maximum"
, "Minimum"
, "Average"
Required: No
Default value:
"Maximum"
Example:
"SensorMixFunction": "Average"
Value
Value to compare sensor values to.
Required: Yes
Default value:
Example:
"Value": 50.5
ComparsionType
Determines how to compare current sensor values and the configured Value.
Allowed values: "Equal"
, "Greater"
, "GreaterOrEqual"
, "Less"
, "LessOrEqual"
Required: No
Default value:
"Greater"
Example:
"ComparsionType": "Less"
Examples