Skip to main content

Potentiometer — Configuration

Configuration Parameters

In addition to the GW4 configuration parameters the add-on has the following specific parameters:

Analog Channel Parameters

KeyTypeDefaultDescription
ch1EnableBooleantrueEnable channel 1
ch2EnableBooleantrueEnable channel 2
ch3EnableBooleantrueEnable channel 3
alarmCronString""Cron used while an alarm is active
ch1PreReadTOInteger10Wait time in ms before reading channel 1
ch2PreReadTOInteger10Wait time in ms before reading channel 2
ch3PreReadTOInteger10Wait time in ms before reading channel 3
ch1SamplesInteger200Number of samples taken for one channel 1 measurement
ch2SamplesInteger200Number of samples taken for one channel 2 measurement
ch3SamplesInteger200Number of samples taken for one channel 3 measurement
ch1FactorString[not set]Calibration factor for channel 1
ch2FactorString[not set]Calibration factor for channel 2
ch3FactorString[not set]Calibration factor for channel 3
ch1OffsetString[not set]Calibration offset for channel 1
ch2OffsetString[not set]Calibration offset for channel 2
ch3OffsetString[not set]Calibration offset for channel 3
ch1AlarmHighString[not set]High alarm threshold for channel 1
ch2AlarmHighString[not set]High alarm threshold for channel 2
ch3AlarmHighString[not set]High alarm threshold for channel 3
ch1AlarmLowString[not set]Low alarm threshold for channel 1
ch2AlarmLowString[not set]Low alarm threshold for channel 2
ch3AlarmLowString[not set]Low alarm threshold for channel 3

chXFactor and chXOffset Parameters

The measured raw value is multiplied by chXFactor and then chXOffset is added. All further calculations and alarm checks are done with this derived value.

chXAlarmLow and chXAlarmHigh Parameters

If the calculated measurement value is above chXAlarmHigh or below chXAlarmLow, an alarm is triggered. The number of triggered alarms and the time spent in the alarm state are measured and transmitted.

alarmCron Parameter

If an alarm is active, this cron is used instead of the regular cron. If empty, the regular sensor cron is used.