Potentiometer — Configuration
Configuration Parameters
In addition to the GW4 configuration parameters the add-on has the following specific parameters:
Analog Channel Parameters
| Key | Type | Default | Description |
|---|---|---|---|
ch1Enable | Boolean | true | Enable channel 1 |
ch2Enable | Boolean | true | Enable channel 2 |
ch3Enable | Boolean | true | Enable channel 3 |
alarmCron | String | "" | Cron used while an alarm is active |
ch1PreReadTO | Integer | 10 | Wait time in ms before reading channel 1 |
ch2PreReadTO | Integer | 10 | Wait time in ms before reading channel 2 |
ch3PreReadTO | Integer | 10 | Wait time in ms before reading channel 3 |
ch1Samples | Integer | 200 | Number of samples taken for one channel 1 measurement |
ch2Samples | Integer | 200 | Number of samples taken for one channel 2 measurement |
ch3Samples | Integer | 200 | Number of samples taken for one channel 3 measurement |
ch1Factor | String | [not set] | Calibration factor for channel 1 |
ch2Factor | String | [not set] | Calibration factor for channel 2 |
ch3Factor | String | [not set] | Calibration factor for channel 3 |
ch1Offset | String | [not set] | Calibration offset for channel 1 |
ch2Offset | String | [not set] | Calibration offset for channel 2 |
ch3Offset | String | [not set] | Calibration offset for channel 3 |
ch1AlarmHigh | String | [not set] | High alarm threshold for channel 1 |
ch2AlarmHigh | String | [not set] | High alarm threshold for channel 2 |
ch3AlarmHigh | String | [not set] | High alarm threshold for channel 3 |
ch1AlarmLow | String | [not set] | Low alarm threshold for channel 1 |
ch2AlarmLow | String | [not set] | Low alarm threshold for channel 2 |
ch3AlarmLow | String | [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.