This plugin provides two components to help manage devices in relation to operational modes.
The Operational State Manager listens for changes to operational modes, and can change the
operating state of other controls by issuing SetOperatingState
instructions. This can be used, for example, to turn devices on/off.
Each Operational State Manager component includes the following settings:
| Setting | Description |
|---|---|
| Service Name | A name to associate this control configuration with. |
| Service Group | A group name to associate this control configuration with. |
| Operational Mode | The operational mode to listen for. |
| Control IDs | The control IDs to issue SetOperatingState instructions to when the configured mode changes. |
| Active State | The operating state to apply when the mode is enabled. |
| Inactive State | The operating state to apply when the mode is disabled. |
| Retry Count | This count determines how many times the service will re-try applying state changes if an error occurs. If the retry count is 0 then no retries will be attempted. If the retry count is anything less than 0, then the code will attempt an unlimited number of times. Otherwise up to this number of attempts will be performed. |
| Max Wait | The maximum number of seconds to wait for all controls' state change to be applied. |
The Operational Mode Switch acts as a boolean switch control that binds a control to an operational
mode. Setting the control on/off via a SetControlParameter instruction
enables/disables an operational mode, and vice-versa. This can be combined with the Operational
State Manager component, for example, to turn devices on/off via the
control API.
Each Operational Mode Switch component includes the following settings:
| Setting | Description |
|---|---|
| Service Name | A name to associate this control configuration with. |
| Service Group | A group name to associate this control configuration with. |
| Operational Mode | The operational mode to manage as a boolean switch control. |
| Control ID | The control ID to expose. |

