Skip to content

Latest commit

 

History

History

README.md

SolarNode Operational Mode Controls

This plugin provides two components to help manage devices in relation to operational modes.

Operational State Manager

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.

settings

Operational State Manager settings

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.

Operational Mode Switch

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.

settings

Operational Mode Switch settings

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.