This node takes an (enumerated) numeric value (3 possible states) and iterprets them as `Auto`, `Off`, and `Manual` mode selection. The boolean `output` value is based on the selected `mode`. Numeric values corresponding to each `mode` can be set from settings. When in `Auto` mode, `output` will match the `autoValue` input.
- modeEnum - Enumerated numeric value that selects the mode. Valid numeric `modeEnum` input values are the `Value for AUTO`, `Value for OFF`, and `Value for ON` values that are configured in settings.
- autoValue - Boolean value that will be passed to `output` when `modeEnum` value matches the configured `Value for AUTO` value.
Outputs
- output - Boolean output based on `modeEnum` input. `output` will be `true` when `modeEnum` value matches the configured `Value for ON` value. `output` will be `false` when `modeEnum` value matches the configured `Value for OFF` value. `output` will match the `autoValue` input value when `modeEnum` value matches the configured `Value for AUTO` value.
- mode - String output of current mode, based on `modeEnum` value. Output values can be `ON`, `OFF`, or `AUTO`.
Settings
- Name - Name of the node.
- Value for AUTO - Numeric value to for `AUTO`. Mode will be `AUTO` when `modeEnum` matches the configured value of `Value for AUTO` value.
- Value for OFF - Numeric value to for `OFF`. Mode will be `OFF` when `modeEnum` matches the configured value of `Value for OFF` value.
- Value for ON - Numeric value to for `ON`. Mode will be `ON` when `modeEnum` matches the configured value of `Value for ON` value.
Operation
The input `modeEnum` is compared to the configured `Value for AUTO`, `Value for OFF`, and `Value for ON` values. If `modeEnum` equals one of the values, the `mode` output value will be the corresponding mode string (`ON`, `OFF`, or `AUTO`). to the corresponding value. `output` will be `true` when `modeEnum` value matches the configured `Value for ON` value. `output` will be `false` when `modeEnum` value matches the configured `Value for OFF` value. `output` will match the `autoValue` input value when `modeEnum` value matches the configured `Value for AUTO` value.